Skip to content

Slow, or out of capacity ​

The server answers slowly, answers 5xx under load, or work piles up. Sizing rules are in Capacity.

Work piles up ​

What you see. joobqui_queue_size grows, or the Queues page shows a backlog that does not shrink.

What to do. In this order:

  1. Is the queue held back on purpose? A paused queue, a concurrency limit or a throttle looks exactly like slow workers. Check the Queues page.
  2. Is a worker serving it? The Workers page lists each worker's queues.
  3. Are the workers busy? If their slots are full, raise concurrency or run more processes: Scale workers.
  4. Is the server out of CPU while workers have free slots? Add an instance: Scale the server.
  5. Is Redis out of CPU? It runs commands on one core. More instances and more workers do not help; a faster Redis does.

Errors only under load ​

What you see. 500 or 503 answers that go away when the load falls; the log names a connection pool or a timeout.

Why. A request waited longer than the pool allows for a free connection: 5 seconds for PostgreSQL (JOOBQUI_DB_CHECKOUT_TIMEOUT), 2 seconds for Redis (REDIS_POOL_TIMEOUT).

What to do. Raise the pool that ran out (JOOBQUI_DB_POOL_SIZE, REDIS_POOL_SIZE), keeping instances × pool size under what PostgreSQL (max_connections) and Redis (maxclients) allow. If the database itself is slow, a larger pool only moves the queue.

PostgreSQL refuses connections: "too many clients" ​

Instances × JOOBQUI_DB_POOL_SIZE (20 by default), plus command-line tasks and everything else that uses the database, exceed max_connections. Lower the pool size or raise the limit.

Redis is full ​

What you see. Writes fail with OOM command not allowed, and the API answers 503 unavailable.

Why. Redis reached maxmemory under the noeviction policy. That is the right policy: the alternative is silently dropped jobs.

What to do. Give Redis more memory, then stop it filling up: dead letters and finished workflows are kept for ever unless JOOBQUI_DLQ_RETENTION_DAYS and JOOBQUI_WORKFLOW_RETENTION_DAYS are set (Backups and retention).

503 unavailable ​

Redis or the audit log did not answer, or too many live connections are open. Check Redis first (./joobqui doctor). A critical change (tokens, roles, a second factor) is refused with 503 when its audit row cannot be written: check PostgreSQL.

Alerts are sent twice, or not at all ​

Across all instances, sum(joobqui_leader{role="alerts"}) must be 1. A sum of 0 for more than a minute means no instance holds the lease: check that the instances reach Redis, and that not all of them have JOOBQUI_ALERT_NOTIFICATIONS=off.

An acknowledged alert comes back, or acknowledging answers 404 ​

Alert state is kept per instance: the acknowledgement went to another instance than the one that raised the alert. Send console traffic to one instance: see Scale the server.

/metrics lists only some queues ​

At most 200 queues are listed per scrape; joobqui_metrics_truncated is 1 beyond that.

Audit streaming does not deliver ​

What you see. Nothing reaches the SIEM, events arrive twice, or delivery stopped.

Why and what to do.

You seeWhyDo
Nothing arrivesNo Enterprise licence, URL or token missing, or no instance holds the lease joobqui:lease:siem. The first start sends only new events.Check Settings → Audit streaming and GET /api/v1/capabilities (siem_streaming); then joobqui:siem:stats in Redis.
Events arrive twiceA crash, or another instance taking over, resent the last batch.Dedupe on the event id.
It stoppedlast_error in joobqui:siem:stats: a refused URL (http, an address inside your network) or a 4xx (token, path) retries every 5 minutes.Fix the setting; the next try follows within 5 minutes. A non-zero joobqui:siem:dropped means the backlog overflowed and events were skipped.

How it works: Audit streaming to a SIEM.