Class: Google::Cloud::Run::V2::ServiceScaling
- Inherits:
-
Object
- Object
- Google::Cloud::Run::V2::ServiceScaling
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/run/v2/vendor_settings.rb
Overview
Scaling settings applied at the service level rather than at the revision level.
Defined Under Namespace
Modules: ScalingMode
Instance Attribute Summary collapse
-
#min_instance_count ⇒ ::Integer
Optional.
-
#scaling_mode ⇒ ::Google::Cloud::Run::V2::ServiceScaling::ScalingMode
Optional.
Instance Attribute Details
#min_instance_count ⇒ ::Integer
Returns Optional. total min instances for the service. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving.
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'proto_docs/google/cloud/run/v2/vendor_settings.rb', line 139 class ServiceScaling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The scaling mode for the service. If not provided, it defaults to # AUTOMATIC. module ScalingMode # Unspecified. SCALING_MODE_UNSPECIFIED = 0 # Scale based on traffic between min and max instances. AUTOMATIC = 1 # Scale to exactly min instances and ignore max instances. MANUAL = 2 end end |
#scaling_mode ⇒ ::Google::Cloud::Run::V2::ServiceScaling::ScalingMode
Returns Optional. The scaling mode for the service.
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'proto_docs/google/cloud/run/v2/vendor_settings.rb', line 139 class ServiceScaling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The scaling mode for the service. If not provided, it defaults to # AUTOMATIC. module ScalingMode # Unspecified. SCALING_MODE_UNSPECIFIED = 0 # Scale based on traffic between min and max instances. AUTOMATIC = 1 # Scale to exactly min instances and ignore max instances. MANUAL = 2 end end |