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: replica loss

Source docs/ops/game-days/replica-loss.md

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

A gateway replica dies (process killed, node lost, out of memory). Experiment: make chaos CHAOS=kill-replica.

Signals

  • ObspScrapeTargetDown (ticket) for the replica’s metrics endpoint, within about 5 minutes.
  • ObspAvailabilityBurnRate1h (page) if the probes of the public endpoint keep failing: on a single-replica deployment every probe fails while the replica is down.
  • Dashboards: API errors (5xx from the front for the gateway’s virtual host), SLO (availability burn rate), Ingest (batches per second drop to zero for that replica).
  • Nodes keep their batches in the outbox while the gateway is away (replay exits 3) and replay them later.

Expected behaviour

The TLS front answers for the dead replica promptly with a 5xx instead of holding the connection; other replicas and the other gateway keep answering; the replica restarts (restart policy, or the orchestrator) and replays its append-only store, so every entry recorded before the kill is served again; nodes’ outboxes drain once it is back.

Actions

  1. Confirm which replica: docker compose ps (stack) or the orchestrator’s view; read its last logs (docker compose logs --tail 200 gateway, or the log store filtered by service_name).
  2. If it did not restart by itself: docker compose start gateway (stack) or let the orchestrator reschedule it; for repeated crashes see ObspPodRestarting and incident-response.md.
  3. If the store did not replay (the replica answers but entries are missing): stop it and restore the store from the last backup (restore.md); never edit an append-only store by hand.
  4. If out of memory: capacity-scaling.md (the reference store is held in memory, OPS-GAP-01).

Exit criteria

The replica is healthy; obsp_gateway_store_entries is at least its value before the loss; a write is accepted; every node’s outbox is settled (obsp-node status); the availability burn-rate alerts have cleared.