Google Cloud Sql Admin V1 Client - Class ReadPoolAutoScaleConfig (1.6.0) Stay organized with collections Save and categorize content based on your preferences.
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 \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data | arrayOptional. Data for populating the Message object. |
↳ enabled | boolIndicates whether read pool auto scaling is enabled. |
↳ min_node_count | intMinimum number of read pool nodes to be maintained. |
↳ max_node_count | intMaximum number of read pool nodes to be maintained. |
↳ target_metrics | array<ReadPoolAutoScaleConfig\TargetMetric>Optional. Target metrics for read pool auto scaling. |
↳ disable_scale_in | boolIndicates whether read pool auto scaling supports scale in operations (removing nodes). |
↳ scale_in_cooldown_seconds | intThe cooldown period for scale-in operations. |
↳ scale_out_cooldown_seconds | intThe cooldown period for scale-out operations. |
getEnabled
Indicates whether read pool auto scaling is enabled.
| Returns | |
|---|---|
| Type | Description |
bool | |
hasEnabled
clearEnabled
setEnabled
Indicates whether read pool auto scaling is enabled.
| Parameter | |
|---|---|
| Name | Description |
var | bool |
| Returns | |
|---|---|
| Type | Description |
$this | |
getMinNodeCount
Minimum number of read pool nodes to be maintained.
| Returns | |
|---|---|
| Type | Description |
int | |
hasMinNodeCount
clearMinNodeCount
setMinNodeCount
Minimum number of read pool nodes to be maintained.
| Parameter | |
|---|---|
| Name | Description |
var | int |
| Returns | |
|---|---|
| Type | Description |
$this | |
getMaxNodeCount
Maximum number of read pool nodes to be maintained.
| Returns | |
|---|---|
| Type | Description |
int | |
hasMaxNodeCount
clearMaxNodeCount
setMaxNodeCount
Maximum number of read pool nodes to be maintained.
| Parameter | |
|---|---|
| Name | Description |
var | int |
| Returns | |
|---|---|
| Type | Description |
$this | |
getTargetMetrics
Optional. Target metrics for read pool auto scaling.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField | |
setTargetMetrics
Optional. Target metrics for read pool auto scaling.
| Parameter | |
|---|---|
| Name | Description |
var | array<ReadPoolAutoScaleConfig\TargetMetric> |
| Returns | |
|---|---|
| Type | Description |
$this | |
getDisableScaleIn
Indicates whether read pool auto scaling supports scale in operations(removing nodes).
| Returns | |
|---|---|
| Type | Description |
bool | |
hasDisableScaleIn
clearDisableScaleIn
setDisableScaleIn
Indicates whether read pool auto scaling supports scale in operations(removing nodes).
| Parameter | |
|---|---|
| Name | Description |
var | bool |
| Returns | |
|---|---|
| Type | Description |
$this | |
getScaleInCooldownSeconds
The cooldown period for scale-in operations.
| Returns | |
|---|---|
| Type | Description |
int | |
hasScaleInCooldownSeconds
clearScaleInCooldownSeconds
setScaleInCooldownSeconds
The cooldown period for scale-in operations.
| Parameter | |
|---|---|
| Name | Description |
var | int |
| Returns | |
|---|---|
| Type | Description |
$this | |
getScaleOutCooldownSeconds
The cooldown period for scale-out operations.
| Returns | |
|---|---|
| Type | Description |
int | |
hasScaleOutCooldownSeconds
clearScaleOutCooldownSeconds
setScaleOutCooldownSeconds
The cooldown period for scale-out operations.
| Parameter | |
|---|---|
| Name | Description |
var | int |
| Returns | |
|---|---|
| Type | Description |
$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.