Skip to content
ModuleM7 — Incidents
After this session you canGo 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.
TimeFacilitated: 26 min · On your own: 26 min
Before you startModules 1 to 6. Your inventory.md: the inventory, smoke test and gateway triage notes.
Go deeperOperational 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”
  1. Scope. One person, one space, or everyone? Since when? What changed then (an upgrade, a values change, a datastore patch)?
  2. Layer. Where does the request stop? Nothing loads (ingress, DNS); an error envelope from the gateway (M3-S2); a 5xx from an application; or everything works but happens late (the bus, background jobs).
  3. 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.
  4. 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.
  5. Fix the cause with the runbook for that store.
  6. Verify with the smoke test and the metric that showed the problem.
  7. 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.

SymptomLikely causeRunbook
Search results stale after changesIndexing consumer down or events missedRestart workers, then reindex: re-save the entity to force its indexes, and watch osos_queue_depth fall
Messages piling up in a …-dead-letter queuePoison messages, or a downstream outageReplay 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 failedBroker, credentials or virtual hostFix the broker; then restart workers so they bind again
Scheduled reminders or timers stopped though the scheduler runsA job lock outlived the pod that held itClear stuck locks (below)
helm upgrade failed at the migrationA migration script erroredMigration recovery (M2-S3): read the Job log, fix, upgrade again
One application misbehaves inside a combined podCo-location, or the in-process transportCombined-pod rollback ladder (below)
Nobody can complete sign-inHuman verification fails closedIdentity sign-in outage (M4-S1)
Render fails after enabling autoscalingRequests missingAutoscaling render failure (M6-S1)
READONLY errors after a Redis failoverClients still on the old masterRedis 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.

There is no separate Deployment to fall back to for the twelve hosted applications (M1-S1). Two values-only rungs remain, smallest first:

  1. Back out the transport only: core.<pod>.inProcess.enabled: false (or a list of caller->target edges under inProcess.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.
  2. 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.

  • 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: FLUSHALL a 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).

  1. In nw-values.yaml, under core.rest, add inProcess: { enabled: false }.
  2. Upgrade: helm upgrade nw ./osos -n northwind $values --wait --timeout 15m. Watch kubectl -n northwind get pods: only core-rest restarts. Its sibling core-data and every other workload keep running.
  3. Confirm the switch reached the pod: kubectl -n northwind exec deploy/nw-osos-core-rest -- printenv CORE_INPROC_DISABLE prints all.
  4. Use the portal for a minute, then read the admin metrics (port-forward 9900 as in M5-S1): core_inproc_dispatch_total no longer increases. The applications still answer, over HTTP.
  5. Run the product part of your smoke test.
  6. Climb back down: remove the inProcess line, 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”
PracticeChoose one answer.

“Since this morning, nobody gets the approval emails, but the approvals themselves work.” Where do you look first?

  1. Explanation for A

    ✗ Incorrect

    Not this one: the approvals work, so requests pass the gateway; the problem is in what happens after. See The method.

  2. Explanation for B

    ✓ Correct

    Correct: “works, but something happens late or never” points to the bus and the work it carries. See The method.

  3. Explanation for C

    ✗ Incorrect

    Not this one: approvals are saved, so MongoDB is answering. See The method.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

PracticeChoose one answer.

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?

  1. Explanation for A

    ✗ Incorrect

    Not this one: replay in small batches and watch the logs, so a remaining fault does not send everything back to the dead-letter queue. See The runbook catalogue.

  2. Explanation for B

    ✗ Incorrect

    Not this one: these are real workflow steps that never ran; purging loses them. See The runbook catalogue.

  3. Explanation for C

    ✓ Correct

    Correct: look before you change, smallest step first. See The safety rules.

Check your answer

The correct answer is C. Open the explanation under each option to see why.

PracticeChoose one answer.

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?

  1. Explanation for A

    ✓ Correct

    Correct: a lock that outlives its pod blocks the job until it is released. See The runbook catalogue.

  2. Explanation for B

    ✗ Incorrect

    Not this one: replicas add availability, not throughput, and would not release the locks. See The runbook catalogue.

  3. Explanation for C

    ✗ Incorrect

    Not this one: scheduled jobs are held by the scheduler in MongoDB, not in a bus queue. See The runbook catalogue.

Check your answer

The correct answer is A. Open the explanation under each option to see why.

PracticeChoose one answer.

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?

  1. Explanation for A

    ✗ Incorrect

    Not this one: that option no longer exists; the chart refuses it. See The rollback ladder.

  2. Explanation for B

    ✗ Incorrect

    Not this one: that suits a fault in how applications call each other, not a leak inside one application. See The rollback ladder.

  3. Explanation for C

    ✓ Correct

    Correct: isolating the leaking application protects the rest while you work on the cause. See The rollback ladder.

Check your answer

The correct answer is C. Open the explanation under each option to see why.

PracticeChoose one answer.

Search is stale. A colleague suggests running FLUSHALL on Redis “to reset the indexing queues”. What do you say?

  1. Explanation for A

    ✓ Correct

    Correct: never flush a shared Redis; the reindex runbook is the safe lever. See The safety rules.

  2. Explanation for B

    ✗ Incorrect

    Not this one: the damage does not depend on the time of day. See The safety rules.

  3. Explanation for C

    ✗ Incorrect

    Not this one: the platform does not restore Redis from backups; and the flush is the wrong lever. See The safety rules.

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.