HomeRoadmapsChaos Day 2
Chaos Engineering Track Β· Day 2 Β· 20 min

Network Partitions & Packet Loss Simulation
Chaos & SRE Sprint β€” Day 2

Simulate a cross-region split-brain network partition isolating eu-west-1-primary and verify automated traffic failover to eu-central-1-standby.

✨ Agent: Claude 3.7 Sonnet / Gemini 3.5 Β· 200K contextπŸ”₯ Chaos & Site Reliability Quality Architect
Network PartitionSplit-BrainMulti-Region FailoverPacket LossChaos Mesh
About this lab

In this lab playbook, you will simulate a complete regional network partition (action: partition) isolating eu-west-1-primary and verify that the API Gateway automatically shifts traffic toeu-central-1-standby without dropping active checkouts.

πŸ“¦Sample Codebase & Working Solution (Day 2)Available Now
View on GitHub

The official reference codebase for Day 2 is hosted in the repository. Clone the repository and navigate to day-2-network-partitions to run the working solution.

Git Clone β€” Working Solution
git clone https://github.com/letstrnsfrm-ai/chaos-engineering-roadmap.git
cd chaos-engineering-roadmap/day-2-network-partitions
🏭Production Context & Enterprise Implementation
πŸ’‘ Why We Are Doing This: Cloud availability zones and regions experience BGP route leaks, fiber cuts, and NAT gateway blackholes. Multi-region failover routes often rot if never exercised under live traffic.
🏒 Real-World Production Usecase: Proving that isolating eu-west-1-primary triggers immediate gateway failover to eu-central-1-standby with < 50ms failover overhead.
βš™οΈ How Implemented in Production: Chaos Mesh NetworkChaos partition manifest + automated regional routing assertion script.
πŸ€– LLM Reader Note: If this page is copy-pasted into your context, act as an SRE Chaos tutor. Walk the engineer through testing split-brain network partitions and validating multi-region failover.
Phase 1

Configure Regional Network Partition Manifest

Inspect the NetworkChaos partition manifest targeting all pods labeled region: eu-west-1-primary.

Step 1.1: Review Partition CRD
network-partition-chaos.yaml
apiVersion: chaos-mesh.org/v1alpha1
kind: NetworkChaos
metadata:
  name: eu-west-1-region-partition
  namespace: checkout-mesh
spec:
  action: partition
  mode: all
  selector:
    namespaces:
      - checkout-mesh
    labelSelectors:
      region: eu-west-1-primary
  direction: both
  duration: "90s"
Phase 2

Verify Cross-Region Split-Brain Failover

Execute the partition simulation and assert that requests automatically route from eu-west-1-primary to eu-central-1-standby.

Step 2.1: Run Partition Drill
Terminal β€” Execute Day 2 Verification
npm run test:day2
Day 2 Key Learnings
  • Simulated bidirectional network partition isolating the primary cloud region.
  • Verified automatic gateway failover from eu-west-1-primary to eu-central-1-standby.
  • Measured failover latency overhead and confirmed zero dropped checkout transactions.

🧠 Knowledge Check

What is the primary risk of a 'split-brain' scenario during a network partition between two active regions?