Skip to content

Commit

Permalink
remove experimental logging overutilized query components (#8689)
Browse files Browse the repository at this point in the history
  • Loading branch information
francoposa authored Jul 11, 2024
1 parent a3f2f64 commit 035a8c4
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions pkg/scheduler/queue/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,28 +364,6 @@ func (q *RequestQueue) trySendNextRequestForQuerier(waitingConn *waitingQuerierC
return false
}

{
// temporary observation of query component load balancing behavior before full implementation
schedulerRequest, ok := req.req.(*SchedulerRequest)
if ok {
queryComponentName := schedulerRequest.ExpectedQueryComponentName()
exceedsThreshold, queryComponent := q.QueryComponentUtilization.ExceedsThresholdForComponentName(
queryComponentName,
int(q.connectedQuerierWorkers.Load()),
q.queueBroker.tree.ItemCount(),
q.waitingQuerierConnsToDispatch.Len(),
)

if exceedsThreshold {
level.Info(q.log).Log(
"msg", "experimental: querier worker connections in use by query component exceed utilization threshold. no action taken",
"query_component_name", queryComponentName,
"overloaded_query_component", queryComponent,
)
}
}
}

reqForQuerier := requestForQuerier{
req: req.req,
lastTenantIndex: waitingConn.lastTenantIndex,
Expand Down

0 comments on commit 035a8c4

Please sign in to comment.