aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-08-10 10:43:42 -0700
committerChris Lu <chris.lu@gmail.com>2021-08-10 10:43:42 -0700
commitdb6275a0c859874449c6b234ac7e0b787a276038 (patch)
treee164c96b1de06b78a962375ab84a40bfba5ca51c
parent9d85569c55a19097c90520e215224c4765b117be (diff)
downloadseaweedfs-db6275a0c859874449c6b234ac7e0b787a276038.tar.xz
seaweedfs-db6275a0c859874449c6b234ac7e0b787a276038.zip
print out balance ratio
-rw-r--r--weed/shell/command_volume_balance.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/shell/command_volume_balance.go b/weed/shell/command_volume_balance.go
index 162b66556..084d984df 100644
--- a/weed/shell/command_volume_balance.go
+++ b/weed/shell/command_volume_balance.go
@@ -287,6 +287,7 @@ func balanceSelectedVolume(commandEnv *CommandEnv, volumeReplicas map[uint32][]*
// no more volume servers with empty slots
break
}
+ fmt.Fprintf(os.Stdout, "target ratio %.2f %s %.2f %s %.2f", idealVolumeRatio, fullNode.info.Id, fullNode.localVolumeRatio(capacityFunc), emptyNode.info.Id, emptyNode.localVolumeNextRatio(capacityFunc))
hasMoved, err = attemptToMoveOneVolume(commandEnv, volumeReplicas, fullNode, candidateVolumes, emptyNode, applyBalancing)
if err != nil {
return