Cloud Spanner V1 Client - Class AutoscalingLimits (1.66.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
NameDescription
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
TypeDescription
int

hasMinNodes

setMinNodes

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMinProcessingUnits

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

Returns
TypeDescription
int

hasMinProcessingUnits

setMinProcessingUnits

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMaxNodes

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

Returns
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$this

getMinLimit

Returns
TypeDescription
string

getMaxLimit

Returns
TypeDescription
string