From 2f7e8a18d83ea42c7e3facaa9d86c814922f5066 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Tue, 30 Oct 2018 12:32:15 +0100 Subject: [PATCH] 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 Reviewed-by: Robert Langhammer Reviewed-by: Christian Dresel --- src/packages/fff/fff-hoods/files/usr/lib/micron.d/fff-hoods | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/fff/fff-hoods/files/usr/lib/micron.d/fff-hoods b/src/packages/fff/fff-hoods/files/usr/lib/micron.d/fff-hoods index c2f56bba..997e4b76 100644 --- a/src/packages/fff/fff-hoods/files/usr/lib/micron.d/fff-hoods +++ b/src/packages/fff/fff-hoods/files/usr/lib/micron.d/fff-hoods @@ -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