Package org.apache.druid.server
Interface QueryLaningStrategy
-
- All Known Implementing Classes:
HiLoQueryLaningStrategy,ManualQueryLaningStrategy,NoQueryLaningStrategy
public interface QueryLaningStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <T> Optional<String>computeLane(org.apache.druid.query.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 Detail
-
getLaneLimits
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- Parameters:
totalLimit-
-
computeLane
<T> Optional<String> computeLane(org.apache.druid.query.QueryPlus<T> query, Set<SegmentServerSelector> segments)
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)
-
-