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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
use master.toml value if not empty
chrisluab49540d2ba0
diff --git a/weed/command/master.go b/weed/command/master.goindex c7b979e05a..a8cdf76c66 100644--- a/weed/command/master.go+++ b/weed/command/master.go@@ -3,13 +3,14 @@ package commandimport ("context""fmt"- "github.com/seaweedfs/seaweedfs/weed/util/version""net/http""os""path""strings""time"+ "github.com/seaweedfs/seaweedfs/weed/util/version"+hashicorpRaft "github.com/hashicorp/raft""slices"@@ -111,6 +112,11 @@ func runMaster(cmd *Command, args []string) bool {util.LoadSecurityConfiguration()util.LoadConfiguration("master", false)+ // bind viper configuration to command line flags+ if v := util.GetViper().GetString("master.mdir"); v != "" {+ *m.metaFolder = v+ }+grace.SetupProfiling(*masterCpuProfile, *masterMemProfile)parent, _ := util.FullPath(*m.metaFolder).DirAndName()