add a random delay up to 1 hour for db backup jobs so we do not have a thundering herd on db01
This commit is contained in:
parent
fb5f953f80
commit
7eb4c6cae4
1 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
|||
#!/bin/bash
|
||||
# Backup a database *locally* to /backups/.
|
||||
|
||||
# Sleep a bit so we do not have a thundering herd on db hosts
|
||||
sleep $[ ( $RANDOM % 3600 ) + 1 ]s
|
||||
|
||||
DB=$1
|
||||
|
||||
# Make our latest backup
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue