Repository navigation
Conversation
With min_machines_running = 0 every wake was a fresh CPU reservation on a shared host, and on a full host the proxy retries that reservation forever, which is how the site went down on 2026-10-29 and how the cloned machine then needed eight attempts to resume. Fly metrics for the previous 48 hours show the machine idle 81% of the time but woken 56 times, by the hourly sync and the uptime probe rather than by anyone reading, so suspend was saving about $2.60 a month in exchange for 56 chances to lose that roll. Holding the reservation removes both failure modes. The reconnect-on-dead-socket path in src/db.rs stays, since Fly can still stop or migrate the machine, and the docs now say so rather than "the machine suspends". Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
🧹 PR preview destroyedThe preview app and its volume were removed when this PR closed. |
Owner
Author
|
Closing: keeping suspend-when-idle as is. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sets
min_machines_running = 1infly.toml, and updates the comments and docs that said the machine suspends.Why. With it at zero, every wake is a fresh CPU reservation on a shared host. On a full host the proxy retries that reservation forever, which took the site down on 2026-10-29, and the cloned replacement then needed eight attempts to resume at 07:54. Fly's Prometheus metrics for the preceding 48 hours:
The wakes are the hourly sync and the uptime probe, not readers. Suspend was saving about $2.60 a month on a shared-cpu-1x and costing 56 reservation rolls every two days. Holding the reservation removes both failure modes and changes nothing else about the one-machine design.
The
src/db.rsreconnect stays, since Fly can still stop or migrate the machine; the docs now say that instead of "the machine suspends". Companion to #147, which documents the outage.🤖 Generated with Claude Code