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

Update comment to fix #1347 #1354

Merged
merged 1 commit into from
Aug 24, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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