315157973 opened a new pull request, #17456:
URL: https://github.com/apache/pulsar/pull/17456
### Motivation
The existing ThresholdShedder has the following problems, for example:
There are 11 Brokers, of which 10 are loaded at 80% and 1 is loaded at 0%.
The average load is 80 * 10 / 11 = 72.73, and the threshold to unload is
72.73 + 10 = 82.73.
Since 80 < 82.73, unload will not be trigger, and there is one idle Broker
with load of 0%.
On the basis of ThresholdShedder, we adds the lower boundary judgment of the
load.
When 【current usage < average usage - threshold】, the broker with the
highest load will be triggered to unload
### Modifications
Support lower boundary shedding for ThresholdShedder
### Verifying this change
1. Does not affect the original ThresholdShedder
2. The new unit test can pass
### Documentation
- [ x ] `doc-required`
(Your PR needs to update docs and you will update later)
--
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]