Problem & context
Chaos engineering tests distributed systems by deliberately introducing controlled failures — pod failures, network outages, resource exhaustion, I/O faults — to discover weaknesses before they hit users. For databases, failures can mean data loss, downtime and broken consistency.
Implementation
- Deployed a 3-node SQL Server Availability Group with TLS between replicas.
- Built a load-generating client (10% inserts, 10% updates, 80% reads) with a built-in data-loss check.
- Ran experiments: kill the primary pod; OOM-kill the primary under load; kill the sqlservr process; inject network latency and partitions; inject I/O latency and faults.
My contribution
- Designed the experiments, ran them, and published the results as a tutorial on the AppsCode blog.
Outcomes & impact
- A typical failover took ~5 seconds with no data loss.
- 7 minutes of high-concurrency load: 45,877 operations (36,695 reads, 4,586 inserts, 4,596 updates), 4.19 GB transferred, ~107 ops/sec, zero errors — all 508,600 rows intact.