Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 [CHANGE] - Add Autostart and Autostop Machine Options to fly.toml or Documentation #416

Closed
Avi-Lance opened this issue Jul 27, 2024 · 3 comments

Comments

@Avi-Lance
Copy link
Contributor

Avi-Lance commented Jul 27, 2024

Description

Fly.io has recently updated their pricing. You can find more details in this issue: #415.

To help reduce costs, you can set the following two variables in the fly.toml file:

[[services]]
auto_start_machines = true
auto_stop_machines = true

There are a couple of ways to address this change:

  1. We could update the default fly.toml to include these options.
    
  2. Alternatively, we could document these options so that users can add them to their configuration themselves.
    

Expected behavior

With these options, Fly.io automatically starts an instance if there are web requests and shuts it down if there haven’t been any requests for a few minutes.

Based on my limited testing, this may delay the first connection to Actual Budget by 5-15 seconds if there isn’t a cached copy in the browser. However, if there is a cached copy—such as when the Actual Budget Progressive Web App is installed on your phone—the difference in loading time is less noticeable.

@RubenOlsen
Copy link
Member

If you are comfortable editing the documentation yourself, could you add this?

@Avi-Lance
Copy link
Contributor Author

I added the changes in this PR: #418

@matt-fidd
Copy link
Contributor

Fixed in #418

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants