Skip to content

Commit c371e0a

Browse files
authored
Uses automatic scaling in favor of manual scaling (#53)
* Uses automatic scaling in favor of manual scaling I believe this should resolve the following issue: m-lab/dev-tracker#675
1 parent 34e147e commit c371e0a

File tree

6 files changed

+36
-12
lines changed

6 files changed

+36
-12
lines changed

cloudbuild/app-platform.yaml.mlab-ns

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ resources:
66
cpu: 1
77
memory_gb: 4
88

9-
manual_scaling:
10-
instances: 2
9+
automatic_scaling:
10+
min_num_instances: 2
11+
max_num_instances: 4
12+
# Anecdotally, it seems to take roughly 5m for an instance to initialize
13+
# fully.
14+
cool_down_period_sec: 300
1115

1216
env_variables:
1317
LEGACY_SERVER: https://mlab-ns.appspot.com

cloudbuild/app-platform.yaml.mlab-sandbox

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ resources:
66
cpu: 1
77
memory_gb: 4
88

9-
manual_scaling:
10-
instances: 2
9+
automatic_scaling:
10+
min_num_instances: 2
11+
max_num_instances: 4
12+
# Anecdotally, it seems to take roughly 5m for an instance to initialize
13+
# fully.
14+
cool_down_period_sec: 300
1115

1216
env_variables:
1317
LEGACY_SERVER: https://mlab-ns.appspot.com

cloudbuild/app-platform.yaml.mlab-staging

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ resources:
66
cpu: 1
77
memory_gb: 4
88

9-
manual_scaling:
10-
instances: 2
9+
automatic_scaling:
10+
min_num_instances: 2
11+
max_num_instances: 4
12+
# Anecdotally, it seems to take roughly 5m for an instance to initialize
13+
# fully.
14+
cool_down_period_sec: 300
1115

1216
env_variables:
1317
LEGACY_SERVER: https://mlab-ns.appspot.com

cloudbuild/app.yaml.mlab-ns

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ resources:
1111
cpu: 2
1212
memory_gb: 8
1313

14-
manual_scaling:
15-
instances: 2
14+
automatic_scaling:
15+
min_num_instances: 2
16+
max_num_instances: 4
17+
# Anecdotally, it seems to take roughly 5m for an instance to initialize
18+
# fully.
19+
cool_down_period_sec: 300
1620

1721
env_variables:
1822
LEGACY_SERVER: https://mlab-ns.appspot.com

cloudbuild/app.yaml.mlab-sandbox

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ resources:
1111
cpu: 2
1212
memory_gb: 8
1313

14-
manual_scaling:
15-
instances: 2
14+
automatic_scaling:
15+
min_num_instances: 2
16+
max_num_instances: 4
17+
# Anecdotally, it seems to take roughly 5m for an instance to initialize
18+
# fully.
19+
cool_down_period_sec: 300
1620

1721
env_variables:
1822
LEGACY_SERVER: https://mlab-sandbox.appspot.com

cloudbuild/app.yaml.mlab-staging

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ resources:
1111
cpu: 2
1212
memory_gb: 8
1313

14-
manual_scaling:
15-
instances: 2
14+
automatic_scaling:
15+
min_num_instances: 2
16+
max_num_instances: 4
17+
# Anecdotally, it seems to take roughly 5m for an instance to initialize
18+
# fully.
19+
cool_down_period_sec: 300
1620

1721
env_variables:
1822
LEGACY_SERVER: https://mlab-staging.appspot.com

0 commit comments

Comments
 (0)