Changes for the storm

This commit is contained in:
Asim Aslam 2019-11-29 17:27:29 +00:00
parent ce4acfa892
commit 107124e5dc
2 changed files with 4 additions and 4 deletions

View File

@ -21,17 +21,17 @@ var (
// AdvertiseFlushTick is time the yet unconsumed advertisements are flush i.e. discarded // AdvertiseFlushTick is time the yet unconsumed advertisements are flush i.e. discarded
AdvertiseFlushTick = 15 * time.Second AdvertiseFlushTick = 15 * time.Second
// DefaultAdvertTTL is default advertisement TTL // DefaultAdvertTTL is default advertisement TTL
DefaultAdvertTTL = 1 * time.Minute DefaultAdvertTTL = 2 * time.Minute
// AdvertSuppress is advert suppression threshold // AdvertSuppress is advert suppression threshold
AdvertSuppress = 200.0 AdvertSuppress = 200.0
// AdvertRecover is advert recovery threshold // AdvertRecover is advert recovery threshold
AdvertRecover = 120.0 AdvertRecover = 20.0
// Penalty for routes processed multiple times // Penalty for routes processed multiple times
Penalty = 100.0 Penalty = 100.0
// PenaltyHalfLife is the time the advert penalty decays to half its value // PenaltyHalfLife is the time the advert penalty decays to half its value
PenaltyHalfLife = 30.0 PenaltyHalfLife = 30.0
// MaxSuppressTime defines time after which the suppressed advert is deleted // MaxSuppressTime defines time after which the suppressed advert is deleted
MaxSuppressTime = 5 * time.Minute MaxSuppressTime = time.Second * 30
// PenaltyDecay is a coefficient which controls the speed the advert penalty decays // PenaltyDecay is a coefficient which controls the speed the advert penalty decays
PenaltyDecay = math.Log(2) / PenaltyHalfLife PenaltyDecay = math.Log(2) / PenaltyHalfLife
) )

View File

@ -12,7 +12,7 @@ var (
// DefaultAddress is default tunnel bind address // DefaultAddress is default tunnel bind address
DefaultAddress = ":0" DefaultAddress = ":0"
// The shared default token // The shared default token
DefaultToken = "micro" DefaultToken = "go.micro.tunnel"
) )
type Option func(*Options) type Option func(*Options)