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.

add back logic to check master peers

Chris Lu62c2732fd1e0
diff --git a/weed/command/server.go b/weed/command/server.go
index 9f402c9f8a..7ffabb321d 100644
--- a/weed/command/server.go
+++ b/weed/command/server.go
@@ -168,6 +168,12 @@ func runServer(cmd *Command, args []string) bool {
*isStartingFiler = true
}
+ if *isStartingMasterServer {
+ _, peerList := checkPeers(*serverIp, *masterOptions.port, *masterOptions.portGrpc, *masterOptions.peers)
+ peers := strings.Join(pb.ToAddressStrings(peerList), ",")
+ masterOptions.peers = &peers
+ }
+
// ip address
masterOptions.ip = serverIp
masterOptions.ipBind = serverBindIp