Cloud Spanner V1 Client - Class AutoscalingConfig (1.90.0)

Reference documentation and code samples for the Cloud Spanner V1 Client class AutoscalingConfig.

Autoscaling configuration for an instance.

Generated from protobuf message google.spanner.admin.instance.v1.AutoscalingConfig

Namespace

Google \ Cloud \ Spanner \ Admin \ Instance \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ autoscaling_limits AutoscalingConfig\AutoscalingLimits

Required. Autoscaling limits for an instance.

↳ autoscaling_targets AutoscalingConfig\AutoscalingTargets

Required. The autoscaling targets for an instance.

↳ asymmetric_autoscaling_options array<AutoscalingConfig\AsymmetricAutoscalingOption>

Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other. Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.

getAutoscalingLimits

Required. Autoscaling limits for an instance.

Returns
Type Description
AutoscalingConfig\AutoscalingLimits|null

hasAutoscalingLimits

clearAutoscalingLimits

setAutoscalingLimits

Required. Autoscaling limits for an instance.

Parameter
Name Description
var AutoscalingConfig\AutoscalingLimits
Returns
Type Description
$this

getAutoscalingTargets

Required. The autoscaling targets for an instance.

Returns
Type Description
AutoscalingConfig\AutoscalingTargets|null

hasAutoscalingTargets

clearAutoscalingTargets

setAutoscalingTargets

Required. The autoscaling targets for an instance.

Parameter
Name Description
var AutoscalingConfig\AutoscalingTargets
Returns
Type Description
$this

getAsymmetricAutoscalingOptions

Optional. Optional asymmetric autoscaling options.

Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other. Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setAsymmetricAutoscalingOptions

Optional. Optional asymmetric autoscaling options.

Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other. Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them.

Parameter
Name Description
var array<AutoscalingConfig\AsymmetricAutoscalingOption>
Returns
Type Description
$this