From 5927ddf0a73715a1b61ef149d75e718a02967f85 Mon Sep 17 00:00:00 2001 From: Mostafa Ahangarha Date: Tue, 10 Oct 2023 20:35:06 +0330 Subject: [PATCH] Set autoscaling similar to HiChee --- .controlplane/templates/rails.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.controlplane/templates/rails.yml b/.controlplane/templates/rails.yml index a677384..b5145f7 100644 --- a/.controlplane/templates/rails.yml +++ b/.controlplane/templates/rails.yml @@ -23,9 +23,12 @@ spec: defaultOptions: # Start out like this for "test apps" autoscaling: + metric: latency + minScale: 1 # Max of 1 effectively disables autoscaling, so like a Heroku dyno count of 1 maxScale: 1 capacityAI: true + timeoutSeconds: 60 firewallConfig: external: # Default to allow public access to Rails server