hello! I have a website (messwithdns.net) that I restart every 30 minutes with a cron job. Sometimes it gets into a state where the site doesn’t work (and is extremely slow) and running flyctl restart mess-with-dns doesn’t seem to fix it. Doing a flyctl deploy generally fixes the problem.
I’m having trouble reasoning about why this could be – I’m not making any changes to the code myself. I haven’t had a chance to dig deep into what’s going on yet so apologies if this doesn’t make much sense.
Restarts are a little unintuitive. They restart the process in place. vm stop and deploy both replace the VM entirely. It would be better to use vm stop for what you’re doing, probably.
A restart should do what you want, though. We’ll have a much better method for doing this soon.