public static class InstanceGroupManagerUpdatePolicy.Builder extends Object
Modifier and Type | Method and Description |
---|---|
InstanceGroupManagerUpdatePolicy |
build() |
InstanceGroupManagerUpdatePolicy.Builder |
clone() |
FixedOrPercent |
getMaxSurge()
The maximum number of instances that can be created above the specified targetSize during the
update process.
|
FixedOrPercent |
getMaxUnavailable()
The maximum number of instances that can be unavailable during the update process.
|
String |
getMinimalAction()
Minimal action to be taken on an instance.
|
String |
getType() |
InstanceGroupManagerUpdatePolicy.Builder |
mergeFrom(InstanceGroupManagerUpdatePolicy other) |
InstanceGroupManagerUpdatePolicy.Builder |
setMaxSurge(FixedOrPercent maxSurge)
The maximum number of instances that can be created above the specified targetSize during the
update process.
|
InstanceGroupManagerUpdatePolicy.Builder |
setMaxUnavailable(FixedOrPercent maxUnavailable)
The maximum number of instances that can be unavailable during the update process.
|
InstanceGroupManagerUpdatePolicy.Builder |
setMinimalAction(String minimalAction)
Minimal action to be taken on an instance.
|
InstanceGroupManagerUpdatePolicy.Builder |
setType(String type) |
public InstanceGroupManagerUpdatePolicy.Builder mergeFrom(InstanceGroupManagerUpdatePolicy other)
public FixedOrPercent getMaxSurge()
At least one of either maxSurge or maxUnavailable must be greater than 0. Learn more about maxSurge.
public InstanceGroupManagerUpdatePolicy.Builder setMaxSurge(FixedOrPercent maxSurge)
At least one of either maxSurge or maxUnavailable must be greater than 0. Learn more about maxSurge.
public FixedOrPercent getMaxUnavailable()
- The instance's status is RUNNING. - If there is a health check on the instance group, the instance's liveness health check result must be HEALTHY at least once. If there is no health check on the group, then the instance only needs to have a status of RUNNING to be considered available. By default, a fixed value of 1 is used. This value can be either a fixed number or a percentage if the instance group has 10 or more instances. If you set a percentage, the number of instances will be rounded up if necessary.
At least one of either maxSurge or maxUnavailable must be greater than 0. Learn more about maxUnavailable.
public InstanceGroupManagerUpdatePolicy.Builder setMaxUnavailable(FixedOrPercent maxUnavailable)
- The instance's status is RUNNING. - If there is a health check on the instance group, the instance's liveness health check result must be HEALTHY at least once. If there is no health check on the group, then the instance only needs to have a status of RUNNING to be considered available. By default, a fixed value of 1 is used. This value can be either a fixed number or a percentage if the instance group has 10 or more instances. If you set a percentage, the number of instances will be rounded up if necessary.
At least one of either maxSurge or maxUnavailable must be greater than 0. Learn more about maxUnavailable.
public String getMinimalAction()
public InstanceGroupManagerUpdatePolicy.Builder setMinimalAction(String minimalAction)
public String getType()
public InstanceGroupManagerUpdatePolicy.Builder setType(String type)
public InstanceGroupManagerUpdatePolicy build()
public InstanceGroupManagerUpdatePolicy.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.