diff --git a/go/weed/weed_server/raft_server.go b/go/weed/weed_server/raft_server.go index 882bb23f9..15ec99726 100644 --- a/go/weed/weed_server/raft_server.go +++ b/go/weed/weed_server/raft_server.go @@ -44,6 +44,8 @@ func NewRaftServer(r *mux.Router, version string, peers []string, httpAddr strin var err error transporter := raft.NewHTTPTransporter("/cluster") + transporter.Transport.MaxIdleConnsPerHost = 1024 + s.raftServer, err = raft.NewServer(s.httpAddr, s.dataDir, transporter, nil, topo, "") if err != nil { glog.V(0).Infoln(err)