Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Learn
Start
Guides
Domain packs
Participants
Security and privacy
Pilot kits
Operations
Ecosystem

Game day: slow or unreachable database

Source docs/ops/game-days/slow-database.md

On this page
  1. Signals
  2. Expected behaviour
  3. Actions
  4. Exit criteria

A dependency a service writes through answers slowly or not at all. Experiment: make chaos CHAOS=slow-db (the fault proxy of the chaos profile adds 300 ms per packet, then cuts the connection). With the PostgreSQL data plane the proxy sits in front of the database (OBSP_CHAOS_DB_UPSTREAM); on a stack without one it sits in front of the first gateway.

Signals

  • ObspIngestLatencyBurnRate1h / ObspIngestLatencyP99 (page): batch p99 above 0.5 s.
  • ObspVerificationErrorsBurnRate1h (page) when the dependency is cut and requests fail with 5xx.
  • ObspGatewaySaturated (ticket): requests pile up in flight while each waits on the dependency.
  • Dashboards: Ingest (p99 with exemplars: open a slow trace and see where the time went), API errors.

Expected behaviour

Slow dependency: answers slow down by about the added latency and still succeed; requests in flight grow but stay bounded. Cut dependency: requests fail fast with 503 DEPENDENCY_UNAVAILABLE, retryable: true, and no request is held longer than its timeout; nothing is acknowledged that was not stored. Recovery needs no restart.

Actions

  1. Open an exemplar on the Ingest latency panel: the trace shows whether the time is spent in the store write, in verification or in queueing.
  2. Check the database’s own health and its connections (pool exhaustion looks like slowness).
  3. If saturated: shed load at the front (rate limits) before raising the service’s connection pool; a bigger pool against a slow database makes it slower.
  4. If the database is down: fail over per its own runbook; the services retry, nodes keep their batches.

Exit criteria

Batch p99 under 0.5 s for 30 minutes; no DEPENDENCY_UNAVAILABLE in the last 15 minutes; requests in flight back to their usual level; the ingest burn-rate alerts have cleared.