Class: Google::Apis::AutoscalerV1beta2::AutoscalingPolicyLoadBalancingUtilization

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

Overview

Load balancing utilization policy.

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) ⇒ AutoscalingPolicyLoadBalancingUtilization

Returns a new instance of AutoscalingPolicyLoadBalancingUtilization.


244
245
246
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 244

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

Instance Attribute Details

#utilization_targetFloat

Fraction of backend capacity utilization (set in HTTP load balancing configuration) that Autoscaler should maintain. Must be a positive float value. If not defined, the default is 0.8. For example if your maxRatePerInstance capacity (in HTTP Load Balancing configuration) is set at 10 and you would like to keep number of instances such that each instance receives 7 QPS on average, set this to 0.7. Corresponds to the JSON property utilizationTarget

Returns:

  • (Float)

242
243
244
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 242

def utilization_target
  @utilization_target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


249
250
251
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 249

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