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:
Kevin Fenzi 2017-10-05 00:48:39 +00:00
parent fb5f953f80
commit 7eb4c6cae4

View file

@ -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