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 enable/disable volume server
Chris Luc6d9974fe76b
diff --git a/weed/command/server.go b/weed/command/server.goindex 6a78fb3f4e..d06b1d40af 100644--- a/weed/command/server.go+++ b/weed/command/server.go@@ -2,13 +2,14 @@ package commandimport ("fmt"- stats_collect "github.com/chrislusf/seaweedfs/weed/stats""os""runtime""runtime/pprof""strings""time"+ stats_collect "github.com/chrislusf/seaweedfs/weed/stats"+"github.com/chrislusf/seaweedfs/weed/glog""github.com/chrislusf/seaweedfs/weed/util")@@ -60,9 +61,10 @@ var (serverMetricsHttpPort = cmdServer.Flag.Int("metricsPort", 0, "Prometheus metrics listen port")// pulseSeconds = cmdServer.Flag.Int("pulseSeconds", 5, "number of seconds between heartbeats")- isStartingFiler = cmdServer.Flag.Bool("filer", false, "whether to start filer")- isStartingS3 = cmdServer.Flag.Bool("s3", false, "whether to start S3 gateway")- isStartingMsgBroker = cmdServer.Flag.Bool("msgBroker", false, "whether to start message broker")+ 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")+ isStartingMsgBroker = cmdServer.Flag.Bool("msgBroker", false, "whether to start message broker")serverWhiteList []string@@ -214,7 +216,7 @@ func runServer(cmd *Command, args []string) bool {}// start volume server- {+ if *isStartingVolumeServer {go serverOptions.v.startVolumeServer(*volumeDataFolders, *volumeMaxDataVolumeCounts, *serverWhiteListOption, *volumeMinFreeSpacePercent)}