Class: Google::Apis::AppengineV1beta::AutomaticScaling
- Inherits:
-
Object
- Object
- Google::Apis::AppengineV1beta::AutomaticScaling
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/appengine_v1beta/classes.rb,
generated/google/apis/appengine_v1beta/representations.rb,
generated/google/apis/appengine_v1beta/representations.rb
Overview
Automatic scaling is based on request rate, response latencies, and other application metrics.
Instance Attribute Summary collapse
-
#cool_down_period ⇒ String
The time period that the Autoscaler (https://cloud.google.com/compute/docs/ autoscaler/) should wait before it starts collecting information from a new instance.
-
#cpu_utilization ⇒ Google::Apis::AppengineV1beta::CpuUtilization
Target scaling by CPU usage.
-
#custom_metrics ⇒ Array<Google::Apis::AppengineV1beta::CustomMetric>
Target scaling by user-provided metrics.
-
#disk_utilization ⇒ Google::Apis::AppengineV1beta::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.Defaults to a runtime-specific value.
-
#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 for this version.
-
#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 running instances that should be maintained for this version.
-
#network_utilization ⇒ Google::Apis::AppengineV1beta::NetworkUtilization
Target scaling by network usage.
-
#request_utilization ⇒ Google::Apis::AppengineV1beta::RequestUtilization
Target scaling by request utilization.
-
#standard_scheduler_settings ⇒ Google::Apis::AppengineV1beta::StandardSchedulerSettings
Scheduler settings for standard environment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutomaticScaling
constructor
A new instance of AutomaticScaling.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AutomaticScaling
Returns a new instance of AutomaticScaling.
403 404 405 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 403 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cool_down_period ⇒ String
The time period that the Autoscaler (https://cloud.google.com/compute/docs/
autoscaler/) should wait before it starts collecting information from a new
instance. This prevents the autoscaler from collecting information when the
instance is initializing, during which the collected usage would not be
reliable. Only applicable in the App Engine flexible environment.
Corresponds to the JSON property coolDownPeriod
327 328 329 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 327 def cool_down_period @cool_down_period end |
#cpu_utilization ⇒ Google::Apis::AppengineV1beta::CpuUtilization
Target scaling by CPU usage.
Corresponds to the JSON property cpuUtilization
332 333 334 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 332 def cpu_utilization @cpu_utilization end |
#custom_metrics ⇒ Array<Google::Apis::AppengineV1beta::CustomMetric>
Target scaling by user-provided metrics. Only applicable in the App Engine
flexible environment.
Corresponds to the JSON property customMetrics
338 339 340 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 338 def custom_metrics @custom_metrics end |
#disk_utilization ⇒ Google::Apis::AppengineV1beta::DiskUtilization
Target scaling by disk usage. Only applicable in the App Engine flexible
environment.
Corresponds to the JSON property diskUtilization
344 345 346 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 344 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
350 351 352 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 350 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
355 356 357 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 355 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
361 362 363 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 361 def max_pending_latency @max_pending_latency end |
#max_total_instances ⇒ Fixnum
Maximum number of instances that should be started to handle requests for this
version.
Corresponds to the JSON property maxTotalInstances
367 368 369 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 367 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 service.
Corresponds to the JSON property minIdleInstances
373 374 375 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 373 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
379 380 381 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 379 def min_pending_latency @min_pending_latency end |
#min_total_instances ⇒ Fixnum
Minimum number of running instances that should be maintained for this version.
Corresponds to the JSON property minTotalInstances
384 385 386 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 384 def min_total_instances @min_total_instances end |
#network_utilization ⇒ Google::Apis::AppengineV1beta::NetworkUtilization
Target scaling by network usage. Only applicable in the App Engine flexible
environment.
Corresponds to the JSON property networkUtilization
390 391 392 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 390 def network_utilization @network_utilization end |
#request_utilization ⇒ Google::Apis::AppengineV1beta::RequestUtilization
Target scaling by request utilization. Only applicable in the App Engine
flexible environment.
Corresponds to the JSON property requestUtilization
396 397 398 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 396 def request_utilization @request_utilization end |
#standard_scheduler_settings ⇒ Google::Apis::AppengineV1beta::StandardSchedulerSettings
Scheduler settings for standard environment.
Corresponds to the JSON property standardSchedulerSettings
401 402 403 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 401 def standard_scheduler_settings @standard_scheduler_settings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 |
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 408 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) @custom_metrics = args[:custom_metrics] if args.key?(:custom_metrics) @disk_utilization = args[:disk_utilization] if args.key?(:disk_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_pending_latency = args[:max_pending_latency] if args.key?(:max_pending_latency) @max_total_instances = args[:max_total_instances] if args.key?(:max_total_instances) @min_idle_instances = args[:min_idle_instances] if args.key?(:min_idle_instances) @min_pending_latency = args[:min_pending_latency] if args.key?(:min_pending_latency) @min_total_instances = args[:min_total_instances] if args.key?(:min_total_instances) @network_utilization = args[:network_utilization] if args.key?(:network_utilization) @request_utilization = args[:request_utilization] if args.key?(:request_utilization) @standard_scheduler_settings = args[:standard_scheduler_settings] if args.key?(:standard_scheduler_settings) end |