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

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

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

Comments

Projects
None yet
1 participant
@dougburks
Contributor

dougburks commented May 6, 2015

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

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

@dougburks

This comment has been minimized.

Show comment
Hide comment
@dougburks

This comment has been minimized.

Show comment
Hide comment
@dougburks

dougburks Aug 5, 2015

Contributor

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

Contributor

dougburks commented Aug 5, 2015

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

This comment has been minimized.

Show comment
Hide comment
Contributor

dougburks commented Aug 5, 2015

@dougburks

This comment has been minimized.

Show comment
Hide comment
Contributor

dougburks commented Aug 6, 2015

@dougburks

This comment has been minimized.

Show comment
Hide comment

@dougburks dougburks closed this Aug 19, 2015

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