Scaling Out a Cluster
Function
This API is used to scale out an MRS cluster.
URI
POST /v2/{project_id}/clusters/{cluster_id}/expand
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Explanation Project ID. Constraints N/A Value range The value must consist of 1 to 64 characters. Only letters and digits are allowed. Default value N/A |
cluster_id |
Yes |
String |
Explanation Cluster ID. Constraints N/A Value range The value can contain 1 to 64 characters, including only letters, digits, underscores (_), and hyphens (-). Default value N/A |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
node_group_name |
Yes |
String |
Explanation Node group name. Constraints N/A Value range The value can contain 1 to 64 characters, including only letters, digits, underscores (_), and hyphens (-). Default value N/A |
count |
Yes |
Integer |
Explanation Number of nodes to add Constraints N/A Value range N/A Default value N/A |
skip_bootstrap_scripts |
No |
Boolean |
Explanation Whether to skip the specified bootstrap action during cluster creation on the new node during scale-out. Constraints N/A Value range
Default value true |
scale_without_start |
No |
Boolean |
Explanation Whether the components remain stopped on the added nodes after cluster scale-out. Constraints N/A Value range
Default value false |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
result |
String |
Explanation Result of the request. Value succeeded indicates that the operation is successful, and value failed indicates that the operation fails. Value success is returned if the request for scaling out a non-yearly/monthly node group is successfully issued. Value range
|
order_id |
String |
Explanation Order ID. When you scale out a yearly/monthly node group, the order ID generated during the scale-out is returned. You need to pay for the order to trigger the scale-out. Value range N/A |
Example Request
- Add a node to the node group node_group_1. Skip the bootstrap action and start the components by default.
/v2/ff8080828997cb24018a1b2db3440b80/clusters/f7f45c04-4303-411c-9b71-d2cb730dd162/expand { "node_group_name" : "node_group_1", "count" : "1" }
- Add a node to the node group node_group_1. Do not skip the bootstrap action or start the components.
/v2/ff8080828997cb24018a1b2db3440b80/clusters/f7f45c04-4303-411c-9b71-d2cb730dd162/expand { "node_group_name" : "node_group_1", "count" : "1", "skip_bootstrap_scripts" : false, "scale_without_start" : true }
Example Response
Status code: 200
The response body varies depending on the billing mode of node groups. The order ID is returned for you to settle payment for scaling out a yearly/monthly node group.
- A pay-per-use node group is scaled out successfully.
{ "result" : "succeeded" }
- A yearly/monthly node group is scaled out successfully. The ID of the order you need to pay is CS231XXXXXXXXXXX.
{ "order_id" : "CS231XXXXXXXXXXX" }
Status Codes
For details, see Status Codes.
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot