What meaning is Stopped Machine?

Hi, I want to understand the meaning of “stopped” in the Fly machines.

This VM machine appears to be Stopped if it has not been accessed on the web for a specific time.
I couldn’t access the stopped VM from CLI during that time, but I could do so as soon as I changed the status of that machine to “started” from the dashboard.
Even though the machines were stopped, I could access the app domain on the Web.

In summary, the Fly machine looks to have the following specs:

  • We cannot access machines in SSH while the machine is stopped.
  • We need to make the machine “started” to access by SSH
  • The machines will be started as soon as a user accesses your app on the Web, in the words, by HTTP/HTTPS
  • “Stopped” is not entirely the machine suspension, and the status is like “watching” or “sleep mode”.

Is my understanding correct?
I want to have your feedback, thanks!

Hi, yes that is correct. You can read the details here: App configuration (fly.toml) · Fly Docs

I would recommend these settings:

  auto_stop_machines = "suspend"
  auto_start_machines = true
  min_machines_running = 0

It will suspend your machine so you don’t waste resources/money and it wakes up almost immediately when your app receives an HTTP request.

1 Like

Hi @khuezy,
Thank you for your answer!

I tried “suspend” and got the specs!
That’s so cool.

1 Like

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