From 4809c113b3d869485c94afefaa75f5753e957062 Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Mon, 24 Aug 2015 15:37:13 +0000 Subject: [PATCH] Update comment. --- nameserver/nameserver.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/nameserver/nameserver.go b/nameserver/nameserver.go index 4bc434ce..20331a7f 100644 --- a/nameserver/nameserver.go +++ b/nameserver/nameserver.go @@ -18,15 +18,16 @@ import ( const ( // Tombstones do not need to survive long periods of peer disconnection, as // we delete entries for disconnected peers. Therefore they just need to hang - // around to account for propagation delay through gossip. 10 minutes sounds - // long enough. + // around to account for propagation delay through gossip. We do need them + // to hang around longer than the allowed clock skew (defined next). 30mins + // tombstone timeout allows for 15mins max clock skew. tombstoneTimeout = time.Minute * 30 - // Used by prog/weaver/main.go and proxy/create_container_interceptor.go - DefaultDomain = "weave.local." - // Maximum age of acceptable gossip messages (to account for clock skew) gossipWindow = int64(tombstoneTimeout/time.Second) / 2 + + // Used by prog/weaver/main.go and proxy/create_container_interceptor.go + DefaultDomain = "weave.local." ) // Nameserver: gossip-based, in memory nameserver.