consul: Increase default reap time to 3 days

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

View File

@ -116,6 +116,10 @@ func DefaultConfig() *Config {
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
// to communicate between DC's
conf.SerfWANConfig.MemberlistConfig = memberlist.DefaultWANConfig()