Reference documentation and code samples for the Google Cloud Vmware Engine V1 Client class AutoscalingPolicy.
Autoscaling policy describes the behavior of the autoscaling with respect to the resource utilization.
The scale-out operation is initiated if the utilization exceeds ANY of the respective thresholds. The scale-in operation is initiated if the utilization is below ALL of the respective thresholds.
Generated from protobuf message google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy
Namespace
Google \ Cloud \ VmwareEngine \ V1 \ AutoscalingSettingsMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ node_type_id |
string
Required. The canonical identifier of the node type to add or remove. Corresponds to the |
↳ scale_out_size |
int
Required. Number of nodes to add to a cluster during a scale-out operation. Must be divisible by 2 for stretched clusters. During a scale-in operation only one node (or 2 for stretched clusters) are removed in a single iteration. |
↳ cpu_thresholds |
Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds
Optional. Utilization thresholds pertaining to CPU utilization. |
↳ granted_memory_thresholds |
Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds
Optional. Utilization thresholds pertaining to amount of granted memory. |
↳ consumed_memory_thresholds |
Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds
Optional. Utilization thresholds pertaining to amount of consumed memory. |
↳ storage_thresholds |
Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds
Optional. Utilization thresholds pertaining to amount of consumed storage. |
getNodeTypeId
Required. The canonical identifier of the node type to add or remove.
Corresponds to the NodeType
.
Returns | |
---|---|
Type | Description |
string |
setNodeTypeId
Required. The canonical identifier of the node type to add or remove.
Corresponds to the NodeType
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getScaleOutSize
Required. Number of nodes to add to a cluster during a scale-out operation. Must be divisible by 2 for stretched clusters. During a scale-in operation only one node (or 2 for stretched clusters) are removed in a single iteration.
Returns | |
---|---|
Type | Description |
int |
setScaleOutSize
Required. Number of nodes to add to a cluster during a scale-out operation. Must be divisible by 2 for stretched clusters. During a scale-in operation only one node (or 2 for stretched clusters) are removed in a single iteration.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getCpuThresholds
Optional. Utilization thresholds pertaining to CPU utilization.
Returns | |
---|---|
Type | Description |
Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds|null |
hasCpuThresholds
clearCpuThresholds
setCpuThresholds
Optional. Utilization thresholds pertaining to CPU utilization.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds
|
Returns | |
---|---|
Type | Description |
$this |
getGrantedMemoryThresholds
Optional. Utilization thresholds pertaining to amount of granted memory.
Returns | |
---|---|
Type | Description |
Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds|null |
hasGrantedMemoryThresholds
clearGrantedMemoryThresholds
setGrantedMemoryThresholds
Optional. Utilization thresholds pertaining to amount of granted memory.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds
|
Returns | |
---|---|
Type | Description |
$this |
getConsumedMemoryThresholds
Optional. Utilization thresholds pertaining to amount of consumed memory.
Returns | |
---|---|
Type | Description |
Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds|null |
hasConsumedMemoryThresholds
clearConsumedMemoryThresholds
setConsumedMemoryThresholds
Optional. Utilization thresholds pertaining to amount of consumed memory.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds
|
Returns | |
---|---|
Type | Description |
$this |
getStorageThresholds
Optional. Utilization thresholds pertaining to amount of consumed storage.
Returns | |
---|---|
Type | Description |
Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds|null |
hasStorageThresholds
clearStorageThresholds
setStorageThresholds
Optional. Utilization thresholds pertaining to amount of consumed storage.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds
|
Returns | |
---|---|
Type | Description |
$this |