- JSON representation
- AutoscalingLimits
- AutoscalingTargets
- AsymmetricAutoscalingOption
- AutoscalingConfigOverrides
Autoscaling configuration for an instance.
| JSON representation |
|---|
{ "autoscalingLimits": { object ( |
| Fields | |
|---|---|
autoscalingLimits |
Required. Autoscaling limits for an instance. |
autoscalingTargets |
Required. The autoscaling targets for an instance. |
asymmetricAutoscalingOptions[] |
Optional. Optional asymmetric autoscaling options. Replicas matching the replica selection criteria will be autoscaled independently from other replicas. The autoscaler will scale the replicas based on the utilization of replicas identified by the replica selection. Replica selections should not overlap with each other. Other replicas (those do not match any replica selection) will be autoscaled together and will have the same compute capacity allocated to them. |
AutoscalingLimits
The autoscaling limits for the instance. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and maxLimit.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field min_limit. The minimum compute capacity for the instance. min_limit can be only one of the following: |
|
minNodes |
Minimum number of nodes allocated to the instance. If set, this number should be greater than or equal to 1. |
minProcessingUnits |
Minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000. |
Union field max_limit. The maximum compute capacity for the instance. The maximum compute capacity should be less than or equal to 10X the minimum compute capacity. max_limit can be only one of the following: |
|
maxNodes |
Maximum number of nodes allocated to the instance. If set, this number should be greater than or equal to minNodes. |
maxProcessingUnits |
Maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to minProcessingUnits. |
AutoscalingTargets
The autoscaling targets for an instance.
| JSON representation |
|---|
{ "highPriorityCpuUtilizationPercent": integer, "totalCpuUtilizationPercent": integer, "storageUtilizationPercent": integer } |
| Fields | |
|---|---|
highPriorityCpuUtilizationPercent |
Optional. The target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the autoscaler skips scaling based on high priority CPU utilization. |
totalCpuUtilizationPercent |
Optional. The target total CPU utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the autoscaler skips scaling based on total CPU utilization. If both |
storageUtilizationPercent |
Required. The target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 99] inclusive. |
AsymmetricAutoscalingOption
AsymmetricAutoscalingOption specifies the scaling of replicas identified by the given selection.
| JSON representation |
|---|
{ "replicaSelection": { object ( |
| Fields | |
|---|---|
replicaSelection |
Required. Selects the replicas to which this AsymmetricAutoscalingOption applies. Only read-only replicas are supported. |
overrides |
Optional. Overrides applied to the top-level autoscaling configuration for the selected replicas. |
AutoscalingConfigOverrides
Overrides the top-level autoscaling configuration for the replicas identified by replicaSelection. All fields in this message are optional. Any unspecified fields will use the corresponding values from the top-level autoscaling configuration.
| JSON representation |
|---|
{
"autoscalingLimits": {
object ( |
| Fields | |
|---|---|
autoscalingLimits |
Optional. If specified, overrides the min/max limit in the top-level autoscaling configuration for the selected replicas. |
autoscalingTargetHighPriorityCpuUtilizationPercent |
Optional. If specified, overrides the autoscaling target highPriorityCpuUtilizationPercent in the top-level autoscaling configuration for the selected replicas. |
autoscalingTargetTotalCpuUtilizationPercent |
Optional. If specified, overrides the autoscaling target |
disableHighPriorityCpuAutoscaling |
Optional. If true, disables high priority CPU autoscaling for the selected replicas and ignores When setting this field to true, setting If false, the Setting both |
disableTotalCpuAutoscaling |
Optional. If true, disables total CPU autoscaling for the selected replicas and ignores When setting this field to true, setting If false, the Setting both |