Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1354 from weaveworks/1347-dns-tombstone-comment
Browse files Browse the repository at this point in the history
Lgtm.  Closes #1347
  • Loading branch information
bboreham committed Aug 24, 2015
2 parents 6d0db90 + 4809c11 commit 760f419
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions nameserver/nameserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 760f419

Please sign in to comment.