Class ThresholdBasedQueryPrioritizationStrategy
- java.lang.Object
-
- org.apache.druid.server.scheduling.ThresholdBasedQueryPrioritizationStrategy
-
- All Implemented Interfaces:
QueryPrioritizationStrategy
public class ThresholdBasedQueryPrioritizationStrategy extends Object implements QueryPrioritizationStrategy
Lowers query priority when any of the configured thresholds is exceeded
-
-
Constructor Summary
Constructors Constructor Description ThresholdBasedQueryPrioritizationStrategy(String periodThresholdString, String durationThresholdString, Integer segmentCountThreshold, Integer adjustment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Optional<Integer>computePriority(org.apache.druid.query.QueryPlus<T> query, Set<SegmentServerSelector> segments)
-
-
-
Method Detail
-
computePriority
public <T> Optional<Integer> computePriority(org.apache.druid.query.QueryPlus<T> query, Set<SegmentServerSelector> segments)
- Specified by:
computePriorityin interfaceQueryPrioritizationStrategy
-
-