dragonls opened a new pull request #14971:
URL: https://github.com/apache/pulsar/pull/14971
### Motivation
If using
`loadBalancerLoadSheddingStrategy=org.apache.pulsar.broker.loadbalance.impl.ThresholdShedder`,
the unloaded bundles might be loaded by another broker which has resource
usage above average load, and make the new broker be overloaded or some other
bundles of the broker will be shed.
It could be much better to select the broker based on which one has resource
usage below average load.
### Modifications
- Add `loadBalancerLoadManagerStrategy` conf to support choose the load
manager strategy
- Add
`org.apache.pulsar.broker.loadbalance.impl.ThresholdLoadManagerStrategy`
### Verifying this change
- [ ] Make sure that the change passes the CI checks.
This change added tests and can be verified as follows:
- Add test
`org.apache.pulsar.broker.loadbalance.ModularLoadManagerStrategyTest#testThresholdLoadManagerStrategy`
### Documentation
Check the box below or label this PR directly (if you have committer
privilege).
Need to update docs?
- [ ] `doc-required`
- [ ] `no-need-doc`
- [ ] `doc`
--
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]