Class: Google::Apis::AutoscalerV1beta2::AutoscalingPolicyLoadBalancingUtilization
- Inherits:
-
Object
- Object
- Google::Apis::AutoscalerV1beta2::AutoscalingPolicyLoadBalancingUtilization
- 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
-
#utilization_target ⇒ Float
Fraction of backend capacity utilization (set in HTTP load balancing configuration) that Autoscaler should maintain.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutoscalingPolicyLoadBalancingUtilization
constructor
A new instance of AutoscalingPolicyLoadBalancingUtilization.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_target ⇒ Float
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
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 |