Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

re-ordering

Chris Lu6c96e5141411
diff --git a/weed/server/filer_server.go b/weed/server/filer_server.go
index 9b688a08de..7a0d7803b6 100644
--- a/weed/server/filer_server.go
+++ b/weed/server/filer_server.go
@@ -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.Cipher = option.Cipher
+ maybeStartMetrics(fs, option)
+
go fs.filer.KeepConnectedToMaster()
v := util.GetViper()
@@ -107,8 +109,6 @@ func NewFilerServer(defaultMux, readonlyMux *http.ServeMux, option *FilerOption)
fs.filer.LoadBuckets(fs.filer.DirBucketsPath)
- maybeStartMetrics(fs, option)
-
util.OnInterrupt(func() {
fs.filer.Shutdown()
})