Class: Google::Apis::AppengineV1beta5::AutomaticScaling
- Inherits:
-
Object
- Object
- Google::Apis::AppengineV1beta5::AutomaticScaling
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/appengine_v1beta5/classes.rb,
generated/google/apis/appengine_v1beta5/representations.rb,
generated/google/apis/appengine_v1beta5/representations.rb
Overview
Automatic scaling is based on request rate, response latencies, and other application metrics.
Instance Attribute Summary collapse
-
#cool_down_period ⇒ String
Amount of time that the Autoscaler should wait between changes to the number of virtual machines.
-
#cpu_utilization ⇒ Google::Apis::AppengineV1beta5::CpuUtilization
Target scaling by CPU usage.
-
#disk_utilization ⇒ Google::Apis::AppengineV1beta5::DiskUtilization
Target scaling by disk usage.
-
#max_concurrent_requests ⇒ Fixnum
Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.
-
#max_idle_instances ⇒ Fixnum
Maximum number of idle instances that should be maintained for this version.
-
#max_pending_latency ⇒ String
Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
-
#max_total_instances ⇒ Fixnum
Maximum number of instances that should be started to handle requests.
-
#min_idle_instances ⇒ Fixnum
Minimum number of idle instances that should be maintained for this version.
-
#min_pending_latency ⇒ String
Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
-
#min_total_instances ⇒ Fixnum
Minimum number of instances that should be maintained for this version.
-
#network_utilization ⇒ Google::Apis::AppengineV1beta5::NetworkUtilization
Target scaling by network usage.
-
#request_utilization ⇒ Google::Apis::AppengineV1beta5::RequestUtilization
Target scaling by request utilization.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutomaticScaling
constructor
A new instance of AutomaticScaling.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AutomaticScaling
Returns a new instance of AutomaticScaling.
597 598 599 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 597 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cool_down_period ⇒ String
Amount of time that the Autoscaler should wait between changes to the number of virtual machines.
Only applicable for VM runtimes.
Corresponds to the JSON property coolDownPeriod
536 537 538 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 536 def cool_down_period @cool_down_period end |
#cpu_utilization ⇒ Google::Apis::AppengineV1beta5::CpuUtilization
Target scaling by CPU usage.
Corresponds to the JSON property cpuUtilization
541 542 543 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 541 def cpu_utilization @cpu_utilization end |
#disk_utilization ⇒ Google::Apis::AppengineV1beta5::DiskUtilization
Target scaling by disk usage. Only applicable for VM runtimes.
Corresponds to the JSON property diskUtilization
590 591 592 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 590 def disk_utilization @disk_utilization end |
#max_concurrent_requests ⇒ Fixnum
Number of concurrent requests an automatic scaling instance can accept before
the scheduler spawns a new instance. Defaults to a runtime-specific value.
Corresponds to the JSON property maxConcurrentRequests
547 548 549 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 547 def max_concurrent_requests @max_concurrent_requests end |
#max_idle_instances ⇒ Fixnum
Maximum number of idle instances that should be maintained for this version.
Corresponds to the JSON property maxIdleInstances
552 553 554 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 552 def max_idle_instances @max_idle_instances end |
#max_pending_latency ⇒ String
Maximum amount of time that a request should wait in the pending queue before
starting a new instance to handle it.
Corresponds to the JSON property maxPendingLatency
563 564 565 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 563 def max_pending_latency @max_pending_latency end |
#max_total_instances ⇒ Fixnum
Maximum number of instances that should be started to handle requests.
Corresponds to the JSON property maxTotalInstances
557 558 559 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 557 def max_total_instances @max_total_instances end |
#min_idle_instances ⇒ Fixnum
Minimum number of idle instances that should be maintained for this version.
Only applicable for the default version of a module.
Corresponds to the JSON property minIdleInstances
569 570 571 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 569 def min_idle_instances @min_idle_instances end |
#min_pending_latency ⇒ String
Minimum amount of time a request should wait in the pending queue before
starting a new instance to handle it.
Corresponds to the JSON property minPendingLatency
580 581 582 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 580 def min_pending_latency @min_pending_latency end |
#min_total_instances ⇒ Fixnum
Minimum number of instances that should be maintained for this version.
Corresponds to the JSON property minTotalInstances
574 575 576 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 574 def min_total_instances @min_total_instances end |
#network_utilization ⇒ Google::Apis::AppengineV1beta5::NetworkUtilization
Target scaling by network usage. Only applicable for VM runtimes.
Corresponds to the JSON property networkUtilization
595 596 597 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 595 def network_utilization @network_utilization end |
#request_utilization ⇒ Google::Apis::AppengineV1beta5::RequestUtilization
Target scaling by request utilization. Only applicable for VM runtimes.
Corresponds to the JSON property requestUtilization
585 586 587 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 585 def request_utilization @request_utilization end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
602 603 604 605 606 607 608 609 610 611 612 613 614 615 |
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 602 def update!(**args) @cool_down_period = args[:cool_down_period] if args.key?(:cool_down_period) @cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization) @max_concurrent_requests = args[:max_concurrent_requests] if args.key?(:max_concurrent_requests) @max_idle_instances = args[:max_idle_instances] if args.key?(:max_idle_instances) @max_total_instances = args[:max_total_instances] if args.key?(:max_total_instances) @max_pending_latency = args[:max_pending_latency] if args.key?(:max_pending_latency) @min_idle_instances = args[:min_idle_instances] if args.key?(:min_idle_instances) @min_total_instances = args[:min_total_instances] if args.key?(:min_total_instances) @min_pending_latency = args[:min_pending_latency] if args.key?(:min_pending_latency) @request_utilization = args[:request_utilization] if args.key?(:request_utilization) @disk_utilization = args[:disk_utilization] if args.key?(:disk_utilization) @network_utilization = args[:network_utilization] if args.key?(:network_utilization) end |