Interface LoadSheddingStrategy
- All Known Implementing Classes:
DeviationShedder,OverloadShedder,ThresholdShedder,UniformLoadShedder
public interface LoadSheddingStrategy
Load management component which determines the criteria for unloading bundles.
-
Method Summary
Modifier and TypeMethodDescriptionfindBundlesForUnloading(LoadData loadData, org.apache.pulsar.broker.ServiceConfiguration conf) Recommend that all of the returned bundles be unloaded.default voidonActiveBrokersChange(Set<String> activeBrokers) Triggered when active broker changes.
-
Method Details
-
findBundlesForUnloading
com.google.common.collect.Multimap<String,String> findBundlesForUnloading(LoadData loadData, org.apache.pulsar.broker.ServiceConfiguration conf) Recommend that all of the returned bundles be unloaded.- Parameters:
loadData- The load data to used to make the unloading decision.conf- The service configuration.- Returns:
- A map from all selected bundles to the brokers on which they reside.
-
onActiveBrokersChange
Triggered when active broker changes.- Parameters:
activeBrokers- active Brokers
-