Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

/etc/cron.d/rule-update should avoid overwhelming rule sites #724

Closed
dougburks opened this issue May 6, 2015 · 5 comments
Closed

/etc/cron.d/rule-update should avoid overwhelming rule sites #724

dougburks opened this issue May 6, 2015 · 5 comments

Comments

@dougburks
Copy link
Contributor

sleep a random number of seconds/minutes to avoid overwhelming rule sites

@dougburks dougburks changed the title /etc/cron.d/rule-update should avoid the thundering herd problem /etc/cron.d/rule-update should avoid overwhelming rule sites May 6, 2015
@dougburks
Copy link
Contributor Author

@dougburks
Copy link
Contributor Author

if master, then sleep for up to 50 minutes:
RMIN=$(($(dd if=/dev/urandom count=1 2> /dev/null | cksum | cut -d' ' -f1) % 50));

if sensor, then sleep for 60 minutes to give master time to download rules

@dougburks
Copy link
Contributor Author

@dougburks
Copy link
Contributor Author

@dougburks
Copy link
Contributor Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant