Class: Google::Cloud::Compute::V1::AutoscalingPolicy
- Inherits:
-
Object
- Object
- Google::Cloud::Compute::V1::AutoscalingPolicy
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/compute/v1/compute.rb
Overview
Cloud Autoscaler policy.
Defined Under Namespace
Modules: Mode Classes: ScalingSchedulesEntry
Instance Attribute Summary collapse
-
#cool_down_period_sec ⇒ ::Integer
The number of seconds that the autoscaler waits before it starts collecting information from a new instance.
-
#cpu_utilization ⇒ ::Google::Cloud::Compute::V1::AutoscalingPolicyCpuUtilization
Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
-
#custom_metric_utilizations ⇒ ::Array<::Google::Cloud::Compute::V1::AutoscalingPolicyCustomMetricUtilization>
Configuration parameters of autoscaling based on a custom metric.
-
#load_balancing_utilization ⇒ ::Google::Cloud::Compute::V1::AutoscalingPolicyLoadBalancingUtilization
Configuration parameters of autoscaling based on load balancer.
-
#max_num_replicas ⇒ ::Integer
The maximum number of instances that the autoscaler can scale out to.
-
#min_num_replicas ⇒ ::Integer
The minimum number of replicas that the autoscaler can scale in to.
-
#mode ⇒ ::String
Defines operating mode for this policy.
- #scale_in_control ⇒ ::Google::Cloud::Compute::V1::AutoscalingPolicyScaleInControl
-
#scaling_schedules ⇒ ::Google::Protobuf::Map{::String => ::Google::Cloud::Compute::V1::AutoscalingPolicyScalingSchedule}
Scaling schedules defined for an autoscaler.
Instance Attribute Details
#cool_down_period_sec ⇒ ::Integer
Returns The number of seconds that the autoscaler waits before it starts collecting information from a new instance. This prevents the autoscaler from collecting information when the instance is initializing, during which the collected usage would not be reliable. The default time autoscaler waits is 60 seconds. Virtual machine initialization times might vary because of numerous factors. We recommend that you test how long an instance may take to initialize. To do this, create an instance and time the startup process.
2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2375 class AutoscalingPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Compute::V1::AutoscalingPolicyScalingSchedule] class ScalingSchedulesEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Defines operating mode for this policy. module Mode # A value indicating that the enum field is not set. UNDEFINED_MODE = 0 # Do not automatically scale the MIG in or out. The recommended_size field contains the size of MIG that would be set if the actuation mode was enabled. OFF = 78159 # Automatically scale the MIG in and out according to the policy. ON = 2527 # Automatically create VMs according to the policy, but do not scale the MIG in. ONLY_SCALE_OUT = 152713670 # Automatically create VMs according to the policy, but do not scale the MIG in. ONLY_UP = 478095374 end end |
#cpu_utilization ⇒ ::Google::Cloud::Compute::V1::AutoscalingPolicyCpuUtilization
Returns Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2375 class AutoscalingPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Compute::V1::AutoscalingPolicyScalingSchedule] class ScalingSchedulesEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Defines operating mode for this policy. module Mode # A value indicating that the enum field is not set. UNDEFINED_MODE = 0 # Do not automatically scale the MIG in or out. The recommended_size field contains the size of MIG that would be set if the actuation mode was enabled. OFF = 78159 # Automatically scale the MIG in and out according to the policy. ON = 2527 # Automatically create VMs according to the policy, but do not scale the MIG in. ONLY_SCALE_OUT = 152713670 # Automatically create VMs according to the policy, but do not scale the MIG in. ONLY_UP = 478095374 end end |
#custom_metric_utilizations ⇒ ::Array<::Google::Cloud::Compute::V1::AutoscalingPolicyCustomMetricUtilization>
Returns Configuration parameters of autoscaling based on a custom metric.
2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2375 class AutoscalingPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Compute::V1::AutoscalingPolicyScalingSchedule] class ScalingSchedulesEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Defines operating mode for this policy. module Mode # A value indicating that the enum field is not set. UNDEFINED_MODE = 0 # Do not automatically scale the MIG in or out. The recommended_size field contains the size of MIG that would be set if the actuation mode was enabled. OFF = 78159 # Automatically scale the MIG in and out according to the policy. ON = 2527 # Automatically create VMs according to the policy, but do not scale the MIG in. ONLY_SCALE_OUT = 152713670 # Automatically create VMs according to the policy, but do not scale the MIG in. ONLY_UP = 478095374 end end |
#load_balancing_utilization ⇒ ::Google::Cloud::Compute::V1::AutoscalingPolicyLoadBalancingUtilization
Returns Configuration parameters of autoscaling based on load balancer.
2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2375 class AutoscalingPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Compute::V1::AutoscalingPolicyScalingSchedule] class ScalingSchedulesEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Defines operating mode for this policy. module Mode # A value indicating that the enum field is not set. UNDEFINED_MODE = 0 # Do not automatically scale the MIG in or out. The recommended_size field contains the size of MIG that would be set if the actuation mode was enabled. OFF = 78159 # Automatically scale the MIG in and out according to the policy. ON = 2527 # Automatically create VMs according to the policy, but do not scale the MIG in. ONLY_SCALE_OUT = 152713670 # Automatically create VMs according to the policy, but do not scale the MIG in. ONLY_UP = 478095374 end end |
#max_num_replicas ⇒ ::Integer
Returns The maximum number of instances that the autoscaler can scale out to. This is required when creating or updating an autoscaler. The maximum number of replicas must not be lower than minimal number of replicas.
2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2375 class AutoscalingPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Compute::V1::AutoscalingPolicyScalingSchedule] class ScalingSchedulesEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Defines operating mode for this policy. module Mode # A value indicating that the enum field is not set. UNDEFINED_MODE = 0 # Do not automatically scale the MIG in or out. The recommended_size field contains the size of MIG that would be set if the actuation mode was enabled. OFF = 78159 # Automatically scale the MIG in and out according to the policy. ON = 2527 # Automatically create VMs according to the policy, but do not scale the MIG in. ONLY_SCALE_OUT = 152713670 # Automatically create VMs according to the policy, but do not scale the MIG in. ONLY_UP = 478095374 end end |
#min_num_replicas ⇒ ::Integer
Returns The minimum number of replicas that the autoscaler can scale in to. This cannot be less than 0. If not provided, autoscaler chooses a default value depending on maximum number of instances allowed.
2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2375 class AutoscalingPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Compute::V1::AutoscalingPolicyScalingSchedule] class ScalingSchedulesEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Defines operating mode for this policy. module Mode # A value indicating that the enum field is not set. UNDEFINED_MODE = 0 # Do not automatically scale the MIG in or out. The recommended_size field contains the size of MIG that would be set if the actuation mode was enabled. OFF = 78159 # Automatically scale the MIG in and out according to the policy. ON = 2527 # Automatically create VMs according to the policy, but do not scale the MIG in. ONLY_SCALE_OUT = 152713670 # Automatically create VMs according to the policy, but do not scale the MIG in. ONLY_UP = 478095374 end end |
#mode ⇒ ::String
Returns Defines operating mode for this policy. Check the Mode enum for the list of possible values.
2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2375 class AutoscalingPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Compute::V1::AutoscalingPolicyScalingSchedule] class ScalingSchedulesEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Defines operating mode for this policy. module Mode # A value indicating that the enum field is not set. UNDEFINED_MODE = 0 # Do not automatically scale the MIG in or out. The recommended_size field contains the size of MIG that would be set if the actuation mode was enabled. OFF = 78159 # Automatically scale the MIG in and out according to the policy. ON = 2527 # Automatically create VMs according to the policy, but do not scale the MIG in. ONLY_SCALE_OUT = 152713670 # Automatically create VMs according to the policy, but do not scale the MIG in. ONLY_UP = 478095374 end end |
#scale_in_control ⇒ ::Google::Cloud::Compute::V1::AutoscalingPolicyScaleInControl
2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2375 class AutoscalingPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Compute::V1::AutoscalingPolicyScalingSchedule] class ScalingSchedulesEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Defines operating mode for this policy. module Mode # A value indicating that the enum field is not set. UNDEFINED_MODE = 0 # Do not automatically scale the MIG in or out. The recommended_size field contains the size of MIG that would be set if the actuation mode was enabled. OFF = 78159 # Automatically scale the MIG in and out according to the policy. ON = 2527 # Automatically create VMs according to the policy, but do not scale the MIG in. ONLY_SCALE_OUT = 152713670 # Automatically create VMs according to the policy, but do not scale the MIG in. ONLY_UP = 478095374 end end |
#scaling_schedules ⇒ ::Google::Protobuf::Map{::String => ::Google::Cloud::Compute::V1::AutoscalingPolicyScalingSchedule}
Returns Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, and they can overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules is applied. Up to 128 scaling schedules are allowed.
2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 2375 class AutoscalingPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::Compute::V1::AutoscalingPolicyScalingSchedule] class ScalingSchedulesEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Defines operating mode for this policy. module Mode # A value indicating that the enum field is not set. UNDEFINED_MODE = 0 # Do not automatically scale the MIG in or out. The recommended_size field contains the size of MIG that would be set if the actuation mode was enabled. OFF = 78159 # Automatically scale the MIG in and out according to the policy. ON = 2527 # Automatically create VMs according to the policy, but do not scale the MIG in. ONLY_SCALE_OUT = 152713670 # Automatically create VMs according to the policy, but do not scale the MIG in. ONLY_UP = 478095374 end end |