|
@ -75,6 +75,8 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption) |
|
|
fs.filer = filer2.NewFiler(option.Masters, fs.grpcDialOption, option.Port+10000) |
|
|
fs.filer = filer2.NewFiler(option.Masters, fs.grpcDialOption, option.Port+10000) |
|
|
fs.filer.Cipher = option.Cipher |
|
|
fs.filer.Cipher = option.Cipher |
|
|
|
|
|
|
|
|
|
|
|
maybeStartMetrics(fs, option) |
|
|
|
|
|
|
|
|
go fs.filer.KeepConnectedToMaster() |
|
|
go fs.filer.KeepConnectedToMaster() |
|
|
|
|
|
|
|
|
v := util.GetViper() |
|
|
v := util.GetViper() |
|
@ -107,8 +109,6 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption) |
|
|
|
|
|
|
|
|
fs.filer.LoadBuckets(fs.filer.DirBucketsPath) |
|
|
fs.filer.LoadBuckets(fs.filer.DirBucketsPath) |
|
|
|
|
|
|
|
|
maybeStartMetrics(fs, option) |
|
|
|
|
|
|
|
|
|
|
|
util.OnInterrupt(func() { |
|
|
util.OnInterrupt(func() { |
|
|
fs.filer.Shutdown() |
|
|
fs.filer.Shutdown() |
|
|
}) |
|
|
}) |
|
|