All Products
Search
Document Center

Elastic High Performance Computing:AddNodes

Last Updated:Oct 26, 2026

Adds one or more compute nodes to a specified cluster.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ehpc:AddNodes

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

ClusterId

string

Yes

The ID of the cluster to which you want to add nodes.

You can call the ListClusters operation to query the cluster ID.

ehpc-hz-FYUr32****

ImageOwnerAlias

string

No

The image type. Valid values:

  • system: public image

  • self: custom image

  • others: shared image

  • marketplace: Alibaba Cloud Marketplace image

Default value: system.

system

ImageId

string

No

The image specified for the compute nodes to be added to the cluster. The image must meet the following conditions:

  • The operating system of the specified image must be the same as the operating system of the nodes in the cluster. For example, if the operating system of the nodes in the cluster is CentOS, you can only specify a CentOS image.

Note

If the cluster is a hybrid cloud cluster and the multi-operating system feature is enabled, when the operating system of the nodes in the cluster is Windows, the specified image can be Windows or CentOS.

  • The major version number of the specified image must be the same as the major version number of the image used by the nodes in the cluster. For example, if the cluster uses CentOS 7.x, the specified image must also be CentOS 7.x.

You can call the ListImages and ListCustomImages operations to query the image ID.

centos_7_06_64_20G_alibase_20190711.vhd

Count

integer

Yes

The number of compute nodes to add. Valid values: 1 to 99. The value must be greater than the value of MinCount.

  • If the ECS inventory is less than the value of MinCount, the nodes fail to be added.

  • If the ECS inventory is greater than the value of MinCount but less than the value of Count, the number of nodes added is equal to the value of MinCount.

  • If the ECS inventory is greater than the value of Count, the number of nodes added is equal to the value of Count.

10

InstanceType

string

No

The instance type of the scale-out nodes. By default, the instance type of the compute nodes used during the last scale-out or cluster creation is used.

ecs.n1.tiny

ComputeSpotStrategy

string

No

The preemption policy for the compute nodes. This parameter takes effect only when the EcsChargeType parameter is set to PostPaid. Valid values:

  • NoSpot: pay-as-you-go instance

  • SpotWithPriceLimit: spot instance with a maximum hourly price

  • SpotAsPriceGo: spot instance for which the system automatically places a bid based on the current market price

Default value: NoSpot.

NoSpot

ComputeSpotPriceLimit

string

No

The maximum hourly price for the compute nodes. The value can be accurate to three decimal places. This parameter takes effect only when the SpotStrategy parameter is set to SpotWithPriceLimit.

0.68

EcsChargeType

string

No

The billing method of the nodes in the cluster. Valid values:

  • PostPaid: pay-as-you-go

  • PrePaid: subscription

Default value: PostPaid.

If you select the subscription billing method, auto-renewal is enabled by default. After the cluster is released, auto-renewal is disabled for the nodes.

PostPaid

Period

integer

No

The subscription period of the resources. The unit is specified by the PeriodUnit parameter. This parameter is required and takes effect only when the InstanceChargeType parameter is set to PrePaid. Valid values:

  • When PeriodUnit is set to Week, valid values of Period are 1, 2, 3, and 4.

  • When PeriodUnit is set to Month, valid values of Period are 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60.

Default value: 1.

1

PeriodUnit

string

No

The unit of the subscription period of the resources. Valid values:

  • Week

  • Month

Default value: Month.

Month

AutoRenew

string

No

Specifies whether to enable auto-renewal. This parameter takes effect only when the EcsChargeType parameter is set to PrePaid. Valid values:

  • true: enables auto-renewal

  • false: disables auto-renewal

Default value: true.

true

AutoRenewPeriod

integer

No

The auto-renewal period. This parameter takes effect only when the AutoRenew parameter is set to true.

  • When PeriodUnit is set to Week, valid values of AutoRenewPeriod are 1, 2, and 3.

  • When PeriodUnit is set to Month, valid values of AutoRenewPeriod are 1, 2, 3, 6, and 12.

Default value: 1.

1

JobQueue

string

No

The name of the queue to which the compute nodes are added.

workq

CreateMode

string

No

The method used to create the nodes. Valid values:

  • manual: manual scale-out

  • autoscale: automatic scale-out

Default value: manual.

manual

SystemDiskType

string

No

The category of the system cloud disk. Valid values:

  • cloud_efficiency: ultra disk

  • cloud_ssd: standard SSD

  • cloud_essd: ESSD

  • cloud: basic disk (discontinued)

Default value: cloud_efficiency.

cloud_ssd

SystemDiskSize

integer

No

The size of the system cloud disk. Unit: GiB.

Valid values: 40 to 500.

Default value: 40.

40

ZoneId

string

No

The zone ID.

cn-hangzhou-b

VSwitchId

string

No

The vSwitch ID.

vsw-bp1lfcjbfb099rrjn****

HostNamePrefix

string

No

The hostname prefix. This helps you classify and manage nodes.

compute

HostNameSuffix

string

No

The hostname suffix. This helps you classify and manage nodes.

01

ComputeEnableHt

boolean

No

Specifies whether the compute nodes support hyper-threading. Valid values:

  • true: supports hyper-threading

  • false: does not support hyper-threading

Default value: true.

true

AllocatePublicAddress

boolean

No

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

  • true: assigns a public IP address

  • false: does not assign a public IP address

Default value: false.

false

InternetChargeType

string

No

The billing method of the elastic IP address (EIP). Valid values:

  • PayByBandwidth: pay-by-bandwidth

  • PayByTraffic: pay-by-traffic

PayByTraffic

InternetMaxBandWidthIn

integer

No

The maximum inbound public bandwidth. Unit: Mbit/s. Valid values:

  • If the purchased outbound public bandwidth is less than or equal to 10 Mbit/s, valid values are 1 to 10. Default value: 10.

  • If the purchased outbound public bandwidth is greater than 10 Mbit/s, valid values are 1 to the value of InternetMaxBandWidthOut. Default value: the value of InternetMaxBandWidthOut.

10

InternetMaxBandWidthOut

integer

No

The maximum outbound public bandwidth. Unit: Mbit/s. Valid values: 0 to 100.

Default value: 0.

10

ClientToken

string

No

The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.

123e4567-e89b-12d3-a456-426655440000

SystemDiskLevel

string

No

The performance level of the ESSD used as the system cloud disk. Valid values:

  • PL0: A single ESSD can deliver up to 10,000 random read/write IOPS.

  • PL1: A single ESSD can deliver up to 50,000 random read/write IOPS.

  • PL2: A single ESSD can deliver up to 100,000 random read/write IOPS.

  • PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS.

Default value: PL1.

For more information about ESSD performance parameters, see ESSD.

PL0

MinCount

integer

No

The minimum number of nodes to add. Valid values: 1 to 99. The value must be less than the value of Count.

  • If the ECS inventory is less than the value of MinCount, the nodes fail to be added.

  • If the ECS inventory is greater than the value of MinCount but less than the value of Count, the number of nodes added is equal to the value of MinCount.

  • If the ECS inventory is greater than the value of Count, the number of nodes added is equal to the value of Count.

Default value: 1.

1

Sync

boolean

No

Specifies whether to set this operation as a synchronous operation. Valid values:

  • true: yes

  • false: no

Default value: false.

false

DataDisks

array<object>

No

The list of data cloud disks that are created along with the nodes.

object

No

DataDiskSize

integer

No

The size of the Nth data cloud disk that is created along with the nodes. Unit: GB.

Valid values: 40 to 500.

Default value: 40.

Valid values of N: 0 to 16.

40

DataDiskCategory

string

No

The category of the Nth data cloud disk that is created along with the nodes. Valid values:

  • cloud_efficiency: ultra disk

  • cloud_ssd: standard SSD

  • cloud_essd: ESSD

  • cloud: basic disk

Default value: cloud_efficiency.

Valid values of N: 0 to 16.

cloud_efficiency

DataDiskDeleteWithInstance

boolean

No

Specifies whether to release the Nth data cloud disk that is created along with the nodes when the instance is released. Valid values:

  • true: yes

  • false: no

Default value: true.

Valid values of N: 0 to 16.

true

DataDiskPerformanceLevel

string

No

The performance level of the Nth data cloud disk created along with the nodes when the disk category is ESSD. This parameter takes effect only when the DataDisks.N.DataDiskCategory parameter is set to cloud_essd. Valid values:

  • PL0: A single ESSD can deliver up to 10,000 random read/write IOPS.

  • PL1: A single ESSD can deliver up to 50,000 random read/write IOPS.

  • PL2: A single ESSD can deliver up to 100,000 random read/write IOPS.

  • PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS.

Default value: PL1.

Valid values of N: 0 to 16.

PL1

DataDiskEncrypted

boolean

No

Specifies whether to encrypt the Nth data cloud disk that is created along with the nodes. Valid values:

  • true: yes

  • false: no

Default value: false.

Valid values of N: 0 to 16.

false

DataDiskKMSKeyId

string

No

The ID of the KMS key used by the Nth data cloud disk that is created along with the nodes.

Valid values of N: 0 to 16.

0e478b7a-4262-4802-b8cb-00d3fb40826X

ComputeSpotDuration

integer

No

The protection period of the spot instance. Unit: hours. Valid values: 0 and 1. A value of 0 indicates the no protection period mode. Default value: 1.

1

ComputeSpotInterruptionBehavior

string

No

The interruption pattern of the spot instance. Currently, only Terminate (default) is supported, which directly releases the instance.

Terminate

NetworkInterfaceTrafficMode

string

No

The communication mode of the elastic network interface (ENI). Valid values:

  • Standard: uses the TCP communication mode.

  • HighPerformance: enables the Elastic RDMA Interface (ERI) and uses the RDMA communication mode.

Standard

DnsConfig

string

No

The DNS configuration information.

"{\"DnsType\":\"PrivateZone\",\"DnsName\":\"xxxxx\"}"

Response elements

Element

Type

Description

Example

object

TaskId

string

The task ID.

B745C159-3155-4B94-95D0-4B73D4D2****

RequestId

string

The request ID.

B745C159-3155-4B94-95D0-4B73D4D2****

InstanceIds

object

InstanceId

array

The instance ID.

string

The instance ID.

Note

If AddNodes is an asynchronous operation (the Sync request parameter is set to false), the result is returned immediately after the request succeeds without waiting for the instances to be created. Therefore, the InstanceIds array is empty. You can call the ListNodes operation to query the instance ID.

null

Examples

Success response

JSON format

{
  "TaskId": "B745C159-3155-4B94-95D0-4B73D4D2****",
  "RequestId": "B745C159-3155-4B94-95D0-4B73D4D2****",
  "InstanceIds": {
    "InstanceId": [
      "null"
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParams The specified parameter %s is invalid. The specified parameter %s is invalid.
400 NotEnabled You have not enabled this service You have not enabled this service
400 InDebt Your account has overdue payments. Your account has overdue payments.
400 InvaildSystemDiskSize The system disk size must be greater than or equal to image size. The system disk size must be greater than or equal to image size.
500 UnknownError An unknown error occurred. An unknown error occurred.
403 TooManyComputes The number of computing nodes exceeds the quota. The number of computing nodes exceeds the quota.
403 TooManyLogins The maximum number of logged on nodes is exceeded. The maximum number of logged on nodes is exceeded. The default maximum value is 2.
403 TooManyScc The maximum number of SCC instances is exceeded. The maximum number of SCC instances is exceeded. The default maximum value is 15.
403 InvalidClusterStatus The operation failed due to invalid cluster status. The cluster status does not support the operation.
403 ConflictOpt A conflicting operation is running. A conflicting operation is running. Please try again later.
403 ImageNotSupported The specified image is not supported. The specified image does not exist. Change the image and try again.
403 InvalidOpt The specified operation is invalid. Please try again later. The operation is unknown. Please check arguments and try again later.
404 ImageNotFound The specified image does not exist. The specified image does not exist. Please verify the parameter.
404 ClusterNotFound The specified cluster does not exist. The specified instance does not exist.
404 VolumeNotFound The specified volume does not exist. The specified storage does not exist. Please verify the parameter.
404 ManagerNotFound The manager nodes do not exist or their status is abnormal. The manager nodes do not exist or their status is abnormal.
404 ObjectNotFound The specified object is not found. The specified object does not exist. Please verify the parameter.
404 KeyPairNotFound The specified KeyPair does not exist. The specified key pair does not exist. Check whether this parameter is correct.
503 ServiceUnavailable The request has failed due to a temporary failure of the server The request has failed due to a temporary failure of the server.
406 EcsError An error occurred while calling the ECS API operation. ECS API call error. %s
406 EipError The EIP API request failed. EIP API request failed.
406 DbError A database service error occurred. Database request failed.
406 AliyunError An Alibaba Cloud product error occurred. Alibaba Cloud product error. %s
407 NotAuthorized You are not authorized by RAM for this request. The request is not authorized by RAM.
409 PartFailure Part of the batch operation failed. Part of the batch operation failed.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.