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
mq broker adds data center and rack
chrislu8d31e73ffd7d
diff --git a/weed/command/mq_broker.go b/weed/command/mq_broker.goindex c87cccd2cb..a80e3da706 100644--- a/weed/command/mq_broker.go+++ b/weed/command/mq_broker.go@@ -28,6 +28,8 @@ type MessageQueueBrokerOptions struct {filer *stringip *stringport *int+ dataCenter *string+ rack *stringcpuprofile *stringmemprofile *string}@@ -39,6 +41,8 @@ func init() {mqBrokerStandaloneOptions.filerGroup = cmdMqBroker.Flag.String("filerGroup", "", "share metadata with other filers in the same filerGroup")mqBrokerStandaloneOptions.ip = cmdMqBroker.Flag.String("ip", util.DetectedHostAddress(), "broker host address")mqBrokerStandaloneOptions.port = cmdMqBroker.Flag.Int("port", 17777, "broker gRPC listen port")+ mqBrokerStandaloneOptions.dataCenter = cmdMqBroker.Flag.String("dataCenter", "", "prefer to read and write to volumes in this data center")+ mqBrokerStandaloneOptions.rack = cmdMqBroker.Flag.String("rack", "", "prefer to write to volumes in this rack")mqBrokerStandaloneOptions.cpuprofile = cmdMqBroker.Flag.String("cpuprofile", "", "cpu profile output file")mqBrokerStandaloneOptions.memprofile = cmdMqBroker.Flag.String("memprofile", "", "memory profile output file")}diff --git a/weed/command/server.go b/weed/command/server.goindex 2c363087c6..9e1cea07df 100644--- a/weed/command/server.go+++ b/weed/command/server.go@@ -217,6 +217,8 @@ func runServer(cmd *Command, args []string) bool {filerOptions.dataCenter = serverDataCenterfilerOptions.rack = serverRack+ mqBrokerOptions.dataCenter = serverDataCenter+ mqBrokerOptions.rack = serverRackfilerOptions.disableHttp = serverDisableHttpmasterOptions.disableHttp = serverDisableHttp