apache / druid

Apache Druid: a high performance real-time analytics database.
https://druid.apache.org/
Apache License 2.0
13.52k stars 3.71k forks source link

Datasource based exemption from deprioritization #17416

Open aruraghuwanshi opened 4 weeks ago

aruraghuwanshi commented 4 weeks ago

Description

As of today tthere isn't a way to define high/low priority datasources. There are situations where we want to deprioritize queries based on the already present time based thresholds, but its possible that the druid cluster might host datasources that are higher in priority compared to others. For this reason, I've added another Optional json parameter exemptDatasources, which would host those high-priority datasources, which will skip the deprioritization logic entirely if the query being executed hosts any of the exempted datasources.

Updated the class ThresholdBasedQueryPrioritizationStrategy.

This PR has:

maytasm commented 2 weeks ago

Just my 2c,