Class: Google::Apis::DataprocV1beta2::BasicAutoscalingAlgorithm

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dataproc_v1beta2/classes.rb,
generated/google/apis/dataproc_v1beta2/representations.rb,
generated/google/apis/dataproc_v1beta2/representations.rb

Overview

Basic algorithm for autoscaling.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BasicAutoscalingAlgorithm

Returns a new instance of BasicAutoscalingAlgorithm.



151
152
153
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 151

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cooldown_periodString

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

Returns:

  • (String)


144
145
146
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 144

def cooldown_period
  @cooldown_period
end

#yarn_configGoogle::Apis::DataprocV1beta2::BasicYarnAutoscalingConfig

Basic autoscaling configurations for YARN. Corresponds to the JSON property yarnConfig



149
150
151
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 149

def yarn_config
  @yarn_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



156
157
158
159
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 156

def update!(**args)
  @cooldown_period = args[:cooldown_period] if args.key?(:cooldown_period)
  @yarn_config = args[:yarn_config] if args.key?(:yarn_config)
end