configurehood: Introduce random delays to dilute requests

Instead of having 1000 routers accessing the KeyXchange in the
same second, this will dilute the request within a period of
15 seconds.

Same is done for queries from gateways.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Robert Langhammer <rlanghammer@web.de>
Reviewed-by: Christian Dresel <fff@chrisi01.de>
This commit is contained in:
Adrian Schmutzler 2018-10-30 12:32:15 +01:00
parent 14622e20c2
commit 2f7e8a18d8
1 changed files with 1 additions and 1 deletions

View File

@ -1 +1 @@
3-59/5 * * * * [ -f /tmp/started ] && /usr/sbin/configurehood
3-59/5 * * * * /bin/sleep $(/usr/bin/random 1 15); [ -f /tmp/started ] && /usr/sbin/configurehood