public class OverloadShedder extends Object implements LoadSheddingStrategy
LocalBrokerData.getMaxResourceUsage(). A bundle
is recommended for unloading off that broker if and only if the following conditions hold: The broker has at
least two bundles assigned and the broker has at least one bundle that has not been unloaded recently according to
LoadBalancerSheddingGracePeriodMinutes. The unloaded bundle will be the most expensive bundle in terms of message
rate that has not been recently unloaded. Note that this strategy does not take into account "underloaded" brokers
when determining which bundles to unload. If you are looking for a strategy that spreads load evenly across
all brokers, see ThresholdShedder.| Constructor and Description |
|---|
OverloadShedder() |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.Multimap<String,String> |
findBundlesForUnloading(LoadData loadData,
ServiceConfiguration conf)
Attempt to shed some bundles off every broker which is overloaded.
|
public com.google.common.collect.Multimap<String,String> findBundlesForUnloading(LoadData loadData, ServiceConfiguration conf)
findBundlesForUnloading in interface LoadSheddingStrategyloadData - The load data to used to make the unloading decision.conf - The service configuration.Copyright © 2017–2022 Apache Software Foundation. All rights reserved.