Skip to content

Add optional jittering before any backup actions#654

Merged
m90 merged 5 commits intooffen:mainfrom
estebanthi:f/jitter_before_backup
Oct 17, 2025
Merged

Add optional jittering before any backup actions#654
m90 merged 5 commits intooffen:mainfrom
estebanthi:f/jitter_before_backup

Conversation

@estebanthi
Copy link
Contributor

Adds a new configuration option BACKUP_JITTER to introduce a random delay before starting any backup actions.

For context I'm backing up hundreds of containers from many servers to a single backup host with SSH on the same schedule. Handling a lot of SSH connections would be possible but would require changes I don't want either server-side or client-side. Adding a configurable startup jitter is the simplest option. I tried using hooks (sleep $((RANDOM % $DELAY)) but pre-archive runs after establishing the SSH connection, so it didn’t reduce the initial handshake load.

@estebanthi
Copy link
Contributor Author

Done! Let me know if there is anything else to adjust.

Copy link
Member

@m90 m90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, thanks 🥇 I'll defer merging until there's an upstream fix for #648 and I can cut a new release. I'd hope that's not very long.

@m90 m90 changed the title NEW: Add optional jittering before any backup actions Add optional jittering before any backup actions Oct 17, 2025
@m90 m90 merged commit f76d4fd into offen:main Oct 17, 2025
3 checks passed
@m90
Copy link
Member

m90 commented Oct 17, 2025

This is now released in v2.45.0, thanks for your contribution!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants