Week 8: Chaos Engineering

Theme: Principles of chaos engineering, running experiments safely.

Learning Objectives

  1. Explain chaos engineering principles (steady state, hypothesis, blast radius)
  2. Run a chaos experiment with LitmusChaos
  3. Analyze system behavior under failure
  4. Write a game day plan

Reading Materials

Finger Exercises (choose 2)

  1. Install LitmusChaos in the kind cluster. Run a "pod-delete" experiment.
  2. Define a steady-state hypothesis: "The app maintains < 1% error rate when 1 pod is killed."
  3. Read about Netflix's Chaos Monkey and how they run game days internally.

Project

Design and run 3 chaos experiments on the Phase 1 app:

  1. Pod kill: Randomly kill the Go pod. Verify Grafana alerts fire.
  2. Network latency: Inject 2s latency between Go and Python services. Verify SLO burn rate alert triggers.
  3. CPU stress: Saturate CPU on the Python worker. Observe tracing spans showing increased duration.

For each experiment:

After all experiments, run a "game day" retrospective and write a one-page game day plan template.

Time Budget

ActivityTime
Reading1.5 hrs
Finger exercises1.5 hrs
Project3 hrs
Total6 hrs