Google Cloud Sql Admin V1 Client - Class ReadPoolAutoScaleConfig (1.6.0)

Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class ReadPoolAutoScaleConfig.

The read pool auto-scale configuration.

Generated from protobuf messagegoogle.cloud.sql.v1.ReadPoolAutoScaleConfig

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ enabledbool

Indicates whether read pool auto scaling is enabled.

↳ min_node_countint

Minimum number of read pool nodes to be maintained.

↳ max_node_countint

Maximum number of read pool nodes to be maintained.

↳ target_metricsarray<ReadPoolAutoScaleConfig\TargetMetric>

Optional. Target metrics for read pool auto scaling.

↳ disable_scale_inbool

Indicates whether read pool auto scaling supports scale in operations (removing nodes).

↳ scale_in_cooldown_secondsint

The cooldown period for scale-in operations.

↳ scale_out_cooldown_secondsint

The cooldown period for scale-out operations.

getEnabled

Indicates whether read pool auto scaling is enabled.

Returns
TypeDescription
bool

hasEnabled

clearEnabled

setEnabled

Indicates whether read pool auto scaling is enabled.

Parameter
NameDescription
varbool
Returns
TypeDescription
$this

getMinNodeCount

Minimum number of read pool nodes to be maintained.

Returns
TypeDescription
int

hasMinNodeCount

clearMinNodeCount

setMinNodeCount

Minimum number of read pool nodes to be maintained.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getMaxNodeCount

Maximum number of read pool nodes to be maintained.

Returns
TypeDescription
int

hasMaxNodeCount

clearMaxNodeCount

setMaxNodeCount

Maximum number of read pool nodes to be maintained.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getTargetMetrics

Optional. Target metrics for read pool auto scaling.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setTargetMetrics

Optional. Target metrics for read pool auto scaling.

Parameter
NameDescription
vararray<ReadPoolAutoScaleConfig\TargetMetric>
Returns
TypeDescription
$this

getDisableScaleIn

Indicates whether read pool auto scaling supports scale in operations(removing nodes).

Returns
TypeDescription
bool

hasDisableScaleIn

clearDisableScaleIn

setDisableScaleIn

Indicates whether read pool auto scaling supports scale in operations(removing nodes).

Parameter
NameDescription
varbool
Returns
TypeDescription
$this

getScaleInCooldownSeconds

The cooldown period for scale-in operations.

Returns
TypeDescription
int

hasScaleInCooldownSeconds

clearScaleInCooldownSeconds

setScaleInCooldownSeconds

The cooldown period for scale-in operations.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getScaleOutCooldownSeconds

The cooldown period for scale-out operations.

Returns
TypeDescription
int

hasScaleOutCooldownSeconds

clearScaleOutCooldownSeconds

setScaleOutCooldownSeconds

The cooldown period for scale-out operations.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-09 UTC.