MCPcopy Create free account
hub / github.com/cortexproject/cortex / processQueriesOnSingleStream

Method processQueriesOnSingleStream

pkg/querier/worker/worker.go:84–84  ·  view source on GitHub ↗

Each invocation of processQueriesOnSingleStream starts new streaming operation to query-frontend or query-scheduler to fetch queries and execute them. This method must react on context being finished, and stop when that happens. processorManager (not processor) is responsible for starting as many

(ctx context.Context, conn *grpc.ClientConn, address string)

Source from the content-addressed store, hash-verified

82 //
83 // processorManager (not processor) is responsible for starting as many goroutines as needed for each connection.
84 processQueriesOnSingleStream(ctx context.Context, conn *grpc.ClientConn, address string)
85
86 // notifyShutdown notifies the remote query-frontend or query-scheduler that the querier is
87 // shutting down.

Callers 3

concurrencyMethod · 0.65

Implementers 3

schedulerProcessorpkg/querier/worker/scheduler_processor
frontendProcessorpkg/querier/worker/frontend_processor.
mockProcessorpkg/querier/worker/worker_test.go

Calls

no outgoing calls