From c49ea15449449112765a19734607f190f380fcc5 Mon Sep 17 00:00:00 2001 From: Kyle Havlovitz Date: Mon, 12 Dec 2016 13:04:52 -0500 Subject: [PATCH] Change raft snapshot interval to 5 seconds --- consul/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/consul/config.go b/consul/config.go index 0e094f305b..9e6be91b23 100644 --- a/consul/config.go +++ b/consul/config.go @@ -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 }