@@ -3014,14 +3014,17 @@ The `limits_config` configures default and per-tenant limits imposed by Cortex s
3014
3014
# CLI flag: -frontend.max-outstanding-requests-per-tenant
3015
3015
[max_outstanding_requests_per_tenant : <int> | default = 100]
3016
3016
3017
- # Number of reserved queriers to only handle high priority queue (either query
3018
- # frontend or query scheduler). If the value is between 0 and 1, it will be used
3019
- # as a percentage of per-tenant queriers.
3020
- # CLI flag: -frontend.reserved-high-priority-queriers
3021
- [reserved_high_priority_queriers : <float> | default = 0]
3017
+ # Configuration for query priority.
3018
+ query_priority :
3019
+ # Whether queries are assigned with priorities.
3020
+ [enabled : <boolean> | default = false]
3021
+
3022
+ # Priority assigned to all queries by default. Must be a unique value. Use
3023
+ # this as a baseline to make certain queries higher/lower priority.
3024
+ [default_priority : <int> | default = 1]
3022
3025
3023
- # List of query definitions to be treated as a high priority .
3024
- [high_priority_queries : <list of HighPriorityQuery > | default = []]
3026
+ # List of priority definitions.
3027
+ [priorities : <list of PriorityDef > | default = []]
3025
3028
3026
3029
# Duration to delay the evaluation of rules to ensure the underlying metrics
3027
3030
# have been pushed to Cortex.
@@ -4980,12 +4983,26 @@ otel:
4980
4983
[tls_insecure_skip_verify : <boolean> | default = false]
4981
4984
` ` `
4982
4985
4983
- ### ` HighPriorityQuery`
4986
+ ### ` PriorityDef`
4987
+
4988
+ ` ` ` yaml
4989
+ # Priority level. Must be a unique value.
4990
+ [priority: <int> | default = 2]
4991
+
4992
+ # Number of reserved queriers to handle this priority only. Value between 0 and
4993
+ # 1 will be used as a percentage.
4994
+ [reserved_queriers: <float> | default = 0]
4995
+
4996
+ # List of query attributes to assign the priority.
4997
+ [query_attributes: <list of QueryAttribute> | default = []]
4998
+ ` ` `
4999
+
5000
+ # ## `QueryAttribute`
4984
5001
4985
5002
` ` ` yaml
4986
5003
# Query string regex. If evaluated true (on top of meeting all other criteria),
4987
5004
# query is treated as a high priority.
4988
- [regex: <string> | default = ""]
5005
+ [regex: <string> | default = ".* "]
4989
5006
4990
5007
# If query range falls between the start_time and end_time (on top of meeting
4991
5008
# all other criteria), query is treated as a high priority.
0 commit comments