Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class ReadPoolAutoScaleConfig.
The read pool auto-scale configuration.
Generated from protobuf message google.cloud.sql.v1.ReadPoolAutoScaleConfig
Namespace
Google \ Cloud \ Sql \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ enabled |
bool
Indicates whether read pool auto scaling is enabled. |
↳ min_node_count |
int
Minimum number of read pool nodes to be maintained. |
↳ max_node_count |
int
Maximum number of read pool nodes to be maintained. |
↳ target_metrics |
array<ReadPoolAutoScaleConfig\TargetMetric>
Optional. Target metrics for read pool auto scaling. |
↳ disable_scale_in |
bool
Indicates whether read pool auto scaling supports scale in operations (removing nodes). |
↳ scale_in_cooldown_seconds |
int
The cooldown period for scale-in operations. |
↳ scale_out_cooldown_seconds |
int
The 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 |
|