consul: Increase default reap time to 3 days

This commit is contained in:
Armon Dadgar 2014-03-20 12:39:06 -07:00
parent c7d27cf424
commit 73b6ac322b
1 changed files with 4 additions and 0 deletions

View File

@ -116,6 +116,10 @@ func DefaultConfig() *Config {
ProtocolVersion: ProtocolVersionMax, ProtocolVersion: ProtocolVersionMax,
} }
// Increase our reap interval to 3 days instead of 24h.
conf.SerfLANConfig.ReconnectTimeout = 3 * 24 * time.Hour
conf.SerfWANConfig.ReconnectTimeout = 3 * 24 * time.Hour
// WAN Serf should use the WAN timing, since we are using it // WAN Serf should use the WAN timing, since we are using it
// to communicate between DC's // to communicate between DC's
conf.SerfWANConfig.MemberlistConfig = memberlist.DefaultWANConfig() conf.SerfWANConfig.MemberlistConfig = memberlist.DefaultWANConfig()