From 8a38fe83eaa8db0b8755521752c4616caf1ff8f0 Mon Sep 17 00:00:00 2001 From: cal-nic Date: Fri, 15 Mar 2024 11:50:50 +0000 Subject: [PATCH 1/2] feat: add auto scaling to app yml --- appengine_templates/app.yaml.tpl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/appengine_templates/app.yaml.tpl b/appengine_templates/app.yaml.tpl index fa866abc..9e29b78d 100644 --- a/appengine_templates/app.yaml.tpl +++ b/appengine_templates/app.yaml.tpl @@ -12,9 +12,10 @@ env_variables: BLAISE_API_URL: _BLAISE_API_URL NIFI_STAGING_BUCKET: _NIFI_STAGING_BUCKET -basic_scaling: - idle_timeout: 10m - max_instances: 10 +automatic_scaling: + min_instances: _MAX_INSTANCES + max_instances: _MAX_INSTANCES + target_cpu_utilization: _TARGET_CPU_UTILIZATION handlers: - url: /.* From 4caf9605d8f325bb3503a339e7c2895ed620c4be Mon Sep 17 00:00:00 2001 From: cal-nic Date: Mon, 18 Mar 2024 15:32:09 +0000 Subject: [PATCH 2/2] fix: typo --- appengine_templates/app.yaml.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appengine_templates/app.yaml.tpl b/appengine_templates/app.yaml.tpl index 9e29b78d..80d5e474 100644 --- a/appengine_templates/app.yaml.tpl +++ b/appengine_templates/app.yaml.tpl @@ -13,7 +13,7 @@ env_variables: NIFI_STAGING_BUCKET: _NIFI_STAGING_BUCKET automatic_scaling: - min_instances: _MAX_INSTANCES + min_instances: _MIN_INSTANCES max_instances: _MAX_INSTANCES target_cpu_utilization: _TARGET_CPU_UTILIZATION