Wrong max instances in app engine

Hi, I’ve set max_instances for my app engine to 1, but it still shows ‘auto’ on the dashboard page:

My yaml settings:

runtime: nodejs20
env: standard
instance_class: B1
handlers:

  • url: .*
    script: auto
    basic_scaling:
    idle_timeout: 60s
    max_instances: 1
    service_account: (placeholder)

Can someone see if I made any mistake?

Thanks in advance!

1 Like

Just for the sake of testing, I’d say try automatic scaling (which is the default) instead of basic scaling. That’s what I have always used (I use Python as runtime) and with automatic you should be able to configure all this:

automatic_scaling:
  min_idle_instances: <setting>
  max_idle_instances: <setting>
  min_pending_latency: <setting>
  max_pending_latency: <setting>
  min_instances: <setting>
  max_instances: <setting>

that has worked fine for me.
You could find more info here:
https://cloud.google.com/appengine/docs/standard/how-instances-are-managed

1 Like