How to stop/scale v2 apps to 0?

Hey

How do I scale to 0 or fully stop a v2 app?
I would like to set it up and start it later.

I tried to scale to 0 that does not work.
I tried to stop/kill the machine but it restarts.
(I tried to update the restart policy but that does not work for me).

Thanks

v2 apps will start every time they receive a request, so you can’t really stop them without turning off traffic.

If you comment out the [services] and/or [http_service] blocks in fly.toml, then redeploy, you should be able to stop machines.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.