Chaos engineering explained

Chaos engineering is the discipline of experimenting on a system in order to build confidence in the system's capability to withstand turbulent conditions in production.[1]

Concept

In software development, a given software system's ability to tolerate failures while still ensuring adequate quality of service—often generalized as resilience—is typically specified as a requirement. However, development teams often fail to meet this requirement due to factors such as short deadlines or lack of knowledge of the field. Chaos engineering is a technique to meet the resilience requirement.

Chaos engineering can be used to achieve resilience against infrastructure failures, network failures, and application failures.

Operational readiness using chaos engineering

Calculating how much confidence we have in the interconnected complex systems that are put into production environments requires operational readiness metrics. Operational readiness can be evaluated using chaos engineering simulations supported by Kubernetes infrastructure. Solutions for increasing the resilience and operational readiness of a platform include strengthening the backup, restore, network file transfer, failover capabilities and overall security of the environment. Gautam Siwach et al, performed an evaluation of inducing chaos in a Kubernetes environment which terminates random pods with data from edge devices in data centers while processing analytics on a big data network, and inferring the recovery time of pods to calculate an estimated response time, as a resilience metric.[2] [3]

History

1983 – Apple

While MacWrite and MacPaint were being developed for the first Apple Macintosh computer, Steve Capps created "Monkey", a desk accessory which randomly generated user interface events at high speed, simulating a monkey frantically banging the keyboard and moving and clicking the mouse. It was promptly put to use for debugging by generating errors for programmers to fix, because automated testing was not possible; the first Macintosh had too little free memory space for anything more sophisticated.[4]

1992 – PrologueWhile ABAL2 and SING were being developed for the first graphical versions of the PROLOGUE operating system, Iain James Marshall created "La Matraque", a desk accessory which randomly generated random sequences of both legal and invalid graphical interface events, at high speed, thus testing the critical edge behaviour of the underlying graphics libraries. This program would be launched prior to production delivery, for days on end, thus ensuring the required degree of total resilience. This tool was subsequently extended to include the Database and other File Access instructions of the ABAL language to check and ensure their subsequent resiliance. A variation, of this tool, is currently employed for the qualification of the modern day version known as OPENABAL.

2003 – Amazon

While working to improve website reliability at Amazon, Jesse Robbins created "Game day",[5] an initiative that increases reliability by purposefully creating major failures on a regular basis. Robbins has said it was inspired by firefighter training and research in other fields lessons in complex systems, reliability engineering.[6]

2006 – Google

While at Google, Kripa Krishnan created a similar program to Amazon's Game day (see above) called "DiRT".[7] [8] Jason Cahoon, a Site Reliability Engineer [9] at Google, contributed a chapter on Google DiRT [10] in the "Chaos Engineering" book and described the system at the GOTOpia 2021 conference.[11]

2011 – Netflix

While overseeing Netflix's migration to the cloud in 2011 Nora Jones, Casey Rosenthal, and Greg Orzell [12] [13] expanded the discipline while working together at Netflix by setting up a tool that would cause breakdowns in their production environment, the environment used by Netflix customers. The intent was to move from a development model that assumed no breakdowns to a model where breakdowns were considered to be inevitable, driving developers to consider built-in resilience to be 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."[14]

By regularly "killing" random instances of a software service, it was possible to test a redundant architecture to verify that a server failure did not noticeably impact customers.

The concept of chaos engineering is close to the one of Phoenix Servers, first introduced by Martin Fowler in 2012.[15]

Chaos engineering tools

Chaos Monkey

Chaos Monkey is a tool invented in 2011 by Netflix to test the resilience of its IT infrastructure.[16] It works by intentionally disabling computers in Netflix's production network to test how the 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.

The code behind Chaos Monkey was released by Netflix in 2012 under an Apache 2.0 license.[17] [18]

The name "Chaos Monkey" is explained in the book Chaos Monkeys by Antonio Garcia Martinez:[19]

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 [i.e. flings excrement]. 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.

Simian Army

The Simian Army is a suite of tools developed by Netflix to test the reliability, security, or resilience of its Amazon Web Services infrastructure and includes the following tools:[20]

At the very top of the Simian Army hierarchy, Chaos Kong drops a full AWS "Region". Though rare, loss of an entire region does happen and Chaos Kong simulates a systems response and recovery to this type of event.

Chaos Gorilla drops a full Amazon "Availability Zone" (one or more entire data centers serving a geographical region).

Proofdock chaos engineering platform

Proofdock is a chaos engineering platform that focuses on and leverages the Microsoft Azure platform and the Azure DevOps services. Users can inject failures on the infrastructure, platform and application level.[21]

Steadybit

Founded in 2019, Steadybit is a Chaos and Resilience Engineering platform that aims to reduce downtime and improve system visibility to detect issues early. Steadybit also manages a Reliability Hub on GitHub, an open-source collection of chaos engineering extensions.

Gremlin

Gremlin is a "failure-as-a-service" platform.[22]

Facebook Storm

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 Chaos

Voyages-sncf.com created a "Day of Chaos"[23] in 2017, gamifying the simulation of pre-production failures.[24] They presented their results at the 2017 DevOps REX conference.[25]

See also

External links

Notes and References

  1. Web site: Principles of Chaos Engineering . principlesofchaos.org . 21 October 2017.
  2. Gautam . Siwach . Evaluating operational readiness using chaos engineering simulations on Kubernetes architecture in Big Data . pdf . 2022 International Conference on Smart Applications, Communications and Networking (SmartNets) . 1–7 . 29 November 2022 . Botswana . 3 January 2023 .
  3. News: Machine Learning Podcast Host and Technology Influencer: Gautam Siwach . LA Weekly . October 7, 2022.
  4. Web site: Hertzfeld . Andy . Monkey Lives . Folklore . 11 September 2023.
  5. Web site: Game day . AWS Well-Architected Framework Glossary . . 31 December 2020 . 25 February 2024.
  6. Limoncelli . Tom . September 13, 2012 . Resilience Engineering: Learning to Embrace Failure . . 10 . 9 . ACM.
  7. Krishnan . Kripa . September 16, 2012 . Weathering the Unexpected . . 10 . 9 . 30–37 . 10.1145/2367376.2371516 . ACM.
  8. Krishnan . Kripa . 10 Years of Crashing Google . html . 2015 Usenix LISA . 8-13 November 2015 . Washington DC . 25 February 2024 .
  9. Book: Beyer . Betsy . Site Reliability Engineering . Jones . Chris . . 2016 . 9781491929124 . 1st . 1291707340.
  10. Web site: Chapter 5. Google DiRT: Disaster Recovery Testing . "Chaos Engineering" book website . . 30 April 2020 . 25 February 2024.
  11. Web site: Cahoon . Jason . WATCH: The DiRT on Chaos Engineering at Google . youtube.com . . en . video . June 2, 2021.
  12. Book: Jones . Nora . Chaos Engineering . Rosenthal . Casey . . 2020 . 9781492043867 . 1st . 1143015464.
  13. US. 20120072571. Validating the resiliency of networked applications. 2012-03-22. Orzell. Izrailevsky. Gregory S.. Yury.
  14. Web site: Netflix Tech Blog . . Netflix Chaos Monkey Upgraded . 2016-10-19 . 2017-10-21.
  15. Web site: martinFowler.com . . PhoenixServer . 10 July 2012 . 14 January 2021.
  16. Web site: The Netflix Simian Army . Netflix Tech Blog . . 19 July 2011 . 21 October 2017.
  17. News: Netflix libère Chaos Monkey dans la jungle Open Source . Le Monde Informatique . Netflix releases Chaos Monkey into the open source jungle . 7 November 2017. fr.
  18. Web site: SimianArmy: Tools for your cloud operating in top form. Chaos Monkey is a resiliency tool that helps applications tolerate random instance failures . Netflix, Inc. . 20 October 2017 . 21 October 2017.
  19. Web site: fr-FR . Mais qui sont ces singes du chaos ? . But who are these monkeys of chaos? . 15marches . 25 July 2017 . 21 October 2017.
  20. News: Infrastructure : quelles méthodes pour s'adapter aux nouvelles architectures Cloud ? - D2SI Blog. SemiColonWeb. 8 December 2015. D2SI Blog. 7 November 2017. fr-FR. 21 October 2017. https://web.archive.org/web/20171021220903/http://blog.d2-si.fr/2015/12/08/architecture-cloud/. dead.
  21. Web site: Miller . Ron . 22 September 2022 . Steadybit wants developers involved in chaos engineering before production . Tech Crunch.
  22. Web site: Gremlin raises $18 million to expand 'failure-as-a-service' testing platform . VentureBeat . 24 October 2018 . 28 September 2018.
  23. Web site: Days of Chaos . 18 February 2022 . Days of Chaos . fr-FR.
  24. Web site: fr-FR . DevOps: feedback from Voyages-sncf.com . Moderator's Blog . 17 March 2017 . 21 October 2017.
  25. Web site: devops REX . 3 October 2017 . [devops REX 2017] Days of Chaos : le développement de la culture devops chez Voyages-Sncf.com à l'aide de la gamification ]. 18 February 2022.