@@ -542,11 +542,24 @@ class AutoscalingTargets(proto.Message):
542542
543543 Attributes:
544544 high_priority_cpu_utilization_percent (int):
545- Required . The target high priority cpu utilization
545+ Optional . The target high priority cpu utilization
546546 percentage that the autoscaler should be trying to achieve
547547 for the instance. This number is on a scale from 0 (no
548548 utilization) to 100 (full utilization). The valid range is
549- [10, 90] inclusive.
549+ [10, 90] inclusive. If not specified or set to 0, the
550+ autoscaler skips scaling based on high priority CPU
551+ utilization.
552+ total_cpu_utilization_percent (int):
553+ Optional. The target total CPU utilization percentage that
554+ the autoscaler should be trying to achieve for the instance.
555+ This number is on a scale from 0 (no utilization) to 100
556+ (full utilization). The valid range is [10, 90] inclusive.
557+ If not specified or set to 0, the autoscaler skips scaling
558+ based on total CPU utilization. If both
559+ ``high_priority_cpu_utilization_percent`` and
560+ ``total_cpu_utilization_percent`` are specified, the
561+ autoscaler provisions the larger of the two required compute
562+ capacities to satisfy both targets.
550563 storage_utilization_percent (int):
551564 Required. The target storage utilization percentage that the
552565 autoscaler should be trying to achieve for the instance.
@@ -558,6 +571,10 @@ class AutoscalingTargets(proto.Message):
558571 proto .INT32 ,
559572 number = 1 ,
560573 )
574+ total_cpu_utilization_percent : int = proto .Field (
575+ proto .INT32 ,
576+ number = 4 ,
577+ )
561578 storage_utilization_percent : int = proto .Field (
562579 proto .INT32 ,
563580 number = 2 ,
@@ -593,6 +610,58 @@ class AutoscalingConfigOverrides(proto.Message):
593610 Optional. If specified, overrides the autoscaling target
594611 high_priority_cpu_utilization_percent in the top-level
595612 autoscaling configuration for the selected replicas.
613+ autoscaling_target_total_cpu_utilization_percent (int):
614+ Optional. If specified, overrides the autoscaling target
615+ ``total_cpu_utilization_percent`` in the top-level
616+ autoscaling configuration for the selected replicas.
617+ disable_high_priority_cpu_autoscaling (bool):
618+ Optional. If true, disables high priority CPU autoscaling
619+ for the selected replicas and ignores
620+ [high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.high_priority_cpu_utilization_percent]
621+ in the top-level autoscaling configuration.
622+
623+ When setting this field to true, setting
624+ [autoscaling_target_high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_high_priority_cpu_utilization_percent]
625+ field to a non-zero value for the same replica is not
626+ supported.
627+
628+ If false, the
629+ [autoscaling_target_high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_high_priority_cpu_utilization_percent]
630+ field in the replica will be used if set to a non-zero
631+ value. Otherwise, the
632+ [high_priority_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.high_priority_cpu_utilization_percent]
633+ field in the top-level autoscaling configuration will be
634+ used.
635+
636+ Setting both
637+ [disable_high_priority_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_high_priority_cpu_autoscaling]
638+ and
639+ [disable_total_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_total_cpu_autoscaling]
640+ to true for the same replica is not supported.
641+ disable_total_cpu_autoscaling (bool):
642+ Optional. If true, disables total CPU autoscaling for the
643+ selected replicas and ignores
644+ [total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.total_cpu_utilization_percent]
645+ in the top-level autoscaling configuration.
646+
647+ When setting this field to true, setting
648+ [autoscaling_target_total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_total_cpu_utilization_percent]
649+ field to a non-zero value for the same replica is not
650+ supported.
651+
652+ If false, the
653+ [autoscaling_target_total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.autoscaling_target_total_cpu_utilization_percent]
654+ field in the replica will be used if set to a non-zero
655+ value. Otherwise, the
656+ [total_cpu_utilization_percent][google.spanner.admin.instance.v1.AutoscalingConfig.AutoscalingTargets.total_cpu_utilization_percent]
657+ field in the top-level autoscaling configuration will be
658+ used.
659+
660+ Setting both
661+ [disable_high_priority_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_high_priority_cpu_autoscaling]
662+ and
663+ [disable_total_cpu_autoscaling][google.spanner.admin.instance.v1.AutoscalingConfig.AsymmetricAutoscalingOption.AutoscalingConfigOverrides.disable_total_cpu_autoscaling]
664+ to true for the same replica is not supported.
596665 """
597666
598667 autoscaling_limits : "AutoscalingConfig.AutoscalingLimits" = proto .Field (
@@ -604,6 +673,18 @@ class AutoscalingConfigOverrides(proto.Message):
604673 proto .INT32 ,
605674 number = 2 ,
606675 )
676+ autoscaling_target_total_cpu_utilization_percent : int = proto .Field (
677+ proto .INT32 ,
678+ number = 4 ,
679+ )
680+ disable_high_priority_cpu_autoscaling : bool = proto .Field (
681+ proto .BOOL ,
682+ number = 5 ,
683+ )
684+ disable_total_cpu_autoscaling : bool = proto .Field (
685+ proto .BOOL ,
686+ number = 6 ,
687+ )
607688
608689 replica_selection : common .ReplicaSelection = proto .Field (
609690 proto .MESSAGE ,
0 commit comments