Modifies the scaling mode of a delivery group, including fixed quantity (no elastic scaling), scheduled scaling, and automatic scaling.
Operation description
You can configure the scaling pattern for WUYING Cloud Application resources in Settings:
Fixed quantity: Elastic scaling is not used.
Automatic scaling: Automatically scales resources based on the number of connected sessions and the idle duration without session connections.
Scheduled scaling: Executes resource scaling during specified time periods on specified dates.
Before using this operation, make sure that you fully understand the billing method and pricing of WUYING Cloud Application.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:ModifyNodePoolAttribute |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProductType |
string |
No |
The product type. Valid values:
|
CloudApp |
| PoolId |
string |
No |
The resource group ID. |
rg-ew7va2g1wl3vm**** |
| NodeCapacity |
integer |
No |
The number of concurrent sessions, which is the number of sessions that can be simultaneously connected to a single resource. If too many sessions are connected simultaneously, the application experience may degrade. The valid values vary depending on the resource specification. The valid values for each resource specification are as follows:
|
2 |
| NodePoolStrategy |
object |
No |
The automatic scaling policy of the delivery group. |
|
| StrategyType |
string |
No |
The scaling mode. Note
Valid values:
|
NODE_FIXED |
| NodeAmount |
integer |
No |
The number of purchased resources. Valid values: 1 to 100. Note
|
1 |
| MaxScalingAmount |
integer |
No |
The maximum number of resources that can be created during scale-out. This parameter is required when |
10 |
| MaxIdleAppInstanceAmount |
integer |
No |
The maximum number of idle sessions. When this value is specified, automatic scale-out is triggered only when the session usage exceeds |
3 |
| ScalingStep |
integer |
No |
The number of resources created per scale-out operation. Valid values: 1 to 10. This parameter is required when |
2 |
| ScalingUsageThreshold |
string |
No |
The upper threshold of session usage (%). Automatic scale-out is triggered when the session usage exceeds this threshold. The session usage is calculated by using the following formula: |
85 |
| ScalingDownAfterIdleMinutes |
integer |
No |
The maximum duration (in minutes) that a resource without session connections is retained. When no sessions are connected to a resource, a countdown starts based on the duration specified here. The resource is scaled in when the countdown ends. Valid values: 5 to 120. Default value: 5. The following exceptions apply:
|
5 |
| StrategyEnableDate |
string |
No |
The date when the policy takes effect. Format: yyyy-MM-dd. The date must be equal to or later than the current date. This parameter is required when |
2023-01-05 |
| StrategyDisableDate |
string |
No |
The date when the policy expires. Format: yyyy-MM-dd. The interval between the expiration date and the effective date must be between 7 days and 1 year, inclusive. This parameter is required when |
2023-01-19 |
| WarmUp |
boolean |
No |
Specifies whether to enable the resource prefetch policy. This parameter is required when |
false |
| RecurrenceSchedules |
array<object> |
No |
The list of policy execution cycles. This parameter is required when |
|
|
array<object> |
No |
The policy execution cycle. |
||
| RecurrenceType |
string |
No |
The type of the policy execution cycle. You must specify both Valid values:
|
weekly |
| RecurrenceValues |
array |
No |
The list of values for the policy execution cycle. |
|
|
integer |
No |
The value of the policy execution cycle. Valid values:
|
1 |
|
| TimerPeriods |
array<object> |
No |
The list of time periods for the policy execution cycle. Requirements for time period settings:
|
|
|
object |
No |
The time period of the policy execution cycle. |
||
| StartTime |
string |
No |
The beginning of the time period during which the scaling policy is executed. Format: HH:mm. |
12:00 |
| EndTime |
string |
No |
The end of the time period during which the scaling policy is executed. Format: HH:mm. |
15:00 |
| Amount |
integer |
No |
The number of resources. |
2 |
| BizRegionId |
string |
No |
The region ID of the delivery group. For more information about supported regions, see Limits. Valid values:
|
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| Code |
string |
The error code returned if the request failed. |
InvalidParameter.PoolId |
| Message |
string |
The error message returned if the request failed. |
The parameter PoolId is invalid. |
Examples
Success response
JSON format
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"Code": "InvalidParameter.PoolId",
"Message": "The parameter PoolId is invalid."
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.