Class: Google::Apis::DataprocV1::GkeNodePoolAutoscalingConfig
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::GkeNodePoolAutoscalingConfig
- 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
GkeNodePoolAutoscaling contains information the cluster autoscaler needs to adjust the size of the node pool to the current cluster usage.
Instance Attribute Summary collapse
-
#max_node_count ⇒ Fixnum
The maximum number of nodes in the node pool.
-
#min_node_count ⇒ Fixnum
The minimum number of nodes in the node pool.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GkeNodePoolAutoscalingConfig
constructor
A new instance of GkeNodePoolAutoscalingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GkeNodePoolAutoscalingConfig
Returns a new instance of GkeNodePoolAutoscalingConfig.
2043 2044 2045 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2043 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_node_count ⇒ Fixnum
The maximum number of nodes in the node pool. Must be >= min_node_count, and
must be > 0. Note: Quota must be sufficient to scale up the cluster.
Corresponds to the JSON property maxNodeCount
2035 2036 2037 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2035 def max_node_count @max_node_count end |
#min_node_count ⇒ Fixnum
The minimum number of nodes in the node pool. Must be >= 0 and <=
max_node_count.
Corresponds to the JSON property minNodeCount
2041 2042 2043 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2041 def min_node_count @min_node_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2048 2049 2050 2051 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2048 def update!(**args) @max_node_count = args[:max_node_count] if args.key?(:max_node_count) @min_node_count = args[:min_node_count] if args.key?(:min_node_count) end |