Reference documentation and code samples for the Compute V1 Client class AutoscalingPolicyScaleInControl.
Configuration that allows for slower scale in so that even if Autoscaler recommends an abrupt scale in of a MIG, it will be throttled as specified by the parameters below.
Generated from protobuf message google.cloud.compute.v1.AutoscalingPolicyScaleInControl
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ max_scaled_in_replicas |
Google\Cloud\Compute\V1\FixedOrPercent
Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step. |
↳ time_window_sec |
int
How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above. |
getMaxScaledInReplicas
Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.
Generated from protobuf field optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;
Returns | |
---|---|
Type | Description |
Google\Cloud\Compute\V1\FixedOrPercent|null |
hasMaxScaledInReplicas
clearMaxScaledInReplicas
setMaxScaledInReplicas
Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.
Generated from protobuf field optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Compute\V1\FixedOrPercent
|
Returns | |
---|---|
Type | Description |
$this |
getTimeWindowSec
How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above.
Generated from protobuf field optional int32 time_window_sec = 36405300;
Returns | |
---|---|
Type | Description |
int |
hasTimeWindowSec
clearTimeWindowSec
setTimeWindowSec
How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above.
Generated from protobuf field optional int32 time_window_sec = 36405300;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |