mirror of https://github.com/hashicorp/consul
Change raft snapshot interval to 5 seconds
parent
6cd5e4d491
commit
c49ea15449
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue