Keeping specific machine in primary_region from stopping

I have an app using litefs, which requires the machine with the primary litefs db to not be stopped.

I currently have the config:

primary_region = "lax"
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 1

with another machine in a different region.

However, since that different region is closer to my physical location, fly is keeping that one running, but stopping the machine in the primary region.

How can I tell fly to not shut down the primary machine, but let others start/stop?

min_machines_running keeps the set number of machines running in your primary region (see here).

Currently there is no way to do this. You would have to implement this behaviour yourself. You can do this by setting up a way for your machine to shutdown when its idle (see here)

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