Change raft snapshot interval to 5 seconds

pull/2591/head
Kyle Havlovitz 2016-12-12 13:04:52 -05:00
parent 6cd5e4d491
commit c49ea15449
No known key found for this signature in database
GPG Key ID: 8A5E6B173056AD6C
1 changed files with 3 additions and 0 deletions

View File

@ -350,6 +350,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
}