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 logs for volume creation
Chris Lu1154e23e2d97
diff --git a/weed/server/master_server_handlers.go b/weed/server/master_server_handlers.goindex 0609732c75..32eb411146 100644--- a/weed/server/master_server_handlers.go+++ b/weed/server/master_server_handlers.go@@ -2,6 +2,7 @@ package weed_serverimport ("fmt"+ "github.com/chrislusf/seaweedfs/weed/glog""net/http""strconv""strings"@@ -113,6 +114,7 @@ func (ms *MasterServer) dirAssignHandler(w http.ResponseWriter, r *http.Request)}if ms.shouldVolumeGrow(option) {+ glog.V(0).Infof("dirAssign volume growth %v from %v", option.String(), r.RemoteAddr)if ms.Topo.AvailableSpaceFor(option) <= 0 {writeJsonQuiet(w, r, http.StatusNotFound, operation.AssignResult{Error: "No free volumes left for " + option.String()})returndiff --git a/weed/server/master_server_handlers_admin.go b/weed/server/master_server_handlers_admin.goindex fb16ef78ce..4a86348d9b 100644--- a/weed/server/master_server_handlers_admin.go+++ b/weed/server/master_server_handlers_admin.go@@ -74,6 +74,7 @@ func (ms *MasterServer) volumeGrowHandler(w http.ResponseWriter, r *http.RequestwriteJsonError(w, r, http.StatusNotAcceptable, err)return}+ glog.V(0).Infof("volumeGrowHandler received %v from %v", option.String(), r.RemoteAddr)if count, err = strconv.Atoi(r.FormValue("count")); err == nil {if ms.Topo.AvailableSpaceFor(option) < int64(count*option.ReplicaPlacement.GetCopyCount()) {