M7-S1 — From symptom to runbook
Section titled “M7-S1 — From symptom to runbook”| Module | M7 — Incidents |
| After this session you can | Go from a vague report to the right runbook by asking where the request stops and which store it needs, and act safely when you get there. |
| Time | Facilitated: 26 min · On your own: 26 min |
| Before you start | Modules 1 to 6. Your inventory.md: the inventory, smoke test and gateway triage notes. |
| Go deeper | Operational runbooks · Runbooks: incident quick-reference |
◆ Orientation (1 min) — Incidents arrive as sentences
Section titled “◆ Orientation (1 min) — Incidents arrive as sentences”Nobody reports “the indexing consumer lost its channel”. They report “search is wrong”, “nobody got the approval email”, “it’s slow”. Your job is to turn the sentence into a place, the place into a store, and the store into a written procedure, without making it worse on the way. This session gives you the method and the catalogue; M7-S2 is the drill.
▤ Concept (6 min) — The method, the catalogue and the rules
Section titled “▤ Concept (6 min) — The method, the catalogue and the rules”The method
Section titled “The method”- Scope. One person, one space, or everyone? Since when? What changed then (an upgrade, a values change, a datastore patch)?
- Layer. Where does the request stop? Nothing loads (ingress, DNS); an error envelope from the
gateway (M3-S2); a
5xxfrom an application; or everything works but happens late (the bus, background jobs). - State store. Which store does that layer depend on? The gateway on Redis; records on MongoDB; follow-up work on RabbitMQ; search indexing on its job queues in Redis; scheduled work on the scheduler’s jobs in MongoDB.
- Stabilise. Stop the harm before you fix the cause: roll back a bad release (M2-S3), switch off a failing optional check, isolate one application.
- Fix the cause with the runbook for that store.
- Verify with the smoke test and the metric that showed the problem.
- Write it down: what, when, what you did and at what time, what you will change.
flowchart TD
S["Symptom"] --> L{"Where does it stop?"}
L -->|"Gateway error envelope"| G["Read the code (M3-S2):<br/>Redis, identity, or admin records"]
L -->|"Application 5xx / not ready"| A["Pod health and logs (M5):<br/>rollback, or isolate the application"]
L -->|"Works, but late"| Q{"Which queue?"}
Q -->|"A bus queue or dead-letter queue"| B["Bus runbooks:<br/>consumers, replay"]
Q -->|"Indexing backlog"| X["Restart indexing,<br/>reindex"]
Q -->|"Scheduled jobs not firing"| K["Clear stuck locks"]
L -->|"Sign-in never completes"| H["Human verification outage (M4-S1)"]
What to notice: the first question is never “which pod do I restart?” It is “where does the request stop?”, and the answer usually names the runbook.
The runbook catalogue
Section titled “The runbook catalogue”| Symptom | Likely cause | Runbook |
|---|---|---|
| Search results stale after changes | Indexing consumer down or events missed | Restart workers, then reindex: re-save the entity to force its indexes, and watch osos_queue_depth fall |
Messages piling up in a …-dead-letter queue | Poison messages, or a downstream outage | Replay the bus: inspect a sample, fix the cause, then move the messages back in small batches, or purge true poison |
| A service queue with no consumer; logs say reconnection failed | Broker, credentials or virtual host | Fix the broker; then restart workers so they bind again |
| Scheduled reminders or timers stopped though the scheduler runs | A job lock outlived the pod that held it | Clear stuck locks (below) |
helm upgrade failed at the migration | A migration script errored | Migration recovery (M2-S3): read the Job log, fix, upgrade again |
| One application misbehaves inside a combined pod | Co-location, or the in-process transport | Combined-pod rollback ladder (below) |
| Nobody can complete sign-in | Human verification fails closed | Identity sign-in outage (M4-S1) |
| Render fails after enabling autoscaling | Requests missing | Autoscaling render failure (M6-S1) |
READONLY errors after a Redis failover | Clients still on the old master | Redis master demoted (M6-S2) |
Scheduled jobs. The platform’s timed work (reminders, timers, recurring automations) is held by
the scheduler as job documents in its own MongoDB database (agendaJobs). A pod running a job stamps
it with a lock time; if the pod dies, the lock outlives it until its lease expires. Clearing locks
older than 15 minutes, after you have confirmed no live scheduler is running them, releases those
jobs: in mongosh on the scheduler’s database,
db.agendaJobs.updateMany({lockedAt: {$lt: new Date(Date.now() - 15*60*1000)}}, {$unset: {lockedAt: ""}}).
Indexing’s background jobs recover on their own after a restart; never delete their keys in Redis by
hand.
The rollback ladder for combined pods
Section titled “The rollback ladder for combined pods”There is no separate Deployment to fall back to for the twelve hosted applications (M1-S1). Two values-only rungs remain, smallest first:
- Back out the transport only:
core.<pod>.inProcess.enabled: false(or a list ofcaller->targetedges underinProcess.keepOnHttp). Calls between applications in that pod go back over HTTP; only that pod restarts. Use it first when a fault might be in the in-process dispatch. - Give one application a pod of its own (M6-S1): isolate a leaking or overloaded application without touching the others.
Verify each rung: the pod ready, the application’s Service with a ready endpoint, and the smoke test.
The safety rules
Section titled “The safety rules”- Back up before anything that writes to a datastore (M4-S3), and record where the backup is.
- Look before you change: read a sample of the dead-letter queue, list the locks, read the migration log.
- Smallest step first, one change at a time, and watch the effect before the next.
- Never:
FLUSHALLa shared Redis, delete a retired encryption key, deploy an older image to “undo” a migration, or delete queues to make an alert go quiet. - Write the times down as you go; the incident note is built from them.
▶ Guided demo (12 min) — The first rung of the ladder
Section titled “▶ Guided demo (12 min) — The first rung of the ladder”Starting state. The release healthy; core-rest dispatching in process (M5-S1 showed
core_inproc_dispatch_total counting).
- In
nw-values.yaml, undercore.rest, addinProcess: { enabled: false }. - Upgrade:
helm upgrade nw ./osos -n northwind $values --wait --timeout 15m. Watchkubectl -n northwind get pods: onlycore-restrestarts. Its siblingcore-dataand every other workload keep running. - Confirm the switch reached the pod:
kubectl -n northwind exec deploy/nw-osos-core-rest -- printenv CORE_INPROC_DISABLEprintsall. - Use the portal for a minute, then read the admin metrics (port-forward 9900 as in M5-S1):
core_inproc_dispatch_totalno longer increases. The applications still answer, over HTTP. - Run the product part of your smoke test.
- Climb back down: remove the
inProcessline, upgrade again, and see the counter move again.
What to notice: the rung changed how applications talk, not where they run: no Service moved, no queue or database changed, and only one pod restarted each time.
✓ Practice (6 min) — Check your understanding
Section titled “✓ Practice (6 min) — Check your understanding”“Since this morning, nobody gets the approval emails, but the approvals themselves work.” Where do you look first?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
workflow-service-queue-dead-letter holds 400 messages after a two-hour outage of a system that
workflow steps call. The outside system is back. What is the safe order?
Check your answer
The correct answer is C. Open the explanation under each option to see why.
After a node failure last night, recurring reminders have not fired since, although the scheduler pod runs and its logs are quiet. What is the likely cause and the runbook?
Check your answer
The correct answer is A. Open the explanation under each option to see why.
After an upgrade, the reaction application inside core-rest leaks memory and the pod restarts
every hour, taking ten healthy applications with it. Which rung do you reach for?
Check your answer
The correct answer is C. Open the explanation under each option to see why.
Search is stale. A colleague suggests running FLUSHALL on Redis “to reset the indexing queues”.
What do you say?
Check your answer
The correct answer is A. Open the explanation under each option to see why.
↺ Recap (1 min) — A method, not a guess
Section titled “↺ Recap (1 min) — A method, not a guess”You can turn a reported sentence into a layer, a store and a runbook, apply the safety rules before anything that writes, and use the combined-pod ladder from its smallest rung.
Next. In M7-S2 you put it under pressure: three incidents on your lab release, each with a symptom, a time limit and an incident note.