Skip to Content
Learning Chaos Engineering
book

Learning Chaos Engineering

by Russ Miles
July 2019
Beginner
175 pages
3h 55m
English
O'Reilly Media, Inc.
Content preview from Learning Chaos Engineering

Chapter 5. Writing and Running Your First Automated Chaos Experiment

In Chapter 4 you grabbed the Chaos Toolkit; now it’s time to actually use the toolkit to execute your first automated chaos experiment. In this chapter you’ll set up a simple target system to work your chaos against, then write and run your first automated chaos experiment to surface a weakness in that system. You’ll execute a whole cycle in which your automated chaos experiment is first used to uncover evidence of a weakness, and then used again to validate that the weakness has been overcome—see the diagram in Figure 5-1.

An image of chaos experiment to surface and validate a weakness.
Figure 5-1. Using a chaos experiment to surface evidence of a weakness, then provide evidence of the weakness being overcome

Setting Up the Sample Target System

You need a system to explore for weaknesses, and everything you need for that is available in the learning-chaos-engineering-book-samples directory in the community-playground repo under the chaostoolkit-incubator organization. Grab the code now by cloning the repository with the git command:

(chaostk) $ git clone https://github.com/chaostoolkit-incubator/community-
            playground.git

If you’re not comfortable with using git, you can simply grab the repository’s contents as a zip file.

Getting the Example Code

In actual fact, all the experiments shown in this book are in the chaostoolkit-incubator/community-playground repo. For more ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Chaos Engineering

Chaos Engineering

Casey Rosenthal, Lorin Hochstein, Aaron Blohowiak, Nora Jones, Ali Basiri
Chaos Engineering

Chaos Engineering

Casey Rosenthal, Nora Jones
Chaos Engineering

Chaos Engineering

Mikolaj Pawlikowski

Publisher Resources

ISBN: 9781492050995Errata Page