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
Refactoring volume server options.
Chris Lu09bc19695832
diff --git a/go/weed/volume.go b/go/weed/volume.goindex 8dbcf84737..550dbd4b61 100644--- a/go/weed/volume.go+++ b/go/weed/volume.go@@ -71,6 +71,7 @@ func runVolume(cmd *Command, args []string) bool {}runtime.GOMAXPROCS(*v.maxCpu)+ //Set multiple folders and each folder's max volume count limit'v.folders = strings.Split(*volumeFolders, ",")maxCountStrings := strings.Split(*maxVolumeCounts, ",")for _, maxString := range maxCountStrings {@@ -88,10 +89,13 @@ func runVolume(cmd *Command, args []string) bool {glog.Fatalf("Check Data Folder(-dir) Writable %s : %s", folder, err)}}++ //security related white list configurationif *volumeWhiteListOption != "" {v.whiteList = strings.Split(*volumeWhiteListOption, ",")}+ //derive default public ip addressif *v.publicIp == "" {if *v.ip == "" {*v.ip = "127.0.0.1"@@ -109,7 +113,7 @@ func runVolume(cmd *Command, args []string) bool {*v.fixJpgOrientation,)- listeningAddress := *v.ip + ":" + strconv.Itoa(*v.port)+ listeningAddress := *v.bindIp + ":" + strconv.Itoa(*v.port)glog.V(0).Infoln("Start Seaweed volume server", util.VERSION, "at", listeningAddress)