public class ServiceSettings extends AbstractModel
header, skipSign
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.
|
String |
getReplaceMode()
Get Replace mode of unhealthy replacement service.
|
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 |
setReplaceMode(String ReplaceMode)
Set Replace mode of unhealthy replacement service.
|
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, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, 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.public String getReplaceMode()
public void setReplaceMode(String ReplaceMode)
ReplaceMode
- Replace mode of unhealthy replacement service. Valid values:
RECREATE: Rebuild an instance to replace the original unhealthy instance.
RESET: Performing a system reinstallation on unhealthy instances to keep information such as data disks, private IP addresses, and instance IDs unchanged. The instance login settings, HostName, enhanced services, and UserData will remain consistent with the current launch configuration.
Default value: RECREATE.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2024. All rights reserved.