← All Learning Paths

Chaos Engineering Specialist

Break things on purpose: fault injection, blast-radius control, steady-state hypotheses, resilience budgets, and graceful degradation that actually degrades.

technicaladvanced8 nodes11.33h total

Path overview

混沌工程不是随机杀进程,而是带稳态假设的受控实验。本路径从故障注入方法与爆炸半径控制讲起,覆盖黄金信号与韧性预算的度量基础,再落地四类注入配方与降级兜底,收尾于完整实验工作流。

Chaos engineering is not random process killing; it is controlled experiments with steady-state hypotheses. This path covers injection methods, blast radius, golden signals, budgets, and fallbacks.

  1. Compare "Steady state before chaos" with "Hypotheses worth testing" in "How to Run Failure Injection Drills" and state which trade-off you would accept in chaos code.

    Completion criteria: Record a short walkthrough of "How to Run Failure Injection Drills" with timestamps at "Steady state before chaos" and "Hypotheses worth testing", plus the commit that applies it.

    Next step: Add Latency Fault Injection for Resilience Tests

    ⏱ 1h

  2. Execute "Add Latency Fault Injection for Resilience Tests" end to end, then repeat the last step with one parameter changed and compare "Test how the service behaves when a dependency or handler is slow, without changing".

    Prerequisites: How to Run Failure Injection Drills

    Completion criteria: Run the steps through "Test how the service behaves when a dependency or handler is slow, without changing", paste the command output, and mark the line that matches "Only an explicitly authorized test request is delayed; normal requests are unaffected."; then rerun with one parameter changed.

    Next step: Inject an Error Rate Into a Dependency

    ⏱ 0.5h

  3. Run "Every tenth-call window contains three failures, and calling /faults/off stops injection" from "Inject an Error Rate Into a Dependency" and confirm the documented result "Inject failures deterministically so exactly thirty percent of calls fail.".

    Prerequisites: Add Latency Fault Injection for Resilience Tests

    Completion criteria: Deliver a transcript of "Inject an Error Rate Into a Dependency" with each step's command and observed state, ending at "Every tenth-call window contains three failures, and calling /faults/off stops injection".

    Next step: Inject Timeouts at the Dependency Boundary

    ⏱ 0.5h

  4. Apply "Inject Timeouts at the Dependency Boundary" to a chaos task, checking that "The call rejects with a TimeoutError after about two seconds instead of waiting for the OS" appears after the "Prove that a slow dependency triggers the timeout handler instead of hanging the request or" step.

    Prerequisites: Inject an Error Rate Into a Dependency

    Completion criteria: Run "Inject Timeouts at the Dependency Boundary" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Add a Graceful Degradation Fallback

    ⏱ 0.5h

  5. Execute "Add a Graceful Degradation Fallback" end to end, then repeat the last step with one parameter changed and compare "Keep a critical read path usable when a non-critical dependency is unavailable, instead of".

    Prerequisites: Inject Timeouts at the Dependency Boundary

    Completion criteria: Run the steps through "Keep a critical read path usable when a non-critical dependency is unavailable, instead of", paste the command output, and mark the line that matches "A failed recommendations call returns cached or empty items instead of throwing."; then rerun with one parameter changed.

    Next step: Run a Controlled Chaos Experiment

    ⏱ 0.5h

  6. Follow "Run a Controlled Chaos Experiment" and record "Learn whether a specific failure is handled as designed, with a bounded experiment that" at the step where it should appear, using "The hypothesis is falsifiable with a metric and a time window." as the check.

    Prerequisites: Add a Graceful Degradation Fallback

    Completion criteria: Record the state "Learn whether a specific failure is handled as designed, with a bounded experiment that" at the verification step, then paste the output of "The hypothesis is falsifiable with a metric and a time window." that proves it.

    Next step: Estimate Blast Radius of a Fault Injection

    ⏱ 1h

  7. Turn JSON object: { requestsPerMinute, injections: [{ dependency, percent into {affectedPerMinute:[{dependency:db,requests:100}],expectedFailures:100 by completing "Estimate Blast Radius of a Fault Injection" with a reproducible script and a failing-case note.

    Prerequisites: Run a Controlled Chaos Experiment

    Completion criteria: Show the test run for "Estimate Blast Radius of a Fault Injection" with two passing samples and one deliberately failing input, with the expected error.

    Next step: Capstone: Chaos Engineering Specialist

    ⏱ 0.33h

  8. Build "Build a Circuit Breaker Proxy" through its phases, keeping "Error-rate trip with sliding window" independently testable.

    Prerequisites: Run a Controlled Chaos Experiment, Estimate Blast Radius of a Fault Injection

    Completion criteria: Run the project's test command for "Build a Circuit Breaker Proxy", paste the passing output, and attach the acceptance note for "Error-rate trip with sliding window" with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h