Chaos Testing Guide: Chaos Engineering, Fault Injection, and Resilience Best Practices

chaos testing a complete guide
Key takeaways
The 30-second version of this article
Chaos testing deliberately injects failures, such as server shutdowns or network delays, to find weak points before a real outage does.
Every experiment follows the same loop: baseline, hypothesis, controlled experiment with a limited blast radius, analysis, then fixes.
Popular tools include Gremlin, Chaos Monkey, AWS Fault Injection Service, LitmusChaos, and Chaos Toolkit.
Start small, and expand to production only once you trust your monitoring and rollback.

Chaos testing deliberately breaks parts of a system in a controlled way to see how it copes. Teams use it to find weak points before a real outage does.

This guide covers what chaos testing is, when to use it, how to run an experiment, and the main tools.

What is chaos testing and chaos engineering?

Chaos testing: A Complete Guide

Chaos engineering is the discipline of experimenting on a system to build confidence that it can handle turbulent conditions in production. The Principles of Chaos Engineering set out the core method. Chaos testing is the hands-on part: running those experiments.

Netflix made the practice famous with Chaos Monkey, which shuts down servers in production at random. You inject a fault, such as a failed server or slow network, and watch whether the system recovers.

Each experiment starts with a hypothesis about how the system should behave under stress. Tools like Gremlin and AWS Fault Injection Service make these experiments easier to run.

Chaos testing vs. traditional testing

Traditional tests check that the system works under expected conditions. Chaos tests check what happens when something goes wrong. They catch failures that functional tests never trigger.

Traditional testing is still essential for checking that code is correct. Chaos testing adds a different question: does the system stay up when parts of it fail?

When to use chaos testing

Chaos testing pays off most when reliability really matters, especially in complex, distributed systems:

  • Mission-critical systems: when downtime isn't acceptable, chaos tests show whether the system survives real failures. This is why Netflix built Chaos Monkey.
  • Cloud-native architectures: microservices and distributed systems have many failure points. Tools like Gremlin and Chaos Mesh inject controlled failures across components.
  • Production environments: chaos testing shows its full value in production, where conditions are real. This needs strong monitoring and a fast way to roll back.
  • After performance testing: once you know the system handles expected load, chaos tests add unexpected failures on top.
  • Before major releases: run chaos experiments on big updates before they ship, so a new feature doesn't weaken stability.
  • CI/CD pipelines: add chaos tests to your pipeline to catch resilience issues early, before new code reaches users.
  • Disaster recovery: simulate large-scale failures to check that your recovery plan works and services come back quickly.
  • Team training: chaos experiments help site reliability engineers (SREs) practice responding to incidents in a safe setting.

The chaos engineering process

Follow these steps for each experiment:

  1. Define a baseline: understand the system's normal behavior and choose the metrics you'll watch.
  2. Form a hypothesis: predict how the system should behave when a specific component fails.
  3. Design the experiment: plan a controlled failure that targets key components and dependencies. Our guide to test design techniques can help.
  4. Limit the blast radius: start small, in a test environment or with a small share of production traffic.
  5. Run the experiment: inject the fault and observe what happens.
  6. Monitor and analyze: compare results against the baseline and your hypothesis.
  7. Fix and repeat: fix the weaknesses you found, then widen the scope only once you trust your monitoring and rollback.

Key platforms for chaos engineering

1. Gremlin

Gremlin is a commercial chaos engineering platform with a wide range of failure simulations.

Key features

  • Many attack types: network disruptions, CPU stress, memory exhaustion, and server shutdowns.
  • Blast radius control: experiments start small and grow only after you've checked their impact.
  • Wide platform support: works with cloud environments, containers, and bare-metal systems, including AWS, Kubernetes, and Docker.
  • Scheduled experiments: run attacks on a schedule so resilience is tested continuously.

Use cases

  • Testing the resilience of microservices.
  • Simulating issues like resource exhaustion or network outages.
  • Checking incident response before a large production outage.

2. Chaos Monkey

Chaos Monkey is an open-source tool created by Netflix. It randomly terminates instances in production to test how well systems handle unexpected failures.

Key features

  • Random instance termination: Chaos Monkey shuts down virtual machine instances at random. Teams have to build services that recover on their own.
  • Spinnaker integration: the current version runs through Spinnaker, Netflix's open-source continuous delivery platform, so it works with any cloud provider Spinnaker supports.
  • Simian Army history: Chaos Monkey began as part of Netflix's Simian Army, which also included tools like Chaos Gorilla and Latency Monkey. Netflix has since retired the Simian Army project.

Use cases

  • Testing how systems behave when instances fail in production.
  • Checking that auto-scaling, redundancy, and self-healing work.
  • Finding single points of failure in a distributed system.

3. AWS Fault Injection Service (FIS)

AWS Fault Injection Service (formerly AWS Fault Injection Simulator) is a fully managed AWS service for running chaos experiments on AWS resources.

Key features

  • Experiment templates: templates for common failures, such as EC2 instance termination, network latency, or CPU stress.
  • Controlled scope: limit experiments to specific instances, regions, or services so disruptions stay contained.
  • AWS integration: works with Amazon CloudWatch, AWS Systems Manager, and AWS Lambda for monitoring and automatic remediation.
  • Fine-grained permissions: AWS Identity and Access Management (IAM) controls who can run experiments.

Use cases

  • Testing the fault tolerance of services such as EC2, RDS, and EKS.
  • Simulating network partitions or hardware failures in the cloud.
  • Checking recovery mechanisms in large cloud applications.

4. LitmusChaos

LitmusChaos is an open-source chaos engineering tool built for Kubernetes.

Key features

  • Kubernetes native: runs chaos experiments inside Kubernetes clusters.
  • Ready-made and custom experiments: includes experiments like pod deletion and network delays, and lets you build your own with custom resources.
  • ChaosCenter: a central dashboard to plan, manage, and monitor experiments.
  • GitOps support: experiments can be versioned and managed in code repositories.

Use cases

  • Testing how apps handle container restarts, network disruptions, or resource limits.
  • Checking auto-scaling policies and Kubernetes self-healing.
  • Continuously testing microservices on Kubernetes.

5. Chaos Toolkit

Chaos Toolkit is a lightweight, open-source framework for creating and automating chaos experiments.

Key features

  • Extensions: an open API and extensions for platforms like AWS, Kubernetes, and Prometheus.
  • Declarative experiments: experiments are written in JSON or YAML, with little coding needed.
  • CI/CD ready: run experiments from pipelines in Jenkins, GitLab, and other CI/CD tools.
  • Community driven: an active open-source community adds new features and extensions.

Use cases

  • Running custom experiments in cloud or on-premises environments.
  • Automating resilience tests in a CI/CD pipeline before releases.
  • Observing system behavior during experiments with tools like Prometheus.

Benefits of chaos testing

  • Better resilience: systems learn to withstand unexpected disruptions and stay available under stress.
  • Earlier detection: testing in production catches problems that regular testing misses, before they cause outages.
  • Better preparedness: simulating large-scale failures helps teams rehearse real incidents and reduce downtime.
  • More confidence: regular experiments make it safer to ship new features and updates.

Challenges of adopting chaos testing

  • Cultural resistance: teams may worry about breaking production on purpose. Start small and share results to build trust.
  • Tools and skills: tools like Chaos Mesh, Gremlin, and Chaos Monkey need expertise to set up and run well.
  • Risk management: experiments in production can have side effects. Put strong monitoring and clear rollback steps in place first.
  • Fitting into existing processes: chaos testing should complement QA and performance testing, not disrupt them.
  • Cost: experiments take computing resources and people's time. Weigh the cost against the downtime you avoid.

Despite these challenges, chaos engineering is worth the investment for any team that needs high availability.

Real-world chaos engineering scenarios

  • E-commerce resilience: an online store needs to stay up during peak season, a key point in the business case for e-commerce test automation. The team simulates failures in payment processing or inventory services, then fixes the weak points before customers are affected.
  • Cloud-native microservices: the team injects failures into specific microservices to see how the system handles degraded or missing services. Netflix used this approach to keep streaming running even when key components failed.

Chaos testing isn't about breaking things for its own sake. It's about making your system stronger before real failures happen.

Conclusion

Chaos testing shows how your system behaves when parts of it fail. Start small, with a clear hypothesis and a limited blast radius. Expand only once you trust your monitoring and rollback.

About the contributor

Authors (3) (1).png

Dominik Szahidewicz is a Technical Writer at BugBug, with experience using tools like ServiceNow, ERP, Notepad++, and VM Oracle. His skills include proficiency in English, French, and SQL. Outside of his technical work, he is an active musician and pianist, performing in several bands across different genres, including jazz/hip-hop, neo-soul and organic dub.

Want to guest post for Katalon? Check out our Katalon Guest Post Guidelines!

Frequently asked questions

Huyen Nguyen
Huyen NguyenTechnical Writer, Katalon

Huyen Nguyen is an experienced technical writer in the software testing industry. With strong technical expertise and a deep understanding of Katalon products, she creates clear, practical guides that support testers at every skill level.

Connect on LinkedIn →
Get started

Test everything. Ship with confidence.

From generating test cases to spotting failures, Katalon's AI works across your entire pipeline, automatically.

Live webinar

The Next Evolution of Manual Testing: Introducing Katalon AI Test Runner

Learn how to grow your QA team's capacity in the age of AI, then watch Katalon AI Test Runner turn manual test cases into automated runs, live.

2:00 to 3:00 PM IST
Almas AhmedSenior Account Manager
Sumit WankhedeSolutions Engineer Manager
Register now