Skip to content

EciScalingConfigurationProps

Properties for defining a EciScalingConfiguration.

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

Initializer

import { EciScalingConfigurationProps } from '@alicloud/ros-cdk-ess'
const eciScalingConfigurationProps: EciScalingConfigurationProps = { ... }

Properties

Name Type Description
containerGroupName string | @alicloud/ros-cdk-core.IResolvable Property containerGroupName: The name of the elastic container instance.
scalingConfigurationName string | @alicloud/ros-cdk-core.IResolvable Property scalingConfigurationName: The name of the scaling configuration.
scalingGroupId string | @alicloud/ros-cdk-core.IResolvable Property scalingGroupId: The ID of the scaling group for which you want to create the scaling configuration.
securityGroupId string | @alicloud/ros-cdk-core.IResolvable Property securityGroupId: The ID of the security group with which you want to associate the elastic container instance.
acrRegistryInfos @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | AcrRegistryInfosProperty[] Property acrRegistryInfos:.
activeDeadlineSeconds number | @alicloud/ros-cdk-core.IResolvable Property activeDeadlineSeconds: The validity period of the scaling configuration.
autoCreateEip boolean | @alicloud/ros-cdk-core.IResolvable Property autoCreateEip: Specifies whether to automatically create an elastic IP address (EIP) and bind the EIP to the elastic container instance.
autoMatchImageCache boolean | @alicloud/ros-cdk-core.IResolvable Property autoMatchImageCache: Specifies whether to automatically match the image cache.
containers @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | ContainersProperty[] Property containers:.
costOptimization boolean | @alicloud/ros-cdk-core.IResolvable Property costOptimization: Specifies whether to enable the Cost Optimization feature.
cpu number | @alicloud/ros-cdk-core.IResolvable Property cpu: The number of vCPUs that you want to allocate to the elastic container instance.
cpuOptionsCore number | @alicloud/ros-cdk-core.IResolvable Property cpuOptionsCore: The number of physical CPU cores.
cpuOptionsThreadsPerCore number | @alicloud/ros-cdk-core.IResolvable Property cpuOptionsThreadsPerCore: The number of threads per core.
dataCacheBucket string | @alicloud/ros-cdk-core.IResolvable Property dataCacheBucket: The bucket that stores data caches.
dataCacheBurstingEnabled boolean | @alicloud/ros-cdk-core.IResolvable Property dataCacheBurstingEnabled: Specifies whether to enable the Performance Burst feature for the ESSD AutoPL disk used for data caching.
dataCachePl string | @alicloud/ros-cdk-core.IResolvable Property dataCachePl: The performance level (PL) of the disk used for data caching.
dataCacheProvisionedIops number | @alicloud/ros-cdk-core.IResolvable Property dataCacheProvisionedIops: The IOPS provisioned for the ESSD AutoPL disk used for data caching.
dnsConfigNameServers @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property dnsConfigNameServers: The IP addresses of the DNS servers.
dnsConfigOptions @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | DnsConfigOptionsProperty[] Property dnsConfigOptions:.
dnsConfigSearches @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property dnsConfigSearches: The search domains of the DNS server.
dnsPolicy string | @alicloud/ros-cdk-core.IResolvable Property dnsPolicy: The Domain Name System (DNS) policy.
egressBandwidth number | @alicloud/ros-cdk-core.IResolvable Property egressBandwidth: The maximum outbound bandwidth.
eipBandwidth number | @alicloud/ros-cdk-core.IResolvable Property eipBandwidth: The bandwidth of the EIP.
ephemeralStorage number | @alicloud/ros-cdk-core.IResolvable Property ephemeralStorage: The size of the temporary storage space.
hostAliases @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | HostAliasesProperty[] Property hostAliases:.
hostName string | @alicloud/ros-cdk-core.IResolvable Property hostName: The hostname of the elastic container instance.
imageRegistryCredentials @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | ImageRegistryCredentialsProperty[] Property imageRegistryCredentials:.
imageSnapshotId string | @alicloud/ros-cdk-core.IResolvable Property imageSnapshotId: The ID of the image cache snapshot.
ingressBandwidth number | @alicloud/ros-cdk-core.IResolvable Property ingressBandwidth: The maximum inbound bandwidth.
initContainers @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | InitContainersProperty[] Property initContainers:.
instanceFamilyLevel string | @alicloud/ros-cdk-core.IResolvable Property instanceFamilyLevel: The level of the instance family.
instanceTypes @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property instanceTypes: The specified ECS instance types.
ipv6AddressCount number | @alicloud/ros-cdk-core.IResolvable Property ipv6AddressCount: The number of IPv6 addresses.
loadBalancerWeight number | @alicloud/ros-cdk-core.IResolvable Property loadBalancerWeight: The weight of the elastic container instance as a backend server.
memory number | @alicloud/ros-cdk-core.IResolvable Property memory: The memory size that you want to allocate to the elastic container instance.
ntpServers @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property ntpServers: The Network Time Protocol (NTP) server.
ramRoleName string | @alicloud/ros-cdk-core.IResolvable Property ramRoleName: The name of the Resource Access Management (RAM) role that you want to assign to the elastic container instance.
resourceGroupId string | @alicloud/ros-cdk-core.IResolvable Property resourceGroupId: The ID of the resource group.
restartPolicy string | @alicloud/ros-cdk-core.IResolvable Property restartPolicy: The restart policy of the elastic container instance.
securityContextSysctls @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | SecurityContextSysctlsProperty[] Property securityContextSysctls:.
spotPriceLimit number | @alicloud/ros-cdk-core.IResolvable Property spotPriceLimit: The maximum hourly price of the preemptible elastic container instance.
spotStrategy string | @alicloud/ros-cdk-core.IResolvable Property spotStrategy: The bidding policy of the instance.
tags TagsProperty[] Property tags:.
terminationGracePeriodSeconds number | @alicloud/ros-cdk-core.IResolvable Property terminationGracePeriodSeconds: The buffer period during which a program handles operations before the program is stopped.
volumes @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | VolumesProperty[] Property volumes:.

containerGroupNameRequired

public readonly containerGroupName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property containerGroupName: The name of the elastic container instance.


scalingConfigurationNameRequired

public readonly scalingConfigurationName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

public readonly scalingGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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


securityGroupIdRequired

public readonly securityGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

public readonly acrRegistryInfos: IResolvable | IResolvable | AcrRegistryInfosProperty[];

Property acrRegistryInfos:.


activeDeadlineSecondsOptional

public readonly activeDeadlineSeconds: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

Property activeDeadlineSeconds: The validity period of the scaling configuration.

Unit: seconds.


autoCreateEipOptional

public readonly autoCreateEip: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

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


autoMatchImageCacheOptional

public readonly autoMatchImageCache: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

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

Valid values: true false Default value: false.


containersOptional

public readonly containers: IResolvable | IResolvable | ContainersProperty[];
  • Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | ContainersProperty[]

Property containers:.


costOptimizationOptional

public readonly costOptimization: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

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

Valid values: true false Default value: false.


cpuOptional

public readonly cpu: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

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


cpuOptionsCoreOptional

public readonly cpuOptionsCore: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

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

public readonly cpuOptionsThreadsPerCore: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

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

public readonly dataCacheBucket: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property dataCacheBucket: The bucket that stores data caches.


dataCacheBurstingEnabledOptional

public readonly dataCacheBurstingEnabled: boolean | IResolvable;
  • Type: boolean | @alicloud/ros-cdk-core.IResolvable

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

public readonly dataCachePl: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

public readonly dataCacheProvisionedIops: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

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

public readonly dnsConfigNameServers: IResolvable | string | IResolvable[];
  • Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]

Property dnsConfigNameServers: The IP addresses of the DNS servers.


dnsConfigOptionsOptional

public readonly dnsConfigOptions: IResolvable | IResolvable | DnsConfigOptionsProperty[];

Property dnsConfigOptions:.


dnsConfigSearchesOptional

public readonly dnsConfigSearches: IResolvable | string | IResolvable[];
  • Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]

Property dnsConfigSearches: The search domains of the DNS server.


dnsPolicyOptional

public readonly dnsPolicy: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

public readonly egressBandwidth: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

Property egressBandwidth: The maximum outbound bandwidth.

Unit: bytes.


eipBandwidthOptional

public readonly eipBandwidth: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

Property eipBandwidth: The bandwidth of the EIP.

Default value: 5. Unit: Mbit\/s.


ephemeralStorageOptional

public readonly ephemeralStorage: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

Property ephemeralStorage: The size of the temporary storage space.

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


hostAliasesOptional

public readonly hostAliases: IResolvable | IResolvable | HostAliasesProperty[];
  • Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | HostAliasesProperty[]

Property hostAliases:.


hostNameOptional

public readonly hostName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property hostName: The hostname of the elastic container instance.


imageRegistryCredentialsOptional

public readonly imageRegistryCredentials: IResolvable | IResolvable | ImageRegistryCredentialsProperty[];

Property imageRegistryCredentials:.


imageSnapshotIdOptional

public readonly imageSnapshotId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property imageSnapshotId: The ID of the image cache snapshot.


ingressBandwidthOptional

public readonly ingressBandwidth: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

Property ingressBandwidth: The maximum inbound bandwidth.

Unit: bytes.


initContainersOptional

public readonly initContainers: IResolvable | IResolvable | InitContainersProperty[];

Property initContainers:.


instanceFamilyLevelOptional

public readonly instanceFamilyLevel: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

public readonly instanceTypes: IResolvable | string | IResolvable[];
  • Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]

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

public readonly ipv6AddressCount: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

Property ipv6AddressCount: The number of IPv6 addresses.


loadBalancerWeightOptional

public readonly loadBalancerWeight: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

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

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


memoryOptional

public readonly memory: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

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

Unit: GiB.


ntpServersOptional

public readonly ntpServers: IResolvable | string | IResolvable[];
  • Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]

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


ramRoleNameOptional

public readonly ramRoleName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

public readonly resourceGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property resourceGroupId: The ID of the resource group.


restartPolicyOptional

public readonly restartPolicy: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

public readonly securityContextSysctls: IResolvable | IResolvable | SecurityContextSysctlsProperty[];

Property securityContextSysctls:.


spotPriceLimitOptional

public readonly spotPriceLimit: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

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

public readonly spotStrategy: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

public readonly tags: TagsProperty[];

Property tags:.


terminationGracePeriodSecondsOptional

public readonly terminationGracePeriodSeconds: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

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

Unit: seconds.


volumesOptional

public readonly volumes: IResolvable | IResolvable | VolumesProperty[];
  • Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | VolumesProperty[]

Property volumes:.