public class ThresholdShedder extends Object implements LoadSheddingStrategy
LocalBrokerData#getMaxResourceUsageWithWeight). The weights for each
resource are configurable. Historical observations are included in the running average based on the broker's
setting for loadBalancerHistoryResourcePercentage. Once the average resource usage is calculated, a broker's
current/historical usage is compared to the average broker usage. If a broker's usage is greater than the average
usage per broker plus the loadBalancerBrokerThresholdShedderPercentage, this load shedder proposes removing
enough bundles to bring the unloaded broker 5% below the current average broker usage. Note that recently
unloaded bundles are not unloaded again.| Constructor and Description |
|---|
ThresholdShedder() |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.Multimap<String,String> |
findBundlesForUnloading(LoadData loadData,
ServiceConfiguration conf)
Recommend that all of the returned bundles be unloaded.
|
public com.google.common.collect.Multimap<String,String> findBundlesForUnloading(LoadData loadData, ServiceConfiguration conf)
LoadSheddingStrategyfindBundlesForUnloading 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.