mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 09:54:53 +08:00
reusing http connections in raft server
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user