What is Chaos Mesh and what faults can it inject?
IntermediateConceptCapacity, Load Testing & Chaos Engineering
Answer
Chaos Mesh is a CNCF chaos platform for Kubernetes. A controller manager and a privileged chaos-daemon DaemonSet inject faults declared as CRDs:
PodChaos:pod-kill,pod-failure,container-kill.NetworkChaos:delay,loss,duplicate,corrupt,partition,bandwidth.StressChaos: CPU and memory stress.IOChaos,TimeChaos,DNSChaos,HTTPChaos,KernelChaos,JVMChaos.Schedulefor recurring experiments andWorkflowfor multi-step experiments.
apiVersion: chaos-mesh.org/v1alpha1
kind: PodChaos
metadata: {name: kill-one-checkout, namespace: shop}
spec:
action: pod-kill
mode: one
selector: {namespaces: [shop], labelSelectors: {app: checkout}}
More on Capacity, Load Testing & Chaos Engineering
What is capacity planning in SRE?BeginnerWhat is N+1 and N+2 redundancy for capacity?BeginnerHow do you calculate how many instances you need?IntermediateWhat is the difference between load, stress, spike, soak and breakpoint testing?BeginnerWhat is k6 and why do SRE teams use it?BeginnerWrite a minimal k6 test with SLO thresholds.Intermediate