| Package | Description |
|---|---|
| org.apache.pulsar.broker.loadbalance |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.pulsar.broker.loadbalance.impl |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BrokerFilter.filter(Set<String> brokers,
BundleData bundleToAssign,
LoadData loadData,
ServiceConfiguration conf)
From the given set of available broker candidates, filter those using the load data.
|
com.google.common.collect.Multimap<String,String> |
LoadSheddingStrategy.findBundlesForUnloading(LoadData loadData,
ServiceConfiguration conf)
Recommend that all of the returned bundles be unloaded.
|
Set<String> |
BundleSplitStrategy.findBundlesToSplit(LoadData loadData,
PulsarService pulsar)
Determines which bundles, if any, should be split.
|
Optional<String> |
ModularLoadManagerStrategy.selectBroker(Set<String> candidates,
BundleData bundleToAssign,
LoadData loadData,
ServiceConfiguration conf)
Find a suitable broker to assign the given bundle to.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BrokerVersionFilter.filter(Set<String> brokers,
BundleData bundleToAssign,
LoadData loadData,
ServiceConfiguration conf)
From the given set of available broker candidates, filter those using the version numbers.
|
static void |
LoadManagerShared.filterBrokersWithLargeTopicCount(Set<String> brokerCandidateCache,
LoadData loadData,
int loadBalancerBrokerMaxTopics)
It filters out brokers which owns topic higher than configured threshold at
ServiceConfiguration.loadBalancerBrokerMaxTopics. |
com.google.common.collect.Multimap<String,String> |
ThresholdShedder.findBundlesForUnloading(LoadData loadData,
ServiceConfiguration conf) |
com.google.common.collect.Multimap<String,String> |
OverloadShedder.findBundlesForUnloading(LoadData loadData,
ServiceConfiguration conf)
Attempt to shed some bundles off every broker which is overloaded.
|
com.google.common.collect.Multimap<String,String> |
DeviationShedder.findBundlesForUnloading(LoadData loadData,
ServiceConfiguration conf)
Recommend that all of the returned bundles be unloaded based on observing excessive standard deviations according
to some metric.
|
Set<String> |
BundleSplitterTask.findBundlesToSplit(LoadData loadData,
PulsarService pulsar)
Determines which bundles should be split based on various thresholds.
|
com.github.zafarkhaja.semver.Version |
BrokerVersionFilter.getLatestVersionNumber(Set<String> brokers,
LoadData loadData)
Get the most recent broker version number from the load reports of all the running brokers.
|
Optional<String> |
LeastLongTermMessageRate.selectBroker(Set<String> candidates,
BundleData bundleToAssign,
LoadData loadData,
ServiceConfiguration conf)
Find a suitable broker to assign the given bundle to.
|
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.