-
Notifications
You must be signed in to change notification settings - Fork 32
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
[Feature Request] Allow systemd randomize RandomizedDelaySec parameter in the schedule command #217
Comments
Hi, I don't think I would want to backup multiple machines at the same time (to the same repository). I mean I don't mind adding this feature but I'm not sure it's advised to do so |
closing as it can be set via a systemd template: https://creativeprojects.github.io/resticprofile/schedules/systemd/index.html#how-to-change-the-default-systemd-unit-and-timer-file-using-a-template |
Hi! I've stumbled across the same issue just now, trying to add some randomness to the schedule.
Which is one of the reasons why For example, you could have 10 machines configured to run a daily backup at 2am, but add
That's not quite true. Imagine having 10 machines at home that start uploading their backups at the same time, although to different off-site repos. You'd probably run into congestion of your upstream link. This, too, could be solved by adding a random delay.
Hm. I've thought about doing this, but I don't see how I can use different values for different profiles, because the template is a global setting. So, if I have one profile running every 10 minutes, I might want to add a 2 minute randomized delay to it, but if I have another profile running every 24 hours, 1 hour of randomized delay might make more sense there. Is there a way to do this using the custom template? I even might want to use different delays for different tasks in the same profile. For example, run I've also tried using a drop-in file to do this, but since drop-in files are associated with the
|
I guess it's an easy change in the configuration. |
Config change or extend drop-in support to place drop-ins in the timers directory if they contain |
drop-ins in the timers directory would definitely be better 👍🏻 |
But drop-ins are set on the profile level, not on the action level. Different drop-ins for |
We could add them to the upcoming schedule structure in 0.27 (#333). Then it covers all use cases. @creativeprojects what do you think? |
@creativeprojects , since the changes were quite small I had opened 2 PRs. Let me know what you think about it. |
Allow systemd randomize RandomizedDelaySec parameter in the schedule command.
This is a convenient way to avoid starting the jobs on all hosts at one time if config is the same for them with the same schedule time.
The text was updated successfully, but these errors were encountered: