diff --git a/weed/server/filer_server.go b/weed/server/filer_server.go index 7b57c68c7..c0c472c84 100644 --- a/weed/server/filer_server.go +++ b/weed/server/filer_server.go @@ -125,9 +125,11 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption) // we do not support IP whitelist right now fs.filerGuard = security.NewGuard([]string{}, signingKey, expiresAfterSec, readSigningKey, readExpiresAfterSec) - fs.checkWithMaster() + go func() { + fs.checkWithMaster() + stats.LoopPushingMetric("filer", string(fs.option.Host), fs.metricsAddress, fs.metricsIntervalSec) + }() - go stats.LoopPushingMetric("filer", string(fs.option.Host), fs.metricsAddress, fs.metricsIntervalSec) go fs.filer.KeepMasterClientConnected() if !util.LoadConfiguration("filer", false) {