Cloud Spanner V1 Client - Class AutoscalingLimits (1.79.0)

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

The autoscaling limits for the instance. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit.

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

Namespace

Google \ Cloud \ Spanner \ Admin \ Instance \ V1 \ AutoscalingConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ min_nodes int

Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.

↳ min_processing_units int

Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.

↳ max_nodes int

Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.

↳ max_processing_units int

Maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.

getMinNodes

Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.

Returns
Type Description
int

hasMinNodes

setMinNodes

Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1.

Parameter
Name Description
var int
Returns
Type Description
$this

getMinProcessingUnits

Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.

Returns
Type Description
int

hasMinProcessingUnits

setMinProcessingUnits

Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.

Parameter
Name Description
var int
Returns
Type Description
$this

getMaxNodes

Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.

Returns
Type Description
int

hasMaxNodes

setMaxNodes

Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to min_nodes.

Parameter
Name Description
var int
Returns
Type Description
$this

getMaxProcessingUnits

Maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.

Returns
Type Description
int

hasMaxProcessingUnits

setMaxProcessingUnits

Maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.

Parameter
Name Description
var int
Returns
Type Description
$this

getMinLimit

Returns
Type Description
string

getMaxLimit

Returns
Type Description
string