Skip to content
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
10 changes: 10 additions & 0 deletions mmv1/products/compute/Autoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
instance_template_name: 'my-instance-template'
target_pool_name: 'my-target-pool'
igm_name: 'my-igm'
# Add test_vars_overrides and oics_vars_overrides to fix the failing test,

Check warning on line 60 in mmv1/products/compute/Autoscaler.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

60:9 [comments-indentation] comment not indented like content
# which is caused by upgradting terraform-plugin-sdk to 2.24.0.
provider_name: 'google-beta'
provider_alias: ''
Expand Down Expand Up @@ -153,6 +153,16 @@
and time the startup process.
api_name: coolDownPeriodSec
default_value: 60
- name: 'stabilizationPeriod'
type: Integer
description: |
The number of seconds that the autoscaler waits for load stabilization
before making scale-in decisions.

This might appear as a delay in scaling in but it is an important mechanism
for your application to not have fluctuating size due to short term load
fluctuations.
api_name: stabilizationPeriodSec
- name: 'mode'
type: String
description: |
Expand Down
10 changes: 10 additions & 0 deletions mmv1/products/compute/RegionAutoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,16 @@ properties:
and time the startup process.
api_name: coolDownPeriodSec
default_value: 60
- name: 'stabilizationPeriod'
type: Integer
description: |
The number of seconds that the autoscaler waits for load stabilization
before making scale-in decisions.

This might appear as a delay in scaling in but it is an important mechanism
for your application to not have fluctuating size due to short term load
fluctuations.
api_name: stabilizationPeriodSec
- name: 'mode'
type: String
description: |
Expand Down
1 change: 1 addition & 0 deletions mmv1/templates/terraform/examples/autoscaler_basic.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ resource "google_compute_autoscaler" "foobar" {
max_replicas = 5
min_replicas = 1
cooldown_period = 60
stabilization_period = 300

cpu_utilization {
target = 0.5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ resource "google_compute_autoscaler" "{{$.PrimaryResourceId}}" {
max_replicas = 5
min_replicas = 1
cooldown_period = 60
stabilization_period = 300

metric {
name = "pubsub.googleapis.com/subscription/num_undelivered_messages"
Expand Down Expand Up @@ -76,4 +77,4 @@ provider "google-beta" {
region = "us-central1"
zone = "us-central1-a"
{{index $.Vars "provider_alias"}}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ resource "google_compute_region_autoscaler" "{{$.PrimaryResourceId}}" {
max_replicas = 5
min_replicas = 1
cooldown_period = 60
stabilization_period = 300

cpu_utilization {
target = 0.5
Expand Down
Loading