Skip to content

Commit

Permalink
Merge pull request #2591 from hashicorp/snapshot-interval
Browse files Browse the repository at this point in the history
Change raft snapshot interval to 5 seconds
  • Loading branch information
kyhavlov authored Dec 13, 2016
2 parents 8aef914 + c49ea15 commit 13aa0ba
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 @@ -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
}

Expand Down

0 comments on commit 13aa0ba

Please sign in to comment.