Skip to content

EciScalingConfigurationProps

Properties for defining a EciScalingConfiguration.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ess-eciscalingconfiguration

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkess"
&alicloudroscdkess.EciScalingConfigurationProps {
    ContainerGroupName: interface{},
    ScalingConfigurationName: interface{},
    ScalingGroupId: interface{},
    SecurityGroupId: interface{},
    AcrRegistryInfos: interface{},
    ActiveDeadlineSeconds: interface{},
    AutoCreateEip: interface{},
    AutoMatchImageCache: interface{},
    Containers: interface{},
    CostOptimization: interface{},
    Cpu: interface{},
    CpuOptionsCore: interface{},
    CpuOptionsThreadsPerCore: interface{},
    DataCacheBucket: interface{},
    DataCacheBurstingEnabled: interface{},
    DataCachePl: interface{},
    DataCacheProvisionedIops: interface{},
    DnsConfigNameServers: interface{},
    DnsConfigOptions: interface{},
    DnsConfigSearches: interface{},
    DnsPolicy: interface{},
    EgressBandwidth: interface{},
    EipBandwidth: interface{},
    EphemeralStorage: interface{},
    HostAliases: interface{},
    HostName: interface{},
    ImageRegistryCredentials: interface{},
    ImageSnapshotId: interface{},
    IngressBandwidth: interface{},
    InitContainers: interface{},
    InstanceFamilyLevel: interface{},
    InstanceTypes: interface{},
    Ipv6AddressCount: interface{},
    LoadBalancerWeight: interface{},
    Memory: interface{},
    NtpServers: interface{},
    RamRoleName: interface{},
    ResourceGroupId: interface{},
    RestartPolicy: interface{},
    SecurityContextSysctls: interface{},
    SpotPriceLimit: interface{},
    SpotStrategy: interface{},
    Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkess.RosEciScalingConfiguration.TagsProperty,
    TerminationGracePeriodSeconds: interface{},
    Volumes: interface{},
}

Properties

Name Type Description
ContainerGroupName interface{} Property containerGroupName: The name of the elastic container instance.
ScalingConfigurationName interface{} Property scalingConfigurationName: The name of the scaling configuration.
ScalingGroupId interface{} Property scalingGroupId: The ID of the scaling group for which you want to create the scaling configuration.
SecurityGroupId interface{} Property securityGroupId: The ID of the security group with which you want to associate the elastic container instance.
AcrRegistryInfos interface{} Property acrRegistryInfos:.
ActiveDeadlineSeconds interface{} Property activeDeadlineSeconds: The validity period of the scaling configuration.
AutoCreateEip interface{} Property autoCreateEip: Specifies whether to automatically create an elastic IP address (EIP) and bind the EIP to the elastic container instance.
AutoMatchImageCache interface{} Property autoMatchImageCache: Specifies whether to automatically match the image cache.
Containers interface{} Property containers:.
CostOptimization interface{} Property costOptimization: Specifies whether to enable the Cost Optimization feature.
Cpu interface{} Property cpu: The number of vCPUs that you want to allocate to the elastic container instance.
CpuOptionsCore interface{} Property cpuOptionsCore: The number of physical CPU cores.
CpuOptionsThreadsPerCore interface{} Property cpuOptionsThreadsPerCore: The number of threads per core.
DataCacheBucket interface{} Property dataCacheBucket: The bucket that stores data caches.
DataCacheBurstingEnabled interface{} Property dataCacheBurstingEnabled: Specifies whether to enable the Performance Burst feature for the ESSD AutoPL disk used for data caching.
DataCachePl interface{} Property dataCachePl: The performance level (PL) of the disk used for data caching.
DataCacheProvisionedIops interface{} Property dataCacheProvisionedIops: The IOPS provisioned for the ESSD AutoPL disk used for data caching.
DnsConfigNameServers interface{} Property dnsConfigNameServers: The IP addresses of the DNS servers.
DnsConfigOptions interface{} Property dnsConfigOptions:.
DnsConfigSearches interface{} Property dnsConfigSearches: The search domains of the DNS server.
DnsPolicy interface{} Property dnsPolicy: The Domain Name System (DNS) policy.
EgressBandwidth interface{} Property egressBandwidth: The maximum outbound bandwidth.
EipBandwidth interface{} Property eipBandwidth: The bandwidth of the EIP.
EphemeralStorage interface{} Property ephemeralStorage: The size of the temporary storage space.
HostAliases interface{} Property hostAliases:.
HostName interface{} Property hostName: The hostname of the elastic container instance.
ImageRegistryCredentials interface{} Property imageRegistryCredentials:.
ImageSnapshotId interface{} Property imageSnapshotId: The ID of the image cache snapshot.
IngressBandwidth interface{} Property ingressBandwidth: The maximum inbound bandwidth.
InitContainers interface{} Property initContainers:.
InstanceFamilyLevel interface{} Property instanceFamilyLevel: The level of the instance family.
InstanceTypes interface{} Property instanceTypes: The specified ECS instance types.
Ipv6AddressCount interface{} Property ipv6AddressCount: The number of IPv6 addresses.
LoadBalancerWeight interface{} Property loadBalancerWeight: The weight of the elastic container instance as a backend server.
Memory interface{} Property memory: The memory size that you want to allocate to the elastic container instance.
NtpServers interface{} Property ntpServers: The Network Time Protocol (NTP) server.
RamRoleName interface{} Property ramRoleName: The name of the Resource Access Management (RAM) role that you want to assign to the elastic container instance.
ResourceGroupId interface{} Property resourceGroupId: The ID of the resource group.
RestartPolicy interface{} Property restartPolicy: The restart policy of the elastic container instance.
SecurityContextSysctls interface{} Property securityContextSysctls:.
SpotPriceLimit interface{} Property spotPriceLimit: The maximum hourly price of the preemptible elastic container instance.
SpotStrategy interface{} Property spotStrategy: The bidding policy of the instance.
Tags *[]TagsProperty Property tags:.
TerminationGracePeriodSeconds interface{} Property terminationGracePeriodSeconds: The buffer period during which a program handles operations before the program is stopped.
Volumes interface{} Property volumes:.

ContainerGroupNameRequired

ContainerGroupName interface{}
  • Type: interface{}

Property containerGroupName: The name of the elastic container instance.


ScalingConfigurationNameRequired

ScalingConfigurationName interface{}
  • Type: interface{}

Property scalingConfigurationName: The name of the scaling configuration.

The name must be 2 to 64 characters in length and can contain letters, digits, underscores (_), hyphens (-), and periods (.). The name must start with a letter or a digit. The name of the scaling configuration must be unique in a region. If you do not specify this parameter, the scaling configuration ID is used.


ScalingGroupIdRequired

ScalingGroupId interface{}
  • Type: interface{}

Property scalingGroupId: The ID of the scaling group for which you want to create the scaling configuration.


SecurityGroupIdRequired

SecurityGroupId interface{}
  • Type: interface{}

Property securityGroupId: The ID of the security group with which you want to associate the elastic container instance.

Elastic container instances that are associated with the same security group can access each other. If you do not specify a security group, the system uses the default security group in the region that you selected. Make sure that the inbound rules of the security group contain the protocols and the port numbers of the containers that you want to expose. If you do not have a default security group in the region, the system creates a default security group and adds the declared container protocols and port numbers to the inbound rules of the security group.


AcrRegistryInfosOptional

AcrRegistryInfos interface{}
  • Type: interface{}

Property acrRegistryInfos:.


ActiveDeadlineSecondsOptional

ActiveDeadlineSeconds interface{}
  • Type: interface{}

Property activeDeadlineSeconds: The validity period of the scaling configuration.

Unit: seconds.


AutoCreateEipOptional

AutoCreateEip interface{}
  • Type: interface{}

Property autoCreateEip: Specifies whether to automatically create an elastic IP address (EIP) and bind the EIP to the elastic container instance.


AutoMatchImageCacheOptional

AutoMatchImageCache interface{}
  • Type: interface{}

Property autoMatchImageCache: Specifies whether to automatically match the image cache.

Valid values: true false Default value: false.


ContainersOptional

Containers interface{}
  • Type: interface{}

Property containers:.


CostOptimizationOptional

CostOptimization interface{}
  • Type: interface{}

Property costOptimization: Specifies whether to enable the Cost Optimization feature.

Valid values: true false Default value: false.


CpuOptional

Cpu interface{}
  • Type: interface{}

Property cpu: The number of vCPUs that you want to allocate to the elastic container instance.


CpuOptionsCoreOptional

CpuOptionsCore interface{}
  • Type: interface{}

Property cpuOptionsCore: The number of physical CPU cores.

You can specify this parameter for only specific instance types. For more information, see Specify custom CPU options.


CpuOptionsThreadsPerCoreOptional

CpuOptionsThreadsPerCore interface{}
  • Type: interface{}

Property cpuOptionsThreadsPerCore: The number of threads per core.

You can specify this parameter for only specific instance types. If you set this parameter to 1, Hyper-Threading is disabled. For more information, see Specify custom CPU options.


DataCacheBucketOptional

DataCacheBucket interface{}
  • Type: interface{}

Property dataCacheBucket: The bucket that stores data caches.


DataCacheBurstingEnabledOptional

DataCacheBurstingEnabled interface{}
  • Type: interface{}

Property dataCacheBurstingEnabled: Specifies whether to enable the Performance Burst feature for the ESSD AutoPL disk used for data caching.

Valid values: true false Default value: false. Note For more information about ESSD AutoPL disks, see ESSD AutoPL disks.


DataCachePlOptional

DataCachePl interface{}
  • Type: interface{}

Property dataCachePl: The performance level (PL) of the disk used for data caching.

We recommend that you use ESSDs. Valid values if you use ESSDs: PL0: An ESSD can provide up to 10,000 random read/write IOPS. PL1: An ESSD can provide up to 50,000 random read/write IOPS. PL2: An ESSD can provide up to 100,000 random read/write IOPS. PL3: An ESSD can provide up to 1,000,000 random read/write IOPS. Default value: PL1. Note For more information about ESSDs, see ESSDs.


DataCacheProvisionedIopsOptional

DataCacheProvisionedIops interface{}
  • Type: interface{}

Property dataCacheProvisionedIops: The IOPS provisioned for the ESSD AutoPL disk used for data caching.

Valid values: 0 to min{50000, 1000 × Capacity - Baseline IOPS}, where Baseline IOPS = min{1800 + 50 × Capacity - 50000}. Note For more information about ESSD AutoPL disks, see ESSD AutoPL disks.


DnsConfigNameServersOptional

DnsConfigNameServers interface{}
  • Type: interface{}

Property dnsConfigNameServers: The IP addresses of the DNS servers.


DnsConfigOptionsOptional

DnsConfigOptions interface{}
  • Type: interface{}

Property dnsConfigOptions:.


DnsConfigSearchesOptional

DnsConfigSearches interface{}
  • Type: interface{}

Property dnsConfigSearches: The search domains of the DNS server.


DnsPolicyOptional

DnsPolicy interface{}
  • Type: interface{}

Property dnsPolicy: The Domain Name System (DNS) policy.

Valid values: None: uses the DNS that is specified by DnsConfig. Default: uses the DNS that is specified for the runtime environment.


EgressBandwidthOptional

EgressBandwidth interface{}
  • Type: interface{}

Property egressBandwidth: The maximum outbound bandwidth.

Unit: bytes.


EipBandwidthOptional

EipBandwidth interface{}
  • Type: interface{}

Property eipBandwidth: The bandwidth of the EIP.

Default value: 5. Unit: Mbit/s.


EphemeralStorageOptional

EphemeralStorage interface{}
  • Type: interface{}

Property ephemeralStorage: The size of the temporary storage space.

By default, an enhanced SSD (ESSD) of the PL1 level is used. Unit: GiB.


HostAliasesOptional

HostAliases interface{}
  • Type: interface{}

Property hostAliases:.


HostNameOptional

HostName interface{}
  • Type: interface{}

Property hostName: The hostname of the elastic container instance.


ImageRegistryCredentialsOptional

ImageRegistryCredentials interface{}
  • Type: interface{}

Property imageRegistryCredentials:.


ImageSnapshotIdOptional

ImageSnapshotId interface{}
  • Type: interface{}

Property imageSnapshotId: The ID of the image cache snapshot.


IngressBandwidthOptional

IngressBandwidth interface{}
  • Type: interface{}

Property ingressBandwidth: The maximum inbound bandwidth.

Unit: bytes.


InitContainersOptional

InitContainers interface{}
  • Type: interface{}

Property initContainers:.


InstanceFamilyLevelOptional

InstanceFamilyLevel interface{}
  • Type: interface{}

Property instanceFamilyLevel: The level of the instance family.

You can use this parameter to filter instance types that meet the specified criteria. This parameter takes effect only if you set CostOptimization to true. Valid values: EntryLevel: entry level (shared instance types) Instance types of this level are the most cost-effective but may not provide stable computing performance. Instance types of this level are suitable for scenarios in which CPU utilization is low. For more information, see Shared instance families. EnterpriseLevel: enterprise level. Instance types of this level provide stable performance and dedicated resources and are suitable for business scenarios that require high stability. For more information, see Overview of instance families. CreditEntryLevel: credit entry level (burstable instance types). CPU credits are used to ensure computing performance. Instance types of this level are suitable for business scenarios in which CPU utilization is low but may fluctuate in specific scenarios. For more information, see Overview of burstable instances.


InstanceTypesOptional

InstanceTypes interface{}
  • Type: interface{}

Property instanceTypes: The specified ECS instance types.

You can specify up to five ECS instance types. For more information, see Specify ECS instance types to create an elastic container instance.


Ipv6AddressCountOptional

Ipv6AddressCount interface{}
  • Type: interface{}

Property ipv6AddressCount: The number of IPv6 addresses.


LoadBalancerWeightOptional

LoadBalancerWeight interface{}
  • Type: interface{}

Property loadBalancerWeight: The weight of the elastic container instance as a backend server.

Valid values: 1 to 100. Default value: 50.


MemoryOptional

Memory interface{}
  • Type: interface{}

Property memory: The memory size that you want to allocate to the elastic container instance.

Unit: GiB.


NtpServersOptional

NtpServers interface{}
  • Type: interface{}

Property ntpServers: The Network Time Protocol (NTP) server.


RamRoleNameOptional

RamRoleName interface{}
  • Type: interface{}

Property ramRoleName: The name of the Resource Access Management (RAM) role that you want to assign to the elastic container instance.

Elastic container instances and Elastic Compute Service (ECS) instances can share the same RAM role. For more information, see Use an instance RAM role by calling API operations.


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: The ID of the resource group.


RestartPolicyOptional

RestartPolicy interface{}
  • Type: interface{}

Property restartPolicy: The restart policy of the elastic container instance.

Valid values: Always: always restarts the elastic container instance. Never: never restarts the elastic container instance. OnFailure: restarts the elastic container instance upon failures. Default value: Always.


SecurityContextSysctlsOptional

SecurityContextSysctls interface{}
  • Type: interface{}

Property securityContextSysctls:.


SpotPriceLimitOptional

SpotPriceLimit interface{}
  • Type: interface{}

Property spotPriceLimit: The maximum hourly price of the preemptible elastic container instance.

The value can be accurate to three decimal places. If you set SpotStrategy to SpotWithPriceLimit, you must specify SpotPriceLimit.


SpotStrategyOptional

SpotStrategy interface{}
  • Type: interface{}

Property spotStrategy: The bidding policy of the instance.

Valid values: NoSpot: The instance is created as a pay-as-you-go instance. SpotWithPriceLimit: The instance is created as a preemptible instance with a user-defined maximum hourly price. SpotAsPriceGo: The instance is created as a preemptible instance for which the market price at the time of purchase is used as the bid price. Default value: NoSpot.


TagsOptional

Tags *[]TagsProperty

Property tags:.


TerminationGracePeriodSecondsOptional

TerminationGracePeriodSeconds interface{}
  • Type: interface{}

Property terminationGracePeriodSeconds: The buffer period during which a program handles operations before the program is stopped.

Unit: seconds.


VolumesOptional

Volumes interface{}
  • Type: interface{}

Property volumes:.