auto updated filer peer list

This commit is contained in:
Chris Lu
2021-11-06 14:23:35 -07:00
parent 84bb8e7365
commit e0fc2898e9
8 changed files with 211 additions and 137 deletions

View File

@@ -108,7 +108,7 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption)
fs.checkWithMaster()
go stats.LoopPushingMetric("filer", string(fs.option.Host), fs.metricsAddress, fs.metricsIntervalSec)
go fs.filer.KeepConnectedToMaster()
go fs.filer.KeepMasterClientConnected()
v := util.GetViper()
if !util.LoadConfiguration("filer", false) {
@@ -143,7 +143,7 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption)
readonlyMux.HandleFunc("/", fs.readonlyFilerHandler)
}
fs.filer.AggregateFromPeers(option.Host, option.Filers)
fs.filer.AggregateFromPeers(option.Host)
fs.filer.LoadBuckets()