Class: Azure::Compute::Mgmt::V2019_03_01::Models::RollingUpgradePolicy
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2019_03_01::Models::RollingUpgradePolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb
Overview
The configuration parameters used while performing a rolling upgrade.
Instance Attribute Summary collapse
-
#max_batch_instance_percent ⇒ Integer
instances that will be upgraded simultaneously by the rolling upgrade in one batch.
-
#max_unhealthy_instance_percent ⇒ Integer
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.
-
#max_unhealthy_upgraded_instance_percent ⇒ Integer
instances that can be found to be in an unhealthy state.
-
#pause_time_between_batches ⇒ String
virtual machines in one batch and starting the next batch.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for RollingUpgradePolicy class as Ruby Hash.
Instance Attribute Details
#max_batch_instance_percent ⇒ Integer
instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%.
21 22 23 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb', line 21 def max_batch_instance_percent @max_batch_instance_percent end |
#max_unhealthy_instance_percent ⇒ Integer
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. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%.
29 30 31 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb', line 29 def max_unhealthy_instance_percent @max_unhealthy_instance_percent end |
#max_unhealthy_upgraded_instance_percent ⇒ Integer
instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%.
36 37 38 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb', line 36 def max_unhealthy_upgraded_instance_percent @max_unhealthy_upgraded_instance_percent end |
#pause_time_between_batches ⇒ String
virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S).
42 43 44 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb', line 42 def pause_time_between_batches @pause_time_between_batches end |
Class Method Details
.mapper ⇒ Object
Mapper for RollingUpgradePolicy class as Ruby Hash. This will be used for serialization/deserialization.
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb', line 49 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'RollingUpgradePolicy', type: { name: 'Composite', class_name: 'RollingUpgradePolicy', model_properties: { max_batch_instance_percent: { client_side_validation: true, required: false, serialized_name: 'maxBatchInstancePercent', constraints: { InclusiveMaximum: 100, InclusiveMinimum: 5 }, type: { name: 'Number' } }, max_unhealthy_instance_percent: { client_side_validation: true, required: false, serialized_name: 'maxUnhealthyInstancePercent', constraints: { InclusiveMaximum: 100, InclusiveMinimum: 5 }, type: { name: 'Number' } }, max_unhealthy_upgraded_instance_percent: { client_side_validation: true, required: false, serialized_name: 'maxUnhealthyUpgradedInstancePercent', constraints: { InclusiveMaximum: 100, InclusiveMinimum: 0 }, type: { name: 'Number' } }, pause_time_between_batches: { client_side_validation: true, required: false, serialized_name: 'pauseTimeBetweenBatches', type: { name: 'String' } } } } } end |