Class HiLoQueryLaningStrategy
java.lang.Object
org.apache.druid.server.scheduling.HiLoQueryLaningStrategy
- All Implemented Interfaces:
QueryLaningStrategy
Query laning strategy which associates all
Query with priority lower than 0 into a 'low' lane-
Field Summary
Fields -
Constructor Summary
Constructors -
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 safeit.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 laneMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.server.QueryLaningStrategy
computeLimitFromPercent
-
Field Details
-
LOW
- See Also:
-
-
Constructor Details
-
HiLoQueryLaningStrategy
-
-
Method Details
-
getLaneLimits
Description copied from interface:QueryLaningStrategyProvide a map of lane names to the limit on the number of concurrent queries for that lane- Specified by:
getLaneLimitsin interfaceQueryLaningStrategy
-
computeLane
Description copied from interface:QueryLaningStrategyFor a givenQueryPlusand set ofSegmentServerSelector, compute if a query belongs to a lane This method must be thread safe- Specified by:
computeLanein interfaceQueryLaningStrategy
-