Merge pull request #2591 from hashicorp/snapshot-interval

Change raft snapshot interval to 5 seconds
This commit is contained in:
Kyle Havlovitz 2016-12-12 19:15:10 -05:00 committed by GitHub
commit 13aa0ba11b
1 changed files with 3 additions and 0 deletions

View File

@ -354,6 +354,9 @@ func DefaultConfig() *Config {
// Disable shutdown on removal
conf.RaftConfig.ShutdownOnRemove = false
// Check every 5 seconds to see if there are enough new entries for a snapshot
conf.RaftConfig.SnapshotInterval = 5 * time.Second
return conf
}