Skip to content

Commit

Permalink
simulating skipping requests when store-gateways are overloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
francoposa committed May 27, 2024
1 parent 64bfaaf commit 14a1429
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions development/mimir-microservices-mode/config/mimir.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ frontend:
cache_results: true
additional_query_queue_dimensions_enabled: true
shard_active_series_queries: true
max_outstanding_per_tenant: 10000

# Uncomment when using "dns" service discovery mode for query-scheduler.
# scheduler_address: "query-scheduler:9011"
Expand All @@ -163,6 +164,7 @@ query_scheduler:
# Change to "dns" to switch to query-scheduler DNS-based service discovery.
service_discovery_mode: "ring"
additional_query_queue_dimensions_enabled: true
max_outstanding_requests_per_tenant: 10000

limits:
# Limit max query time range to 31d
Expand Down
2 changes: 1 addition & 1 deletion pkg/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ func (s *Scheduler) QuerierLoop(querier schedulerpb.SchedulerForQuerier_QuerierL

if exceedsThreshold {
level.Info(s.requestQueue.Log).Log(
"msg", "experimental: querier worker connections in use by query component exceed utilization threshold. dropping request",
"msg", "experimental: querier worker connections in use by query component exceed utilization threshold. request dropped",
"query_component_name", queryComponentName,
"overloaded_query_component", queryComponent,
)
Expand Down

0 comments on commit 14a1429

Please sign in to comment.