All Products
Search
Document Center

E-MapReduce:NodeGroupConfig

Last Updated:May 28, 2026

Parameter

Type

Description

Example

object

WithPublicIp

boolean

Specifies whether to assign a public IP address to the instances. Valid values:

  • true: Assigns a public IP address.

  • false: Does not assign a public IP address.

Default value: false.

false

SpotInstanceRemedy

boolean

If enabled, the auto scaling group attempts to create a new instance to replace a spot instance that is about to be reclaimed. This process is triggered when the auto scaling group receives a system message about the impending reclamation. Valid values:

  • true: The auto scaling group attempts to replace a spot instance that is about to be reclaimed.

  • false: The auto scaling group does not attempt to replace a spot instance that is about to be reclaimed.

Default value: false.

true

ComponentTags

array

A list of custom component tags.

string

DataDisks

array

The data disks. Currently, the array can contain only one data disk.

DataDisk

The data disk.

CompensateWithOnDemand

boolean

Specifies whether to automatically create pay-as-you-go instances to meet the required capacity when the number of preemptible instances is insufficient. This parameter is effective only when nodeResizeStrategy is set to COST_OPTIMIZED.

true

AutoCompensateState

boolean

  • true: Enables auto-compensation.

  • false: Disables auto-compensation.

Default value: false.

false

SystemDisk SystemDisk

The system disk.

PrivatePoolOptions PrivatePoolOptions

The private pool options. This parameter is effective only when you create pay-as-you-go instances.

IaaSType

string

The IaaS type of the node group. Valid values:

  • ECS

  • ACK

NodeGroupType

string

The type of the node group. Valid values:

  • MASTER: a master node group.

  • CORE: a core node group.

  • TASK: a task node group.

CORE

ImageId

string

The image ID. This parameter is for internal use only. If you specify this parameter, the system uses the specified image to create the node group.

AckConfig

AckConfig

The ACK node group configuration. This parameter is required only when IaaSType is set to ACK.

PaymentType

string

The billing method of the node group. If you do not specify this parameter, the billing method of the cluster is used. Valid values:

  • PayAsYouGo: pay-as-you-go.

  • Subscription: subscription.

Default value: PayAsYouGo.

PayAsYouGo

InstanceTypes

array

The instance types. You can specify 1 to 100 instance types.

["ecs.g6.xlarge"]

string

The instance type.

ecs.g7.2xlarge

CostOptimizedConfig CostOptimizedConfig

The cost optimization settings.

GracefulShutdown

boolean

Specifies whether to enable graceful shutdown for the components in the node group. Valid values:

  • true: Enables graceful shutdown.

  • false: Disables graceful shutdown.

Default value: false.

false

SpotStrategy

string

The preemption strategy for preemptible instances. Valid values:

  • NoSpot: pay-as-you-go instances.

  • SpotWithPriceLimit: preemptible instances with a user-defined maximum hourly price.

  • SpotAsPriceGo: preemptible instances that are automatically bid at the pay-as-you-go price.

Default value: NoSpot.

NoSpot

ZoneId

string

The zone ID.

cn-beijing-h

NodeGroupName

string

The name of the node group. The name can be up to 128 characters in length and must be unique within the cluster.

core-1

NodeCount

integer

The number of nodes in the node group. Valid values: 1 to 1,000.

3

VSwitchIds

array

The vSwitch IDs. You can specify 1 to 20 vSwitch IDs.

["vsw-hp35g7ya5ymw68mmg****"]

string

The vSwitch ID.

SpotBidPrices

array

The bid prices for the preemptible instances. This parameter is effective only when SpotStrategy is set to SpotWithPriceLimit. You can specify up to 100 bid prices.

SpotBidPrice

NodeResizeStrategy

string

The node scale-out strategy. Valid values:

  • COST_OPTIMIZED: The cost-optimized strategy.

  • PRIORITY: The priority-based strategy.

Default value: PRIORITY.

PRIORITY

AutoScalingPolicy

AutoScalingPolicy

The auto scaling policy.

SubscriptionConfig SubscriptionConfig

The subscription settings of the node group. If you do not specify this parameter, the subscription settings of the cluster are used.

AdditionalSecurityGroupIds

array

The IDs of the additional security groups. In addition to the security group of the cluster, you can specify additional security groups for the node group. You can specify up to two security group IDs.

["sg-hp3abbae8lb6lmb1****"]

string

The security group ID.

sg-hp3abbae8lb6lmb1****

DeploymentSetStrategy

string

The deployment set strategy. Valid values:

  • NONE: No deployment sets are used.

  • CLUSTER: The cluster-level deployment set is used.

  • NODE_GROUP: The node group-level deployment set is used.

Default value: NONE.

NONE