Package org.apache.druid.server
Interface QueryLaningStrategy
- All Known Implementing Classes:
HiLoQueryLaningStrategy,ManualQueryLaningStrategy,NoQueryLaningStrategy
public interface QueryLaningStrategy
-
Method Summary
Modifier and TypeMethodDescriptioncomputeLane(QueryPlus<T> query, Set<SegmentServerSelector> segments) For a givenQueryPlusand set ofSegmentServerSelector, compute if a query belongs to a lane This method must be thread safedefault intcomputeLimitFromPercent(int totalLimit, int value) it.unimi.dsi.fastutil.objects.Object2IntMap<String>getLaneLimits(int totalLimit) Provide a map of lane names to the limit on the number of concurrent queries for that lane
-
Method Details
-
getLaneLimits
Provide a map of lane names to the limit on the number of concurrent queries for that lane- Parameters:
totalLimit-
-
computeLane
For a givenQueryPlusand set ofSegmentServerSelector, compute if a query belongs to a lane This method must be thread safe -
computeLimitFromPercent
default int computeLimitFromPercent(int totalLimit, int value)
-