Reputation: 3
I'm trying to deploy an app engine on google cloud with the following app.yaml :
runtime: nodejs
env: flex
entrypoint: node app.js
automatic_scaling:
min_instances: 0
min_idle_instances: 0
cool_down_period_sec: 180
I would expect active instances to go down to 0 when there is no traffic (I accept initial warmup latency) Obviously i keep seeing at least 2 active instances running. What am i missing, thank you !
I implemented warmup routes (doing nothing) with no impact
Upvotes: 0
Views: 78
Reputation: 3
Thank you, the documentation has multiple URLs concerning app engine not always saying the same thing.
i changed my app.yaml like this and it looks like it's working as expected now
runtime: nodejs18
entrypoint: node app.js
automatic_scaling:
min_instances: 0
min_idle_instances: 0
Upvotes: 0
Reputation: 6323
You're using Flex. Flex can't go down to 0 instances i.e. it can't scale to zero (see documentation)
Upvotes: 0