Modifies the number of nodes in a compute group of a Serverless StarRocks instance.
Operation description
Before using this operation, make sure that you fully understand the billing method and billable items of Serverless StarRocks. When calling this operation, note the following:
-
Only Standard Standard instances support modifying the number of nodes in a compute group. Entry Standard instances do not support this operation.
-
The instance must be in the Running state.
-
The number of FE nodes cannot be an even number, and FE nodes do not support scale-in.
After modifying the node count, billing changes are as follows:
-
Pay-as-you-go: Billed based on the new node count.
-
Subscription: Within the billing cycle, the supplemental fee is calculated based on the price difference between the old and new configurations and the remaining days (from 00:00 of the next day to the end of the validity period).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sr:ModifyNodeNumber |
get |
*Instance
|
None | None |
Request syntax
POST /webapi/resourceChange/modifyNodeNumber HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
c-b25e21e24388**** |
| NodeGroupId |
string |
Yes |
The compute group ID. |
ng-3d5ce6454354**** |
| Target |
integer |
Yes |
The target number of nodes. |
3 |
| PromotionOptionNo |
string |
No |
The coupon ID. |
youhuiquan_promotion_option_id_for_blank |
| Parallelism |
integer |
No |
The decommission concurrency for BE scale-in scenarios in compute-storage coupled mode. Default value: 1. |
1 |
| TerminationGracePeriodSeconds |
integer |
No |
The wait time for running tasks to complete before dropping nodes during CN scale-in scenarios in compute-storage decoupled mode. |
60 |
|
No |
Specifies whether to automatically purchase (pay for) all products specified in the Products parameter. Valid values:
|
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AccessDeniedDetail |
string |
The details of the permission verification failure. |
{ "PolicyType": "AccountLevelIdentityBasedPolicy", "AuthPrincipalOwnerId": "xxx", "EncodedDiagnosticMessage": "xxx", "AuthPrincipalType": "xxx", "AuthPrincipalDisplayName": "xxx", "NoPermissionType": "ImplicitDeny", "AuthAction": "sr:xxx" } |
| Data |
integer |
The order ID. |
24151320976**** |
| ErrCode |
string |
The error code. |
InvalidParams |
| ErrMessage |
string |
The error message. |
Invalid params: [instance not exists]. |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The request ID. |
32A44F0D-BFF6-5664-999A-218BBDE7**** |
| Success |
boolean |
Indicates whether the request was successful. |
false |
Examples
Success response
JSON format
{
"AccessDeniedDetail": "{ \"PolicyType\": \"AccountLevelIdentityBasedPolicy\", \"AuthPrincipalOwnerId\": \"xxx\", \"EncodedDiagnosticMessage\": \"xxx\", \"AuthPrincipalType\": \"xxx\", \"AuthPrincipalDisplayName\": \"xxx\", \"NoPermissionType\": \"ImplicitDeny\", \"AuthAction\": \"sr:xxx\" }",
"Data": 0,
"ErrCode": "InvalidParams",
"ErrMessage": "Invalid params: [instance not exists].",
"HttpStatusCode": 200,
"RequestId": "32A44F0D-BFF6-5664-999A-218BBDE7****",
"Success": false
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.