mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
fix: peer replication bandwidth monitoring in distributed setup (#10652)
This commit is contained in:
1 parent
c2f16ee846
commit
8ceb2a93fd
7 files changed
+61
-61
No files matched your search
@@ -235,8 +235,8 @@ func replicateObject(ctx context.Context, objInfo ObjectInfo, objectAPI ObjectLa
|
||||
replicationStatus := replication.Complete
|
||||
|
||||
// Setup bandwidth throttling
|
||||
peerCount := len(globalEndpoints)
|
||||
b := target.BandwidthLimit / int64(peerCount)
|
||||
totalNodesCount := len(GetRemotePeers(globalEndpoints)) + 1
|
||||
b := target.BandwidthLimit / int64(totalNodesCount)
|
||||
var headerSize int
|
||||
for k, v := range putOpts.Header() {
|
||||
headerSize += len(k) + len(v)
|
||||
|
||||
Reference in new issue
Block a user