aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-10-23 23:06:44 -0700
committerChris Lu <chris.lu@gmail.com>2020-10-23 23:06:44 -0700
commit1b17f71939ddf9b556521639efa706f598429a8e (patch)
tree6dcad4433975030b36a5fef6079434760360d225 /weed/command
parentef9c32ea0da7baa1b8d8a968c1776714c228c597 (diff)
downloadseaweedfs-1b17f71939ddf9b556521639efa706f598429a8e.tar.xz
seaweedfs-1b17f71939ddf9b556521639efa706f598429a8e.zip
adjust election timeout to 10 seconds
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/master.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/master.go b/weed/command/master.go
index 97ec1bd24..c8eceb265 100644
--- a/weed/command/master.go
+++ b/weed/command/master.go
@@ -126,7 +126,7 @@ func startMaster(masterOption MasterOptions, masterWhiteList []string) {
}
// start raftServer
raftServer, err := weed_server.NewRaftServer(security.LoadClientTLS(util.GetViper(), "grpc.master"),
- peers, myMasterAddress, util.ResolvePath(*masterOption.metaFolder), ms.Topo, 5, *masterOption.raftResumeState)
+ peers, myMasterAddress, util.ResolvePath(*masterOption.metaFolder), ms.Topo, *masterOption.raftResumeState)
if raftServer == nil {
glog.Fatalf("please verify %s is writable, see https://github.com/chrislusf/seaweedfs/issues/717: %s", *masterOption.metaFolder, err)
}