Skip to content

Commit

Permalink
[improve] [broker] make system topic distribute evenly. (#22953)
Browse files Browse the repository at this point in the history
(cherry picked from commit 263c694)
  • Loading branch information
thetumbled authored and lhotari committed Jun 24, 2024
1 parent 07df550 commit 2c1fb16
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,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 2c1fb16

Please sign in to comment.