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
server: add option to disable master
Chris Lu30efaa66c69a
diff --git a/weed/command/server.go b/weed/command/server.goindex bd25f94b19..187563db17 100644--- a/weed/command/server.go+++ b/weed/command/server.go@@ -61,6 +61,7 @@ var (serverMetricsHttpPort = cmdServer.Flag.Int("metricsPort", 0, "Prometheus metrics listen port")// pulseSeconds = cmdServer.Flag.Int("pulseSeconds", 5, "number of seconds between heartbeats")+ isStartingMasterServer = cmdServer.Flag.Bool("master", true, "whether to start master server")isStartingVolumeServer = cmdServer.Flag.Bool("volume", true, "whether to start volume server")isStartingFiler = cmdServer.Flag.Bool("filer", false, "whether to start filer")isStartingS3 = cmdServer.Flag.Bool("s3", false, "whether to start S3 gateway")@@ -224,7 +225,11 @@ func runServer(cmd *Command, args []string) bool {}- startMaster(masterOptions, serverWhiteList)+ if *isStartingMasterServer {+ go startMaster(masterOptions, serverWhiteList)+ }++ select {}return true}