public class RollingUpgradePolicy extends Object
Constructor and Description |
---|
RollingUpgradePolicy() |
Modifier and Type | Method and Description |
---|---|
Integer |
maxBatchInstancePercent()
Get the maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch.
|
Integer |
maxUnhealthyInstancePercent()
Get the maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts.
|
Integer |
maxUnhealthyUpgradedInstancePercent()
Get the maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state.
|
String |
pauseTimeBetweenBatches()
Get the wait time between completing the update for all virtual machines in one batch and starting the next batch.
|
RollingUpgradePolicy |
withMaxBatchInstancePercent(Integer maxBatchInstancePercent)
Set the maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch.
|
RollingUpgradePolicy |
withMaxUnhealthyInstancePercent(Integer maxUnhealthyInstancePercent)
Set the maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts.
|
RollingUpgradePolicy |
withMaxUnhealthyUpgradedInstancePercent(Integer maxUnhealthyUpgradedInstancePercent)
Set the maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state.
|
RollingUpgradePolicy |
withPauseTimeBetweenBatches(String pauseTimeBetweenBatches)
Set the wait time between completing the update for all virtual machines in one batch and starting the next batch.
|
public Integer maxBatchInstancePercent()
public RollingUpgradePolicy withMaxBatchInstancePercent(Integer maxBatchInstancePercent)
maxBatchInstancePercent
- the maxBatchInstancePercent value to setpublic Integer maxUnhealthyInstancePercent()
public RollingUpgradePolicy withMaxUnhealthyInstancePercent(Integer maxUnhealthyInstancePercent)
maxUnhealthyInstancePercent
- the maxUnhealthyInstancePercent value to setpublic Integer maxUnhealthyUpgradedInstancePercent()
public RollingUpgradePolicy withMaxUnhealthyUpgradedInstancePercent(Integer maxUnhealthyUpgradedInstancePercent)
maxUnhealthyUpgradedInstancePercent
- the maxUnhealthyUpgradedInstancePercent value to setpublic String pauseTimeBetweenBatches()
public RollingUpgradePolicy withPauseTimeBetweenBatches(String pauseTimeBetweenBatches)
pauseTimeBetweenBatches
- the pauseTimeBetweenBatches value to setCopyright © 2019. All rights reserved.