mirror of
https://github.com/status-im/consul.git
synced 2025-02-04 09:55:49 +00:00
Merge pull request #2591 from hashicorp/snapshot-interval
Change raft snapshot interval to 5 seconds
This commit is contained in:
commit
13aa0ba11b
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user