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
  • Loading branch information
thetumbled authored Jun 24, 2024
1 parent ddb03bb commit 263c694
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,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 263c694

Please sign in to comment.