-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sync: use exponential backoff when encountering short-lived loops
When we encounter system-level errors (such as ENOSPC), our best bet is to keep the run loop alive and continue retrying synchronization. However, if we try too aggressively, then we end up spinning on the CPU. Our best bet is to use an exponential backoff strategy driven by the number of sequential short-lived synchronization loops encountered. Signed-off-by: Jacob Howard <jacob@mutagen.io>
- Loading branch information
1 parent
15e9d73
commit 76f1f1c
Showing
1 changed file
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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