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:. |
containerGroupName
Required
public readonly containerGroupName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property containerGroupName: The name of the elastic container instance.
scalingConfigurationName
Required
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.
scalingGroupId
Required
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.
securityGroupId
Required
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.
acrRegistryInfos
Optional
public readonly acrRegistryInfos: IResolvable | IResolvable | AcrRegistryInfosProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | AcrRegistryInfosProperty[]
Property acrRegistryInfos:.
activeDeadlineSeconds
Optional
public readonly activeDeadlineSeconds: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property activeDeadlineSeconds: The validity period of the scaling configuration.
Unit: seconds.
autoCreateEip
Optional
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.
autoMatchImageCache
Optional
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.
containers
Optional
public readonly containers: IResolvable | IResolvable | ContainersProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | ContainersProperty[]
Property containers:.
costOptimization
Optional
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.
cpu
Optional
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.
cpuOptionsCore
Optional
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.
cpuOptionsThreadsPerCore
Optional
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.
dataCacheBucket
Optional
public readonly dataCacheBucket: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property dataCacheBucket: The bucket that stores data caches.
dataCacheBurstingEnabled
Optional
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.
dataCachePl
Optional
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.
dataCacheProvisionedIops
Optional
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.
dnsConfigNameServers
Optional
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.
dnsConfigOptions
Optional
public readonly dnsConfigOptions: IResolvable | IResolvable | DnsConfigOptionsProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | DnsConfigOptionsProperty[]
Property dnsConfigOptions:.
dnsConfigSearches
Optional
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.
dnsPolicy
Optional
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.
egressBandwidth
Optional
public readonly egressBandwidth: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property egressBandwidth: The maximum outbound bandwidth.
Unit: bytes.
eipBandwidth
Optional
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.
ephemeralStorage
Optional
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.
hostAliases
Optional
public readonly hostAliases: IResolvable | IResolvable | HostAliasesProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | HostAliasesProperty[]
Property hostAliases:.
hostName
Optional
public readonly hostName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property hostName: The hostname of the elastic container instance.
imageRegistryCredentials
Optional
public readonly imageRegistryCredentials: IResolvable | IResolvable | ImageRegistryCredentialsProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | ImageRegistryCredentialsProperty[]
Property imageRegistryCredentials:.
imageSnapshotId
Optional
public readonly imageSnapshotId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property imageSnapshotId: The ID of the image cache snapshot.
ingressBandwidth
Optional
public readonly ingressBandwidth: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property ingressBandwidth: The maximum inbound bandwidth.
Unit: bytes.
initContainers
Optional
public readonly initContainers: IResolvable | IResolvable | InitContainersProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | InitContainersProperty[]
Property initContainers:.
instanceFamilyLevel
Optional
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.
instanceTypes
Optional
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.
ipv6AddressCount
Optional
public readonly ipv6AddressCount: number | IResolvable;
- Type: number | @alicloud/ros-cdk-core.IResolvable
Property ipv6AddressCount: The number of IPv6 addresses.
loadBalancerWeight
Optional
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.
memory
Optional
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.
ntpServers
Optional
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.
ramRoleName
Optional
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.
resourceGroupId
Optional
public readonly resourceGroupId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property resourceGroupId: The ID of the resource group.
restartPolicy
Optional
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.
securityContextSysctls
Optional
public readonly securityContextSysctls: IResolvable | IResolvable | SecurityContextSysctlsProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | SecurityContextSysctlsProperty[]
Property securityContextSysctls:.
spotPriceLimit
Optional
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.
spotStrategy
Optional
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.
tags
Optional
public readonly tags: TagsProperty[];
- Type: TagsProperty[]
Property tags:.
terminationGracePeriodSeconds
Optional
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.
volumes
Optional
public readonly volumes: IResolvable | IResolvable | VolumesProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | VolumesProperty[]
Property volumes:.