1. Introduction to Chaos Engineering
Chaos engineering is an experimental methodology for distributed systems that aims to build confidence in a system’s ability to withstand unpredictable production conditions.
2. Chaos Mesh Practice
We built a complete chaos engineering platform based on Chaos Mesh, covering fault injection across network, Pod, and node dimensions.
Core Example: Network Delay Fault Injection
apiVersion: chaos-mesh.org/v1alpha1
kind: NetworkChaos
metadata:
name: network-delay
spec:
action: delay
mode: one
selector:
namespaces: ["production"]
labelSelectors:
app: payment-service
delay:
latency: "500ms"
jitter: "100ms"
duration: "5m"