Foundations of Cloud Chaos & Fault Injection
Chaos & SRE Sprint β Day 1
Establish a formal Steady-State Hypothesis, author a Kubernetes Chaos Mesh NetworkChaos delay manifest, and empirically verify SLA compliance under injected 45ms + 10ms jitter latency.
In this lab playbook, you will assume the role of a Chaos & Site Reliability Quality Architect. Before running destructive faults against production microservices, every Chaos experiment must begin with a measurable Steady-State Hypothesis on our 3-tier target system:api-gateway β policy-engine β ledger-db.
The official reference codebase for Day 1 is hosted in the repository. Clone the repository and navigate to day-1-fault-injection to run the working solution.
git clone https://github.com/letstrnsfrm-ai/chaos-engineering-roadmap.git
cd chaos-engineering-roadmap/day-1-fault-injectionNetworkChaos manifest, and verifying latency resilience.Define Steady-State Hypothesis & Chaos Mesh CRD
Clone the reference repository and inspect the Steady-State Hypothesis contract and Kubernetes Chaos Mesh NetworkChaos manifest.
git clone https://github.com/letstrnsfrm-ai/chaos-engineering-roadmap.git
cd chaos-engineering-roadmap/day-1-fault-injection
cat sli-baseline.jsonapiVersion: chaos-mesh.org/v1alpha1
kind: NetworkChaos
metadata:
name: policy-engine-latency-injection
namespace: checkout-mesh
spec:
action: delay
mode: all
selector:
namespaces:
- checkout-mesh
labelSelectors:
app: policy-engine
delay:
latency: "45ms"
correlation: "50"
jitter: "10ms"
duration: "2m"Execute Fault Injection & Assert SLO Compliance
Run the empirical latency fault-injection harness against the Resilient Checkout Mesh and verify all checkout transactions remain within the 200ms P95 SLO.
cd ..
npm run test:day1- Defined a formal Steady-State Hypothesis (P95 <= 200ms, Success Rate >= 99.5%) prior to fault injection.
- Authored a Chaos Mesh NetworkChaos delay CRD with 45ms latency and 10ms jitter.
- Verified empirically that checkout transactions absorb downstream latency without breaching SLO thresholds.
π§ Knowledge Check
Why must every Chaos Engineering experiment define a quantitative Steady-State Hypothesis before injecting faults?