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

Random Backoff for Load Distribution #1640

Open
MosbyTheGreat opened this issue Apr 8, 2024 · 0 comments
Open

Random Backoff for Load Distribution #1640

MosbyTheGreat opened this issue Apr 8, 2024 · 0 comments

Comments

@MosbyTheGreat
Copy link

Hi!

I’ve been using supervisord to manage multiple programs (~20) and noticed that when several fail at once, they all restart together, which causes a big spike in load.

My understanding is that the current "startretries" setting doesn't prevent this. What if we add a random backoff between x and y seconds? This way, when programs restart after a failure, they do so at random intervals instead of all at once, helping spread out the load.

Would love to hear your thoughts on this or any advice on implementing it in my setup, maybe I just missed a setting, which would solve the problem.

Thanks!

Moritz

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

No branches or pull requests

1 participant