public class ServiceSettings extends AbstractModel
Constructor and Description |
---|
ServiceSettings() |
ServiceSettings(ServiceSettings source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
getReplaceLoadBalancerUnhealthy()
Get Enable unhealthy instance replacement.
|
Boolean |
getReplaceMonitorUnhealthy()
Get Enables unhealthy instance replacement.
|
String |
getScalingMode()
Get Valid values:
CLASSIC_SCALING: this is the typical scaling method, which creates and terminates instances to perform scaling operations.
|
void |
setReplaceLoadBalancerUnhealthy(Boolean ReplaceLoadBalancerUnhealthy)
Set Enable unhealthy instance replacement.
|
void |
setReplaceMonitorUnhealthy(Boolean ReplaceMonitorUnhealthy)
Set Enables unhealthy instance replacement.
|
void |
setScalingMode(String ScalingMode)
Set Valid values:
CLASSIC_SCALING: this is the typical scaling method, which creates and terminates instances to perform scaling operations.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public ServiceSettings()
public ServiceSettings(ServiceSettings source)
public Boolean getReplaceMonitorUnhealthy()
public void setReplaceMonitorUnhealthy(Boolean ReplaceMonitorUnhealthy)
ReplaceMonitorUnhealthy
- Enables unhealthy instance replacement. If this feature is enabled, AS will replace instances that are flagged as unhealthy by Cloud Monitor. If this parameter is not specified, the value will be False by default.public String getScalingMode()
public void setScalingMode(String ScalingMode)
ScalingMode
- Valid values:
CLASSIC_SCALING: this is the typical scaling method, which creates and terminates instances to perform scaling operations.
WAKE_UP_STOPPED_SCALING: this scaling method first tries to start stopped instances. If the number of instances woken up is insufficient, the system creates new instances for scale-out. For scale-in, instances are terminated as in the typical method. You can use the StopAutoScalingInstances API to stop instances in the scaling group. Scale-out operations triggered by alarms will still create new instances.
Default value: CLASSIC_SCALINGpublic Boolean getReplaceLoadBalancerUnhealthy()
public void setReplaceLoadBalancerUnhealthy(Boolean ReplaceLoadBalancerUnhealthy)
ReplaceLoadBalancerUnhealthy
- Enable unhealthy instance replacement. If this feature is enabled, AS will replace instances that are found unhealthy in the CLB health check. If this parameter is not specified, the default value `False` will be used.Copyright © 2023. All rights reserved.