Uses of Class
org.apache.pulsar.broker.loadbalance.impl.BundleRangeCache
Packages that use BundleRangeCache
-
Uses of BundleRangeCache in org.apache.pulsar.broker.loadbalance.impl
Methods in org.apache.pulsar.broker.loadbalance.impl with parameters of type BundleRangeCacheModifier and TypeMethodDescriptionstatic voidLoadManagerShared.filterAntiAffinityGroupOwnedBrokers(PulsarService pulsar, String assignedBundleName, Set<String> candidates, BundleRangeCache brokerToNamespaceToBundleRange, Map<String, String> brokerToDomainMap) It tries to filter out brokers which own namespace with same anti-affinity-group as given namespace.static CompletableFuture<Map<String,Integer>> LoadManagerShared.getAntiAffinityNamespaceOwnedBrokers(PulsarService pulsar, String namespaceName, BundleRangeCache brokerToNamespaceToBundleRange) It returns map of broker and count of namespace that are belong to the same anti-affinity group as given.static voidLoadManagerShared.removeMostServicingBrokersForNamespace(String assignedBundleName, Set<String> candidates, BundleRangeCache brokerToNamespaceToBundleRange) Removes the brokers which have more bundles assigned to them in the same namespace as the incoming bundle than at least one other available broker from consideration.static booleanLoadManagerShared.shouldAntiAffinityNamespaceUnload(String namespace, String currentBroker, PulsarService pulsar, BundleRangeCache brokerToNamespaceToBundleRange, Set<String> candidateBrokers) It checks if given anti-affinity namespace should be unloaded by broker due to load-shedding.