Skip to content

Commit

Permalink
Change raft snapshot interval to 5 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
kyhavlov committed Dec 12, 2016
1 parent 6cd5e4d commit c49ea15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions consul/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit c49ea15

Please sign in to comment.