Browse Source

Avoid slow port startup.

pull/4102/head
zemul 2 years ago
parent
commit
dbbc4e1c34
  1. 6
      weed/server/filer_server.go

6
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) {

Loading…
Cancel
Save