lordcheng10 opened a new pull request #12471:
URL: https://github.com/apache/pulsar/pull/12471


   ### Motivation
   Consider a large cluster with multiple nodes. If most of the nodes are 
relatively balanced, but only a few nodes have extremely low load, then 
according to the current logic, it may not be possible to trigger the balancing 
action, eg:
   broke1 brokerAvgResourceUsage 80
   ......
   broker100 brokerAvgResourceUsage 80
   
   broker101 brokerAvgResourceUsage 10
   
   The calculated avgUsage=(80*100+10)/101=79 at this time, if the threshold is 
set to the default value of 10, then any broker will satisfy currentUsage 
<avgUsage + threshold, so that the balancing operation will not be triggered, 
so some load Low machines cannot be fully utilized.
   
   
   ### Modifications
   Here I define the equilibrium state as:
   avgUsage-threshold< currentUsage <avgUsage + threshold
   In this way, some nodes with extremely low load will not appear.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to