-
Notifications
You must be signed in to change notification settings - Fork 71
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
add RANDOM_DELAY to spread backup start in swarm #79
Comments
I support this. Side note: Turns out this variable is commonly interpreted as minutes. I'm triggered by this as "random delay" could be in any time unit. The name is horrible. Suggest to go with |
To clarify. I don't think the used go cron implementation supports |
To be precise, I had already been playing around with ways to spread backup times in a swarm cluster. As random delays might still collide, I was hoping to achieve deterministic run times for every node. Turns out this is really hard to do when deploying as a global swarm service. As I have been talking about here and there, I am hoping to have a central scheduler solution with swarm-cronjob someday, but it does not yet work correctly for global mode services. Using the random delay might be a good interim solution until we have that.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
When all backups in a swarm start at the same time, there might be performance issues. Some cron implementations support the RANDOM_DELAY environment variable, which defines the maximum amount of minutes the cron job could be randomly delayed. This could help to reduce strain on the swarm during backup.
The text was updated successfully, but these errors were encountered: