4 ms·
Does scale to zero work with ordinary fly apps yet?
by hamandcheese 4y ago
Does scale to zero work with ordinary fly apps yet?
- biorach 4y agoProbably. Depends. For a simple app should be straighforward. I set up a machine - a few weeks ago this involved a few direct api calls using curl - maybe `flyctl` can do it all now. Then I deployed on that machine a version of my app that gracefully shut down if no requests were received for 60s. Works great. Shuts down after a minute, boots back up in under a second when a request comes in. See the docs for details
- TheHappyOddish 4y agoI found the docs difficult and inconsistent when moving between flyctl and cURL when I tried playing with machines a few months ago. I daresay they'll be wonderful once the team get the machine stuff working under flyctl fully. Their generous free tier does make it easy to play and assess though.
- mrkurt 4y agoNo, ordinary Fly apps (what we call v1 apps) are managed by nomad. They don't scale to zero. You can create a machine based app and it'll scale to zero just fine, but you lose most of the magic of `fly deploy` right now.