Class: Google::Apis::DataprocV1::BasicAutoscalingAlgorithm
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::BasicAutoscalingAlgorithm
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb
Overview
Basic algorithm for autoscaling.
Instance Attribute Summary collapse
-
#cooldown_period ⇒ String
Optional.
-
#spark_standalone_config ⇒ Google::Apis::DataprocV1::SparkStandaloneAutoscalingConfig
Basic autoscaling configurations for Spark Standalone.
-
#yarn_config ⇒ Google::Apis::DataprocV1::BasicYarnAutoscalingConfig
Basic autoscaling configurations for YARN.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BasicAutoscalingAlgorithm
constructor
A new instance of BasicAutoscalingAlgorithm.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BasicAutoscalingAlgorithm
Returns a new instance of BasicAutoscalingAlgorithm.
848 849 850 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 848 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cooldown_period ⇒ String
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
836 837 838 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 836 def cooldown_period @cooldown_period end |
#spark_standalone_config ⇒ Google::Apis::DataprocV1::SparkStandaloneAutoscalingConfig
Basic autoscaling configurations for Spark Standalone.
Corresponds to the JSON property sparkStandaloneConfig
841 842 843 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 841 def spark_standalone_config @spark_standalone_config end |
#yarn_config ⇒ Google::Apis::DataprocV1::BasicYarnAutoscalingConfig
Basic autoscaling configurations for YARN.
Corresponds to the JSON property yarnConfig
846 847 848 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 846 def yarn_config @yarn_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
853 854 855 856 857 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 853 def update!(**args) @cooldown_period = args[:cooldown_period] if args.key?(:cooldown_period) @spark_standalone_config = args[:spark_standalone_config] if args.key?(:spark_standalone_config) @yarn_config = args[:yarn_config] if args.key?(:yarn_config) end |