class Google::Apis::DataprocV1::BasicAutoscalingAlgorithm

Basic algorithm for autoscaling.

Attributes

cooldown_period[RW]

Optional. Duration between scaling events. A scaling period starts after the update operation from the previous event has completed.Bounds: 2m, 1d. Default: 2m. Corresponds to the JSON property `cooldownPeriod` @return [String]

yarn_config[RW]

Basic autoscaling configurations for YARN. Corresponds to the JSON property `yarnConfig` @return [Google::Apis::DataprocV1::BasicYarnAutoscalingConfig]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dataproc_v1/classes.rb, line 159
def update!(**args)
  @cooldown_period = args[:cooldown_period] if args.key?(:cooldown_period)
  @yarn_config = args[:yarn_config] if args.key?(:yarn_config)
end