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
Add master bind ip address option.
Chris Lub5aa2ef6050b
diff --git a/go/weed/master.go b/go/weed/master.goindex 6617c8ca68..f96ff4c08f 100644--- a/go/weed/master.go+++ b/go/weed/master.go@@ -29,6 +29,7 @@ var cmdMaster = &Command{var (mport = cmdMaster.Flag.Int("port", 9333, "http listen port")masterIp = cmdMaster.Flag.String("ip", "", "master listening ip address, default to listen on all network interfaces")+ masterBindIp = cmdMaster.Flag.String("ip.bind", "0.0.0.0", "ip address to bind to")mPublicIp = cmdMaster.Flag.String("publicIp", "", "peer accessible <ip>|<server_name>")metaFolder = cmdMaster.Flag.String("mdir", os.TempDir(), "data directory to store meta data")masterPeers = cmdMaster.Flag.String("peers", "", "other master nodes in comma separated ip:port list")@@ -61,7 +62,7 @@ func runMaster(cmd *Command, args []string) bool {*volumeSizeLimitMB, *mpulse, *confFile, *defaultReplicaPlacement, *garbageThreshold, masterWhiteList,)- listeningAddress := *masterIp + ":" + strconv.Itoa(*mport)+ listeningAddress := *masterBindIp + ":" + strconv.Itoa(*mport)glog.V(0).Infoln("Start Seaweed Master", util.VERSION, "at", listeningAddress)diff --git a/go/weed/volume.go b/go/weed/volume.goindex 17d03f0c5b..ce05fcdf35 100644--- a/go/weed/volume.go+++ b/go/weed/volume.go@@ -30,7 +30,7 @@ var (maxVolumeCounts = cmdVolume.Flag.String("max", "7", "maximum numbers of volumes, count[,count]...")ip = cmdVolume.Flag.String("ip", "", "ip or server name")publicIp = cmdVolume.Flag.String("publicIp", "", "Publicly accessible <ip|server_name>")- bindIp = cmdVolume.Flag.String("ip.bind", "0.0.0.0", "ip address to bind to")+ volumeBindIp = cmdVolume.Flag.String("ip.bind", "0.0.0.0", "ip address to bind to")masterNode = cmdVolume.Flag.String("mserver", "localhost:9333", "master server location")vpulse = cmdVolume.Flag.Int("pulseSeconds", 5, "number of seconds between heartbeats, must be smaller than or equal to the master's setting")vTimeout = cmdVolume.Flag.Int("idleTimeout", 10, "connection idle seconds")@@ -85,7 +85,7 @@ func runVolume(cmd *Command, args []string) bool {*fixJpgOrientation,)- listeningAddress := *bindIp + ":" + strconv.Itoa(*vport)+ listeningAddress := *volumeBindIp + ":" + strconv.Itoa(*vport)glog.V(0).Infoln("Start Seaweed volume server", util.VERSION, "at", listeningAddress)