public static final class RescaleApplicationRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
RescaleApplicationRequest.Builder |
appId(String appId)
The ID of the application.
|
RescaleApplicationRequest.Builder |
autoEnableApplicationScalingRule(Boolean autoEnableApplicationScalingRule)
Specifies whether to automatically enable an auto scaling policy for the application.
|
RescaleApplicationRequest |
build() |
RescaleApplicationRequest.Builder |
minReadyInstanceRatio(Integer minReadyInstanceRatio)
The percentage of the minimum number of available instances.
|
RescaleApplicationRequest.Builder |
minReadyInstances(Integer minReadyInstances)
The minimum number of available instances.
|
RescaleApplicationRequest.Builder |
replicas(Integer replicas)
The expected number of instances.
|
public RescaleApplicationRequest.Builder appId(String appId)
public RescaleApplicationRequest.Builder autoEnableApplicationScalingRule(Boolean autoEnableApplicationScalingRule)
* **true**: turns on Logon-free Sharing * **false**: turns off Logon-free Sharing
public RescaleApplicationRequest.Builder minReadyInstanceRatio(Integer minReadyInstanceRatio)
* If you set the value to **-1**, the minimum number of available instances is not determined based on this parameter. Default value: -1. * If you set the value to a number **from 0 to 100**, the minimum number of available instances is calculated by using the following formula: Current number of instances × (Value of MinReadyInstanceRatio × 100%). The value is the nearest integer rounded up from the calculated result. For example, if the percentage is set to **50**% and five instances are available, the minimum number of available instances is 3. > When **MinReadyInstance** and **MinReadyInstanceRatio** are specified and **MinReadyInstanceRatio** is set to a number from 0 to 100, the value of MinReadyInstanceRatio** takes precedence.**** For example, if **MinReadyInstances** is set to **5, and **MinReadyInstanceRatio** is set to **50**, the minimum number of available instances is set to the nearest integer rounded up from the calculated result of the following formula: Current number of instances × **50%**.
public RescaleApplicationRequest.Builder minReadyInstances(Integer minReadyInstances)
* If you set the value to **0**, business interruptions occur when the application is updated. * If you set the value to \*\*-1\*\*, the minimum number of available instances is automatically set to a system-recommended value. The value is the nearest integer to which the calculated result of the following formula is rounded up: Current number of instances × 25%. For example, if five instances are available, the minimum number of available instances is calculated by using the following formula: 5 × 25% = 1.25. In this case, the minimum number of available instances is 2. > Make sure that at least one instance is available during application deployment and rollback to prevent business interruptions.
public RescaleApplicationRequest.Builder replicas(Integer replicas)
public RescaleApplicationRequest build()
Copyright © 2024. All rights reserved.