Skip to content

Commit

Permalink
Add a warning message to min_machines_running (#1910)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucais11 authored Jan 16, 2025
1 parent 233c63e commit d27e4d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion launch/autostop-autostart.html.markerb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ redirect_from:
- /docs/apps/autostart-stop/
- /docs/launch/autostart-stop/
---

Your app can meet peak demand without keeping extra Machines running. Use autostop/autostart to automatically start and stop or suspend existing Machines based on incoming requests. Fly Machines are fast to start and stop, and you [don't pay for their CPU and RAM](/docs/about/pricing/#stopped-fly-machines) when they're in a `stopped` or `suspended` state.

Get all the details of [how Fly Proxy autostop/autostart works](/docs/reference/fly-proxy-autostop-autostart/).
Expand Down Expand Up @@ -52,6 +51,10 @@ In general, unless your app shuts itself down when idle, we recommend setting `a

To keep one or more Machines running all the time in your primary region, set `min_machines_running` to `1` or higher. If `min_machines_running = 1` and there's no traffic to your app, then Fly Proxy will stop Machines until eventually there is only one Machine running in your primary region. `min_machines_running` has no effect unless you set `auto_stop_machines` to `"stop"` or `"suspend"`.

<div class="important">
**`min_machines_running`:** This setting only maintains the specified minimum number of running Machines in your app's primary region. It has no effect on other regions where your app is deployed. If you need to maintain minimum running Machines in multiple regions, you'll need to manage those separately through other means like [`fly scale count`](https://fly.io/docs/flyctl/scale-count/#main-content-start).
</div>

### Maximum number of Machines running

There's no "maximum machines running" setting, because the maximum number of Machines is the total number of Machines in your app.
Expand Down

0 comments on commit d27e4d5

Please sign in to comment.