From bca12a7003c4b2693eefaef2c49381f67a516bec Mon Sep 17 00:00:00 2001 From: Milos Gajdos Date: Thu, 5 Dec 2019 17:11:17 +0000 Subject: [PATCH] =?UTF-8?q?Changed=20a=20few=20router=20knobs=20to=20avoid?= =?UTF-8?q?=20storms=20=E2=9B=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router/default.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/router/default.go b/router/default.go index e4305436..cd35db86 100644 --- a/router/default.go +++ b/router/default.go @@ -15,9 +15,9 @@ import ( var ( // AdvertiseEventsTick is time interval in which the router advertises route updates - AdvertiseEventsTick = 5 * time.Second + AdvertiseEventsTick = 10 * time.Second // AdvertiseTableTick is time interval in which router advertises all routes found in routing table - AdvertiseTableTick = 1 * time.Minute + AdvertiseTableTick = 2 * time.Minute // DefaultAdvertTTL is default advertisement TTL DefaultAdvertTTL = 1 * time.Minute // AdvertSuppress is advert suppression threshold @@ -29,7 +29,7 @@ var ( // PenaltyHalfLife is the time the advert penalty decays to half its value PenaltyHalfLife = 30.0 // MaxSuppressTime defines time after which the suppressed advert is deleted - MaxSuppressTime = time.Second * 30 + MaxSuppressTime = 90 * time.Second // PenaltyDecay is a coefficient which controls the speed the advert penalty decays PenaltyDecay = math.Log(2) / PenaltyHalfLife )