Cloud Spanner V1 Client - Class AutoscalingConfigOverrides (2.3.0)

Reference documentation and code samples for the Cloud Spanner V1 Client class AutoscalingConfigOverrides.

Overrides the top-level autoscaling configuration for the replicas identified by replica_selection. All fields in this message are optional. Any unspecified fields will use the corresponding values from the top-level autoscaling configuration.

Generated from protobuf message google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides

Namespace

Google \ Cloud \ Spanner \ Admin \ Instance \ V1 \ AutoscalingConfig \ AsymmetricAutoscalingOption

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ autoscaling_limits Google\Cloud\Spanner\Admin\Instance\V1\AutoscalingConfig\AutoscalingLimits

Optional. If specified, overrides the min/max limit in the top-level autoscaling configuration for the selected replicas.

↳ autoscaling_target_high_priority_cpu_utilization_percent int

Optional. If specified, overrides the autoscaling target high_priority_cpu_utilization_percent in the top-level autoscaling configuration for the selected replicas.

↳ autoscaling_target_total_cpu_utilization_percent int

Optional. If specified, overrides the autoscaling target total_cpu_utilization_percent in the top-level autoscaling configuration for the selected replicas.

↳ disable_high_priority_cpu_autoscaling bool

Optional. If true, disables high priority CPU autoscaling for the selected replicas and ignores high_priority_cpu_utilization_percent in the top-level autoscaling configuration. When setting this field to true, setting autoscaling_target_high_priority_cpu_utilization_percent field to a non-zero value for the same replica is not supported. If false, the autoscaling_target_high_priority_cpu_utilization_percent field in the replica will be used if set to a non-zero value. Otherwise, the high_priority_cpu_utilization_percent field in the top-level autoscaling configuration will be used. Setting both disable_high_priority_cpu_autoscaling and disable_total_cpu_autoscaling to true for the same replica is not supported.

↳ disable_total_cpu_autoscaling bool

Optional. If true, disables total CPU autoscaling for the selected replicas and ignores total_cpu_utilization_percent in the top-level autoscaling configuration. When setting this field to true, setting autoscaling_target_total_cpu_utilization_percent field to a non-zero value for the same replica is not supported. If false, the autoscaling_target_total_cpu_utilization_percent field in the replica will be used if set to a non-zero value. Otherwise, the total_cpu_utilization_percent field in the top-level autoscaling configuration will be used. Setting both disable_high_priority_cpu_autoscaling and disable_total_cpu_autoscaling to true for the same replica is not supported.

getAutoscalingLimits

Optional. If specified, overrides the min/max limit in the top-level autoscaling configuration for the selected replicas.

Returns
Type Description
Google\Cloud\Spanner\Admin\Instance\V1\AutoscalingConfig\AutoscalingLimits|null

hasAutoscalingLimits

clearAutoscalingLimits

setAutoscalingLimits

Optional. If specified, overrides the min/max limit in the top-level autoscaling configuration for the selected replicas.

Parameter
Name Description
var Google\Cloud\Spanner\Admin\Instance\V1\AutoscalingConfig\AutoscalingLimits
Returns
Type Description
$this

getAutoscalingTargetHighPriorityCpuUtilizationPercent

Optional. If specified, overrides the autoscaling target high_priority_cpu_utilization_percent in the top-level autoscaling configuration for the selected replicas.

Returns
Type Description
int

setAutoscalingTargetHighPriorityCpuUtilizationPercent

Optional. If specified, overrides the autoscaling target high_priority_cpu_utilization_percent in the top-level autoscaling configuration for the selected replicas.

Parameter
Name Description
var int
Returns
Type Description
$this

getAutoscalingTargetTotalCpuUtilizationPercent

Optional. If specified, overrides the autoscaling target total_cpu_utilization_percent in the top-level autoscaling configuration for the selected replicas.

Returns
Type Description
int

setAutoscalingTargetTotalCpuUtilizationPercent

Optional. If specified, overrides the autoscaling target total_cpu_utilization_percent in the top-level autoscaling configuration for the selected replicas.

Parameter
Name Description
var int
Returns
Type Description
$this

getDisableHighPriorityCpuAutoscaling

Optional. If true, disables high priority CPU autoscaling for the selected replicas and ignores high_priority_cpu_utilization_percent in the top-level autoscaling configuration.

When setting this field to true, setting autoscaling_target_high_priority_cpu_utilization_percent field to a non-zero value for the same replica is not supported. If false, the autoscaling_target_high_priority_cpu_utilization_percent field in the replica will be used if set to a non-zero value. Otherwise, the high_priority_cpu_utilization_percent field in the top-level autoscaling configuration will be used. Setting both disable_high_priority_cpu_autoscaling and disable_total_cpu_autoscaling to true for the same replica is not supported.

Returns
Type Description
bool

setDisableHighPriorityCpuAutoscaling

Optional. If true, disables high priority CPU autoscaling for the selected replicas and ignores high_priority_cpu_utilization_percent in the top-level autoscaling configuration.

When setting this field to true, setting autoscaling_target_high_priority_cpu_utilization_percent field to a non-zero value for the same replica is not supported. If false, the autoscaling_target_high_priority_cpu_utilization_percent field in the replica will be used if set to a non-zero value. Otherwise, the high_priority_cpu_utilization_percent field in the top-level autoscaling configuration will be used. Setting both disable_high_priority_cpu_autoscaling and disable_total_cpu_autoscaling to true for the same replica is not supported.

Parameter
Name Description
var bool
Returns
Type Description
$this

getDisableTotalCpuAutoscaling

Optional. If true, disables total CPU autoscaling for the selected replicas and ignores total_cpu_utilization_percent in the top-level autoscaling configuration.

When setting this field to true, setting autoscaling_target_total_cpu_utilization_percent field to a non-zero value for the same replica is not supported. If false, the autoscaling_target_total_cpu_utilization_percent field in the replica will be used if set to a non-zero value. Otherwise, the total_cpu_utilization_percent field in the top-level autoscaling configuration will be used. Setting both disable_high_priority_cpu_autoscaling and disable_total_cpu_autoscaling to true for the same replica is not supported.

Returns
Type Description
bool

setDisableTotalCpuAutoscaling

Optional. If true, disables total CPU autoscaling for the selected replicas and ignores total_cpu_utilization_percent in the top-level autoscaling configuration.

When setting this field to true, setting autoscaling_target_total_cpu_utilization_percent field to a non-zero value for the same replica is not supported. If false, the autoscaling_target_total_cpu_utilization_percent field in the replica will be used if set to a non-zero value. Otherwise, the total_cpu_utilization_percent field in the top-level autoscaling configuration will be used. Setting both disable_high_priority_cpu_autoscaling and disable_total_cpu_autoscaling to true for the same replica is not supported.

Parameter
Name Description
var bool
Returns
Type Description
$this