class Google::Apis::ReplicapoolupdaterV1beta1::RollingUpdate::Policy

Parameters of the update process.

Attributes

auto_pause_after_instances[RW]

Number of instances to update before the updater pauses the rolling update. Corresponds to the JSON property `autoPauseAfterInstances` @return [Fixnum]

instance_startup_timeout_sec[RW]

The maximum amount of time that the updater waits for a HEALTHY state after all of the update steps are complete. If the HEALTHY state is not received before the deadline, the instance update is considered a failure. Corresponds to the JSON property `instanceStartupTimeoutSec` @return [Fixnum]

max_num_concurrent_instances[RW]

The maximum number of instances that can be updated simultaneously. An instance update is considered complete only after the instance is restarted and initialized. Corresponds to the JSON property `maxNumConcurrentInstances` @return [Fixnum]

max_num_failed_instances[RW]

The maximum number of instance updates that can fail before the group update is considered a failure. An instance update is considered failed if any of its update actions (e.g. Stop call on Instance resource in Rolling Reboot) failed with permanent failure, or if the instance is in an UNHEALTHY state after it finishes all of the update actions. Corresponds to the JSON property `maxNumFailedInstances` @return [Fixnum]

min_instance_update_time_sec[RW]

The minimum amount of time that the updater spends to update each instance. Update time is the time it takes to complete all update actions (e.g. Stop call on Instance resource in Rolling Reboot), reboot, and initialize. If the instance update finishes early, the updater pauses for the remainder of the time before it starts the next instance update. Corresponds to the JSON property `minInstanceUpdateTimeSec` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/replicapoolupdater_v1beta1/classes.rb, line 680
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/replicapoolupdater_v1beta1/classes.rb, line 685
def update!(**args)
  @auto_pause_after_instances = args[:auto_pause_after_instances] if args.key?(:auto_pause_after_instances)
  @instance_startup_timeout_sec = args[:instance_startup_timeout_sec] if args.key?(:instance_startup_timeout_sec)
  @max_num_concurrent_instances = args[:max_num_concurrent_instances] if args.key?(:max_num_concurrent_instances)
  @max_num_failed_instances = args[:max_num_failed_instances] if args.key?(:max_num_failed_instances)
  @min_instance_update_time_sec = args[:min_instance_update_time_sec] if args.key?(:min_instance_update_time_sec)
end