Skip to main content
For the complete documentation index for agents and LLMs, see llms.txt.

Monitor and Debug a Service

Find slow or failing runs, see how a query moved through the pipeline, and check whether the service has enough CPU and memory.


Prerequisites​

Trace and Debug Queries​

A trace is the record of one query's run. It shows each component that ran, its inputs and outputs, its duration, and any errors, so you can find where a run slowed down or failed.

  1. In Haystack Enterprise Platform, click Gateway in the navigation and open the service.
  2. Click Traces.
  3. Open a trace to inspect its steps.

Tracing works the same as for pipelines. For details on reading and filtering traces, see Trace with Built-In Traces.

Slow Queries or Pending Errors After a Start or Switch​

If queries are slow, a stream shows only ping events with phase set to cold_start, or queries fail with Too many pending requests for this version right after an activation or a revision switch, the replicas are probably still loading the pipeline. Send test queries to warm the service, wait until they answer at normal speed, and retry. If queries still fail or stay slow, open a trace to find the slow component. For the steps, see What Min Replicas Guarantees.

What To Do Next​