Class: Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScaling
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScaling
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/representations.rb more...
Overview
Configuration parameters of autoscaling based on queuing system.
Instance Attribute Summary collapse
-
#acceptable_backlog_per_instance ⇒ Float
Scaling based on the average number of tasks in the queue per each active instance.
-
#cloud_pub_sub ⇒ Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScalingCloudPubSub
Configuration parameters for scaling based on Cloud Pub/Sub subscription queue.
-
#single_worker_throughput_per_sec ⇒ Float
The scaling algorithm will also calculate throughput estimates on its own; if you explicitly provide this value, the autoscaler will take into account your value as well as automatic estimates when deciding how to scale.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutoscalingPolicyQueueBasedScaling
constructor
A new instance of AutoscalingPolicyQueueBasedScaling.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AutoscalingPolicyQueueBasedScaling
Returns a new instance of AutoscalingPolicyQueueBasedScaling
2696 2697 2698 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 2696 def initialize(**args) update!(**args) end |
Instance Attribute Details
#acceptable_backlog_per_instance ⇒ Float
Scaling based on the average number of tasks in the queue per each active
instance. The autoscaler keeps the average number of tasks per instance below
this number, based on data collected in the last couple of minutes. The
autoscaler will also take into account incoming tasks when calculating when to
scale.
Corresponds to the JSON property acceptableBacklogPerInstance
2682 2683 2684 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 2682 def acceptable_backlog_per_instance @acceptable_backlog_per_instance end |
#cloud_pub_sub ⇒ Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScalingCloudPubSub
Configuration parameters for scaling based on Cloud Pub/Sub subscription queue.
Corresponds to the JSON property cloudPubSub
2687 2688 2689 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 2687 def cloud_pub_sub @cloud_pub_sub end |
#single_worker_throughput_per_sec ⇒ Float
The scaling algorithm will also calculate throughput estimates on its own; if
you explicitly provide this value, the autoscaler will take into account your
value as well as automatic estimates when deciding how to scale.
Corresponds to the JSON property singleWorkerThroughputPerSec
2694 2695 2696 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 2694 def single_worker_throughput_per_sec @single_worker_throughput_per_sec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2701 2702 2703 2704 2705 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 2701 def update!(**args) @acceptable_backlog_per_instance = args[:acceptable_backlog_per_instance] if args.key?(:acceptable_backlog_per_instance) @cloud_pub_sub = args[:cloud_pub_sub] if args.key?(:cloud_pub_sub) @single_worker_throughput_per_sec = args[:single_worker_throughput_per_sec] if args.key?(:single_worker_throughput_per_sec) end |