mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-06-01 00:02:22 +02:00
Avoid slow port startup.
This commit is contained in:
parent
76a684c256
commit
dbbc4e1c34
|
@ -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…
Reference in a new issue