My Parse App running on google app engine is configured in its app.yaml to use a minimum and maximum of 1 instance in the flexible environment, yet I keep seeing it create 4 instances. Because of this, I have disabled billing on the account, because the costs keep growing even though I want to it have a maximum of just 1 instance.
I would like to know why it is doing this and how I could stop it from happening. Does app.yaml not work in the flexible environment?
My app.yaml:
runtime: nodejs
env: flex
api_version: 1
automatic_scaling:
min_num_instances: 1
max_num_instances: 1
cool_down_period_sec: 120 # default value
cpu_utilization:
target_utilization: 0.5
resources:
cpu: .2
memory_gb: 0.6
disk_size_gb: 10
This is for a node.js app btw (Parse).
Edit: I also tried manual scaling and setting the number of instances to 1 for that. It didn't make much of a difference, there are 3 instances running instead of 4. Sometimes it goes back to 4.