AutomaticScaling class

Automatic scaling is based on request rate, response latencies, and other application metrics.

Constructors

AutomaticScaling({Input<String>? coolDownPeriod, Input<CpuUtilization>? cpuUtilization, Input<DiskUtilization>? diskUtilization, Input<int>? maxConcurrentRequests, Input<int>? maxIdleInstances, Input<String>? maxPendingLatency, Input<int>? maxTotalInstances, Input<int>? minIdleInstances, Input<String>? minPendingLatency, Input<int>? minTotalInstances, Input<NetworkUtilization>? networkUtilization, Input<RequestUtilization>? requestUtilization, Input<StandardSchedulerSettings>? standardSchedulerSettings})
Creates a new AutomaticScaling. coolDownPeriod 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. cpuUtilization Target scaling by CPU usage. diskUtilization Target scaling by disk usage. maxConcurrentRequests Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.Defaults to a runtime-specific value. maxIdleInstances Maximum number of idle instances that should be maintained for this version. maxPendingLatency Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it. maxTotalInstances Maximum number of instances that should be started to handle requests for this version. minIdleInstances Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service. minPendingLatency Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it. minTotalInstances Minimum number of running instances that should be maintained for this version. networkUtilization Target scaling by network usage. requestUtilization Target scaling by request utilization. standardSchedulerSettings Scheduler settings for standard environment.
const
AutomaticScaling.fromMap(Map<String, dynamic> map)
factory

Properties

coolDownPeriod → Input<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.
final
cpuUtilization → Input<CpuUtilization>?
Target scaling by CPU usage.
final
diskUtilization → Input<DiskUtilization>?
Target scaling by disk usage.
final
hashCode → int
The hash code for this object.
no setterinherited
maxConcurrentRequests → Input<int>?
Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.Defaults to a runtime-specific value.
final
maxIdleInstances → Input<int>?
Maximum number of idle instances that should be maintained for this version.
final
maxPendingLatency → Input<String>?
Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
final
maxTotalInstances → Input<int>?
Maximum number of instances that should be started to handle requests for this version.
final
minIdleInstances → Input<int>?
Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
final
minPendingLatency → Input<String>?
Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
final
minTotalInstances → Input<int>?
Minimum number of running instances that should be maintained for this version.
final
networkUtilization → Input<NetworkUtilization>?
Target scaling by network usage.
final
requestUtilization → Input<RequestUtilization>?
Target scaling by request utilization.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
standardSchedulerSettings → Input<StandardSchedulerSettings>?
Scheduler settings for standard environment.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited