public final class RollingUpgradePolicy extends Object
Constructor and Description |
---|
RollingUpgradePolicy() |
Modifier and Type | Method and Description |
---|---|
Integer |
maxBatchInstancePercent()
Get the maxBatchInstancePercent property: The maximum percent of total virtual machine instances that will be
upgraded simultaneously by the rolling upgrade in one batch.
|
Integer |
maxUnhealthyInstancePercent()
Get the maxUnhealthyInstancePercent property: 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 maxUnhealthyUpgradedInstancePercent property: The maximum percentage of upgraded virtual machine
instances that can be found to be in an unhealthy state.
|
String |
pauseTimeBetweenBatches()
Get the pauseTimeBetweenBatches property: The wait time between completing the update for all virtual machines in
one batch and starting the next batch.
|
void |
validate()
Validates the instance.
|
RollingUpgradePolicy |
withMaxBatchInstancePercent(Integer maxBatchInstancePercent)
Set the maxBatchInstancePercent property: 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 maxUnhealthyInstancePercent property: 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 maxUnhealthyUpgradedInstancePercent property: The maximum percentage of upgraded virtual machine
instances that can be found to be in an unhealthy state.
|
RollingUpgradePolicy |
withPauseTimeBetweenBatches(String pauseTimeBetweenBatches)
Set the pauseTimeBetweenBatches property: 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 set.public Integer maxUnhealthyInstancePercent()
public RollingUpgradePolicy withMaxUnhealthyInstancePercent(Integer maxUnhealthyInstancePercent)
maxUnhealthyInstancePercent
- the maxUnhealthyInstancePercent value to set.public Integer maxUnhealthyUpgradedInstancePercent()
public RollingUpgradePolicy withMaxUnhealthyUpgradedInstancePercent(Integer maxUnhealthyUpgradedInstancePercent)
maxUnhealthyUpgradedInstancePercent
- the maxUnhealthyUpgradedInstancePercent value to set.public String pauseTimeBetweenBatches()
public RollingUpgradePolicy withPauseTimeBetweenBatches(String pauseTimeBetweenBatches)
pauseTimeBetweenBatches
- the pauseTimeBetweenBatches value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.