Class: Google::Apis::BigtableadminV2::AutoscalingTargets

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

Overview

The Autoscaling targets for a Cluster. These determine the recommended nodes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AutoscalingTargets

Returns a new instance of AutoscalingTargets.



289
290
291
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 289

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

Instance Attribute Details

#cpu_utilization_percentFixnum

The cpu utilization that the Autoscaler should be trying to achieve. This number is on a scale from 0 (no utilization) to 100 (total utilization), and is limited between 10 and 80, otherwise it will return INVALID_ARGUMENT error. Corresponds to the JSON property cpuUtilizationPercent

Returns:

  • (Fixnum)


278
279
280
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 278

def cpu_utilization_percent
  @cpu_utilization_percent
end

#storage_utilization_gib_per_nodeFixnum

The storage utilization that the Autoscaler should be trying to achieve. This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster, otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, it will be treated as if it were set to the default value: 2560 for SSD, 8192 for HDD. Corresponds to the JSON property storageUtilizationGibPerNode

Returns:

  • (Fixnum)


287
288
289
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 287

def storage_utilization_gib_per_node
  @storage_utilization_gib_per_node
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



294
295
296
297
# File 'lib/google/apis/bigtableadmin_v2/classes.rb', line 294

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