Skip to content

Commit

Permalink
[improve] [broker] make system topic distribute evenly. (apache#22953)
Browse files Browse the repository at this point in the history
(cherry picked from commit 263c694)
(cherry picked from commit 2c1fb16)
  • Loading branch information
thetumbled authored and srinath-ctds committed Jul 1, 2024
1 parent 659896e commit c404e19
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,9 @@ Optional<String> selectBroker(final ServiceUnitId serviceUnit) {
brokerToNamespaceToBundleRange, brokerToFailureDomainMap);

// distribute bundles evenly to candidate-brokers if enable
if (conf.isLoadBalancerDistributeBundlesEvenlyEnabled()) {
// or system-namespace bundles
if (conf.isLoadBalancerDistributeBundlesEvenlyEnabled()
|| serviceUnit.getNamespaceObject().equals(NamespaceName.SYSTEM_NAMESPACE)) {
LoadManagerShared.removeMostServicingBrokersForNamespace(bundle,
brokerCandidateCache,
brokerToNamespaceToBundleRange);
Expand Down

0 comments on commit c404e19

Please sign in to comment.