Skip to content

Operations

Runbooks

What to do when an alert fires.

Atlas API availability

Use this runbook when AtlasAPIAvailabilitySLOBurn or AtlasAPIRateLimited fires.

  1. Check whether the alert is isolated to one node or affects all nodes: compare atlas:http_availability:ratio5m and up{job="atlas"} by node.
  2. Inspect atlas_http_requests_total grouped by route and status code. A rise in 401 points to credentials; 429 points to client rate limits; 5xx points to handler, storage, or dependency failures.
  3. Check node readiness and recent structured API logs. Confirm the SQLite volume is mounted and the process can write to its data directory.
  4. For 429s, identify the client and its trusted-proxy path before changing ATLAS_RATE_LIMIT_RPS or ATLAS_RATE_LIMIT_BURST. Do not disable auth or rate limiting to silence the alert.
  5. After remediation, verify readiness and confirm the 5-minute availability ratio returns above 99%.

Useful checks: GET /readyz, GET /metrics, and authenticated GET /v1/members from the affected node.

Atlas API latency

Use this runbook when AtlasAPILatencySLOBurn fires.

  1. Identify the affected node and route in the alert labels. Compare p50 and p95 from atlas_http_request_duration_seconds across nodes.
  2. Check CPU, memory, SQLite volume latency, request rates, and storage error logs on the affected node.
  3. For registry routes, inspect record count and compare SQLite query latency; for /v1/events, check subscriber count and client disconnects.
  4. Compare probe RTT and Lifeguard local health score. A busy or overloaded node can raise both API and gossip latency.
  5. Restore capacity or address the slow dependency, then confirm route p95 is below 500 ms for at least 10 minutes.

Do not raise the alert threshold until a measured product SLO change has been approved and recorded.

Atlas membership health

Use this runbook when a membership, probe-timeout, or broadcast-queue alert fires.

  1. Compare atlas_membership_members across nodes. A disagreement may be a real partition; first check node scrape health and the gossip network.
  2. Inspect packet rejection reasons, probe RTT, timeout rate, local health score, and queue drops. Clock-skew or decrypt rejects often indicate misconfigured keys or clocks.
  3. Verify UDP and TCP port 7946 are reachable between peers. Check Kubernetes NetworkPolicy, cloud firewall, DNS seeds, and advertised addresses.
  4. For a partition, restore connectivity and allow TCP push-pull anti-entropy to converge. Avoid manually deleting SQLite tombstones or changing incarnation values.
  5. Confirm all surviving nodes converge on the same alive-member count and that queue drops and probe timeouts return to baseline.

For persistent failure, collect node logs, /metrics, advertised addresses, and a copy of each node's database before making state changes.

Improve this pageSource: docs/runbooks/atlas-api-availability.md, docs/runbooks/atlas-api-latency.md, docs/runbooks/atlas-membership.md