Class AutomaticScaling.Builder (2.6.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class AutomaticScaling.Builder extends GeneratedMessageV3.Builder<AutomaticScaling.Builder> implements AutomaticScalingOrBuilder

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

Protobuf type google.appengine.v1.AutomaticScaling

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutomaticScaling.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AutomaticScaling.Builder
Overrides

build()

public AutomaticScaling build()
Returns
TypeDescription
AutomaticScaling

buildPartial()

public AutomaticScaling buildPartial()
Returns
TypeDescription
AutomaticScaling

clear()

public AutomaticScaling.Builder clear()
Returns
TypeDescription
AutomaticScaling.Builder
Overrides

clearCoolDownPeriod()

public AutomaticScaling.Builder clearCoolDownPeriod()

The time period that the 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.

.google.protobuf.Duration cool_down_period = 1;

Returns
TypeDescription
AutomaticScaling.Builder

clearCpuUtilization()

public AutomaticScaling.Builder clearCpuUtilization()

Target scaling by CPU usage.

.google.appengine.v1.CpuUtilization cpu_utilization = 2;

Returns
TypeDescription
AutomaticScaling.Builder

clearDiskUtilization()

public AutomaticScaling.Builder clearDiskUtilization()

Target scaling by disk usage.

.google.appengine.v1.DiskUtilization disk_utilization = 11;

Returns
TypeDescription
AutomaticScaling.Builder

clearField(Descriptors.FieldDescriptor field)

public AutomaticScaling.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AutomaticScaling.Builder
Overrides

clearMaxConcurrentRequests()

public AutomaticScaling.Builder clearMaxConcurrentRequests()

Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance. Defaults to a runtime-specific value.

int32 max_concurrent_requests = 3;

Returns
TypeDescription
AutomaticScaling.Builder

This builder for chaining.

clearMaxIdleInstances()

public AutomaticScaling.Builder clearMaxIdleInstances()

Maximum number of idle instances that should be maintained for this version.

int32 max_idle_instances = 4;

Returns
TypeDescription
AutomaticScaling.Builder

This builder for chaining.

clearMaxPendingLatency()

public AutomaticScaling.Builder clearMaxPendingLatency()

Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.

.google.protobuf.Duration max_pending_latency = 6;

Returns
TypeDescription
AutomaticScaling.Builder

clearMaxTotalInstances()

public AutomaticScaling.Builder clearMaxTotalInstances()

Maximum number of instances that should be started to handle requests for this version.

int32 max_total_instances = 5;

Returns
TypeDescription
AutomaticScaling.Builder

This builder for chaining.

clearMinIdleInstances()

public AutomaticScaling.Builder clearMinIdleInstances()

Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.

int32 min_idle_instances = 7;

Returns
TypeDescription
AutomaticScaling.Builder

This builder for chaining.

clearMinPendingLatency()

public AutomaticScaling.Builder clearMinPendingLatency()

Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.

.google.protobuf.Duration min_pending_latency = 9;

Returns
TypeDescription
AutomaticScaling.Builder

clearMinTotalInstances()

public AutomaticScaling.Builder clearMinTotalInstances()

Minimum number of running instances that should be maintained for this version.

int32 min_total_instances = 8;

Returns
TypeDescription
AutomaticScaling.Builder

This builder for chaining.

clearNetworkUtilization()

public AutomaticScaling.Builder clearNetworkUtilization()

Target scaling by network usage.

.goo