Sitelet https://github.com/googleapis/nodejs-spanner/pull/2490/files
Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -933,12 +933,25 @@ message AutoscalingConfig {

// The autoscaling targets for an instance.
message AutoscalingTargets {
// Required. The target high priority cpu utilization percentage that the
// 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.
// range is [10, 90] inclusive. If not specified or set to 0, the autoscaler
// skips scaling based on high priority CPU utilization.
int32 high_priority_cpu_utilization_percent = 1
[(google.api.field_behavior) = REQUIRED];
[(google.api.field_behavior) = OPTIONAL];

// 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
// `high_priority_cpu_utilization_percent` and
// `total_cpu_utilization_percent` are specified, the autoscaler provisions
// the larger of the two required compute capacities to satisfy both
// targets.
int32 total_cpu_utilization_percent = 4
[(google.api.field_behavior) = OPTIONAL];

// Required. The target storage utilization percentage that the autoscaler
// should be trying to achieve for the instance. This number is on a scale
Expand Down Expand Up @@ -966,6 +979,60 @@ message AutoscalingConfig {
// configuration for the selected replicas.
int32 autoscaling_target_high_priority_cpu_utilization_percent = 2
[(google.api.field_behavior) = OPTIONAL];

// Optional. If specified, overrides the
// autoscaling target `total_cpu_utilization_percent`
// in the top-level autoscaling configuration for the selected replicas.
int32 autoscaling_target_total_cpu_utilization_percent = 4
[(google.api.field_behavior) = OPTIONAL];

// Optional. If true, disables high priority CPU autoscaling for the
// selected replicas and ignores
// [high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.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][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.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][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.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][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.high_priority_cpu_utilization_percent]
// field in the top-level autoscaling configuration will be used.
//
// Setting both
// [disable_high_priority_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_high_priority_cpu_autoscaling]
// and
// [disable_total_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_total_cpu_autoscaling]
// to true for the same replica is not supported.
bool disable_high_priority_cpu_autoscaling = 5
[(google.api.field_behavior) = OPTIONAL];

// Optional. If true, disables total CPU autoscaling for the selected
// replicas and ignores
// [total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.total_cpu_utilization_percent]
// in the top-level autoscaling configuration.
//
// When setting this field to true, setting
// [autoscaling_target_total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.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][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.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][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.total_cpu_utilization_percent]
// field in the top-level autoscaling configuration will be used.
//
// Setting both
// [disable_high_priority_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_high_priority_cpu_autoscaling]
// and
// [disable_total_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_total_cpu_autoscaling]
// to true for the same replica is not supported.
bool disable_total_cpu_autoscaling = 6
[(google.api.field_behavior) = OPTIONAL];
}

// Required. Selects the replicas to which this AsymmetricAutoscalingOption
Expand Down
24 changes: 24 additions & 0 deletions protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading