From c33c634346d2108adedc00a50285b305e64797ed Mon Sep 17 00:00:00 2001 From: Panayiotis Lipiridis Date: Fri, 5 Feb 2021 00:45:44 +0200 Subject: [PATCH] Automatic scaling --- app.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app.yaml b/app.yaml index 0ffa429..e93b4f7 100644 --- a/app.yaml +++ b/app.yaml @@ -2,8 +2,10 @@ runtime: nodejs env: flex # https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml -manual_scaling: - instances: 1 +automatic_scaling: + min_num_instances: 1 + max_num_instances: 4 + cool_down_period_sec: 180 resources: cpu: 1 memory_gb: 0.5