Chaos Engineering(Redirected from Chaos Monkey)
Chaos Engineering is the discipline of experimenting on a software system in production in order to build confidence in the system’s capability to withstand turbulent and unexpected conditions.
In software development, a given software's abilities to tolerate failures, be resilient, and ensure adequate quality of service are often specified as requirements. However, development teams often fail to meet these requirements due to factors such as short deadlines or lack of knowledge of the field. Chaos Engineering is a technique to meet the resilience requirements.
Chaos Engineering can be used to achieve resilience against:
- Infrastructure Failures (Chaos Monkey)
- Network Failures
- Application Failures
While overseeing Netflix's migration to the cloud in 2011, Greg Orzell had the idea to change this paradigm by setting up a tool that would cause breakdowns in their production environment, the environment used by Netflix customers. This proposal changed their assumptions from a model where there would be no breakdowns to a model where breakdowns were certain, ensuring that built-in resilience was an obligation rather than an option:
"At Netflix, our culture of freedom and responsibility led us not to force engineers to design their code in a specific way. Instead, we discovered that we could align our teams around the notion of infrastructure resilience by isolating the problems created by server neutralization and pushing them to the extreme. We have created Chaos Monkey, a program that randomly chooses a server and disables it during its usual hours of activity. Some will find that crazy, but we could not depend on the random occurrence of an event to test our behavior in the face of the very consequences of this event. Knowing that this would happen frequently has created a strong alignment among engineers to build redundancy and process automation to survive such incidents, without impacting the millions of Netflix users. Chaos Monkey is one of our most effective tools to improve the quality of our services."
By regularly "killing" random instances, it was possible to test a redundant architecture to ensure that a server failure did not noticeably impact end-users. The name Chaos Monkey is explained in the book "Chaos Monkeys" by Antonio Garcia Martinez:
"Imagine a monkey entering a "data center", these "farms" of servers that host all the critical functions of our online activities. The monkey randomly rips cables, destroys devices and returns everything that passes by the hand. The challenge for IT managers is to design the information system they are responsible for so that it can work despite these monkeys, which no one ever knows when they arrive and what they will destroy."
Chaos Monkey is a tool invented in 2011 by Netflix to test the resilience of its IT infrastructure. It works by intentionally disabling computers in Netflix's production network to test how remaining systems respond to the outage. Chaos Monkey is now part of a larger suite of tools called the Simian Army designed to simulate and test responses to various system failures and edge cases.
At the very top of the Simian Army hierarchy, Chaos Gorilla, drops a full Amazon Availability Zone.
Introduces communication delays to simulate degradation or outages in a network.
Performs health checks, monitoring performance metrics like CPU load to detect unhealthy instances for root-cause analysis and eventual fixing or retirement.
Identifies and disposes unused resources to avoid waste and clutter.
Tool that determines whether an instance is nonconforming by applying a set of rules on it. If any of the rules determines that the instance is not conforming, the monkey sends an email notification to the owner of the instance.
Derived from Conformity Monkey, a tool that searches for and disables instances that have known vulnerabilities or improper configurations.
Tool that detects problems with localization (l10n-i18n) for software serving customers across different geographic regions.
Byte-Monkey is a small Java library for testing failure scenarios in JVM applications - it works by instrumenting application code on the fly to deliberately introduce faults like exceptions and latency.
Chaos machine is a tool to do chaos engineering on the JVM level using bytecode. In particular, it concentrates on analyzing the error-handling ability of each try-catch block involved in the application.
Gremlin is a "Failure-as-a-Service" platform built to make the internet more reliable. It turns failure into resilience by offering engineers a fully hosted solution to safely experiment on complex systems, in order to identify weaknesses before they impact customers and cause revenue loss.
To prepare for the loss of a datacenter, Facebook regularly tests the resistance of its infrastructures to extreme events. Known as the Storm Project, the program simulates massive data center failures.
Days of ChaosEdit
Inspired by AWS GameDays to test the resilience of its applications, teams volunteer applications from Voyages-sncf.com participated in a Day of Chaos. Every 30 minutes, operators simulated failures in pre-production. Teams earned points based on detections, diagnoses, and resolutions. This type of gamified event helps to introduce development teams to the concept of resilience.
The Chaos Toolkit was born from the desire to simplify access to the discipline of Chaos Engineering and demonstrate that the experimentation approach can be done at different levels: infrastructure, platform but also application. The Chaos Toolkit is an open-source tool, licensed under Apache 2, published in October 2017.
Chaos Monkey and DevOpsEdit
As part of the DevOps movement, special attention is paid to the safe operation of computer systems, thus providing a sufficient level of confidence despite frequent releases. By contributing to the Devops Tool Chain, Chaos Monkey meets the need for continuous testing.
They are part of the pattern "Design for failure,"  "designed to support failure": a computer application must be able to support the failure of any underlying software or hardware component.
Notes and referencesEdit
- "Principles of Chaos Engineering". principlesofchaos.org. Retrieved 2017-10-21.
- "The Netflix Simian Army". Netflix Tech Blog. Medium. 2011-07-19. Retrieved 2017-10-21.
- US20120072571 A1, Orzell, Gregory S. & Yury Izrailevsky, "Validating the resiliency of networked applications"
- "Netflix Chaos Monkey Upgraded". Netflix Tech Blog. Medium. 2016-10-19. Retrieved 2017-10-21.
- "Mais qui sont ces singes du chaos ?" [But who are these monkeys of chaos?]. 15marches (in French). 2017-07-25. Retrieved 2017-10-21.
- "SimianArmy: Tools for your cloud operating in top form. Chaos Monkey is a resiliency tool that helps applications tolerate random instance failures". Netflix, Inc. 2017-10-20. Retrieved 2017-10-21.
- SimianArmy: Tools for keeping your cloud operating in top form. Chaos Monkey is a resiliency tool that helps applications tolerate random instance failures, Netflix, Inc., 2017-11-07, retrieved 2017-11-07
- SemiColonWeb (2015-12-08). "Infrastructure : quelles méthodes pour s'adapter aux nouvelles architectures Cloud ? - D2SI Blog". D2SI Blog (in French). Retrieved 2017-11-07.
- "Netflix libère Chaos Monkey dans la jungle Open Source - Le Monde Informatique". LeMondeInformatique (in French). Retrieved 2017-11-07.
- "The Netflix Simian Army", medium.com, retrieved 2017-12-12
- "GitHub repo of Byte-Monkey". GitHub.
- "GitHub repo of Chaos Machine". GitHub.
- "A Chaos Engineering System for Live Analysis and Falsification of Exception-handling in the JVM". arXiv.
- "Gremlin raises $18 million to expand 'failure-as-a-service' testing platform". VentureBeat. Retrieved 2018-10-24.
- Hof, Robert (2016-09-11), "Interview: How Facebook's Storm Heads Off Project Data Center Disasters", Forbes, retrieved 2017-10-21
- SemiColonWeb (2016-07-04). "GameDay AWS: test the resilience of your applications Cloud". D2SI Blog. Retrieved 2017-10-21.
- "DevOps: feedback from Voyages-sncf.com - Blog du Moderator", Moderator's Blog (in French), 2017-03-17, retrieved 2017-10-21
- "Days of Chaos: the development of the devops culture at Voyages-Sn ..." Slideshare. 2017-10-03. devops REX.
- Miles, Russ (2017-10-06). "Introducing and Extending the Chaos Toolkit". Russ Miles (the Geek on a Harley). Retrieved 2017-10-23.
- "The Great Patterns of the Web - Design for failure | OCTO Talks!". blog.octo.com. Retrieved 2017-10-22.