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
exclude the replication from the concurrentUploadLimitMB
Konstantin Lebedev0b790d2bbf1e
diff --git a/weed/server/volume_server_handlers.go b/weed/server/volume_server_handlers.goindex 1ff0914a91..2dc7f67418 100644--- a/weed/server/volume_server_handlers.go+++ b/weed/server/volume_server_handlers.go@@ -52,7 +52,10 @@ func (vs *VolumeServer) privateStoreHandler(w http.ResponseWriter, r *http.Reque// wait until in flight data is less than the limitcontentLength := getContentLength(r)- if vs.concurrentUploadLimit != 0 && atomic.LoadInt64(&vs.inFlightUploadDataSize) > vs.concurrentUploadLimit {++ // exclude the replication from the concurrentUploadLimitMB+ if vs.concurrentUploadLimit != 0 && r.URL.Query().Get("type") != "replicate" &&+ atomic.LoadInt64(&vs.inFlightUploadDataSize) > vs.concurrentUploadLimit {err := fmt.Errorf("reject because inflight upload data %d > %d", vs.inFlightUploadDataSize, vs.concurrentUploadLimit)glog.V(1).Infof("too many requests: %v", err)writeJsonError(w, r, http.StatusTooManyRequests, err)