Introduction To Cloud Native Chaos Engineering
Tags: kubernetes, cloudnative, litmuschaos, beginners
Published: 2021-07-29 16:00:25

In this blog, I will be sharing my learning from a Live stream about chaos engineering. the link to which can be found [here]. 

[https://www.youtube.com/watch?v=LK0oDLQE4S8](https://www.youtube.com/watch?v=LK0oDLQE4S8)

## The problems before Chaos Engineering

Before Chaos Engineering was adopted there was no way to tackle problems that were unpredictable. For example, high traffic on the app would cause a system outage. This outage, even for a small time would cost millions to companies and their reputation as well. This is where we felt that normal streamlined testing is not enough.

There are many services running in the system and the interaction between them can be unpredictable. These interactions often result in downtime of the system.

## What is Chaos Engineering?

Chaos engineering can be thought of as a mechanism of running experiments on the system by exposing it to real-life scenarios to see whether the system can withstand unexpected disruptions. These include scenarios of high traffic on the system or when the system faces any sort of outage. By running these experiments on the system we try to find out its weakness and makes the system more resilient. Any event capable of disrupting steady state is a potential variable in a Chaos experiment

There are four steps in Chaos Engineering:

- Steady-state
- Hypothesis
- Experiment
- Adapt

More details on these can be found on [https://principlesofchaos.org/](https://principlesofchaos.org/)

## What is resilience

Resilience is a system's ability to stay working even when a fault is occurred. Resilience of a system can be challenged in many ways such as when the services become unhealthy or when a node in a Kubernetes cluster goes to not-ready state or when there is a memory leak in the system. Chaos engineering caters to these problems of not maintaining a resilient system.

## How to build resilience

1. Identify steady state conditions i.e. the state that we want the system to be in ideally.
2. Introduce a fault related to what you want to test
3. Did the system regain its steady state after introducing a fault?
4. If yes then the system is resilient
5. If no then work on this weakness and again introduce a fault

## How Litmus and Chaos Engineering is introduced in DevOps space?

The general idea is that we should also focus on operations and not just the development side. Instead of writing tests for all the microservices individually, we can automate the entire process using Litmus. This make everything very smooth.

## Why Kubernetes?

 

- Kubernetes is the de facto standard in the industry.
- Kubernetes is highly scalable.
- High availability

## Cloud Native Chaos Engineering

Cloud Native leverages the idea of using cloud storage to run microservices on the system. Some principles of Cloud Native Chaos Engineering are:

- Projects are mainly open source
- Community support
- Open observability
- Open API
- GitOps

## Benefits:

- Run services without an outage
- Run services to meet the business SLAs and SLOs
- Scale your services on demand
- Upgrade you services without an outage

## Some advantages of using Litmus:

- Litmus is cross-cloud
- It takes a cloud-native approach to create, manage and monitor chaos
- It is a complete framework to implement Chaos Engineering within a cloud-native ecosystem
- It helps both developers and SREs to automate the chaos experiment.

## Useful Resources

### Beginner friendly issues to contribute:

[https://github.com/litmuschaos/litmus](https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbWYwZVYxMGxPMnZza3Z1RmdocXdpcm9lMW9pZ3xBQ3Jtc0tsU0pGTEdTY1BlMjI3NzhRN0MtOVFfVER3aXJPZGh3UVBrTkxXbmtfa1p3SURjLTdGUGFfZjkyc0d3cTI3NGxzb0c2TkpDbUptTjNlbjY3RTlzUlZaQmdpd0E3c2Y4ZjFvaWsxeVMxcWkwQjA3WXZXWQ&q=https%3A%2F%2Fgithub.com%2Flitmuschaos%2Flitmus)

[https://github.com/litmuschaos/test-t...](https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqa0FPMVJ5ZWVRb1hCQjFpRkpWcWxfMXBoV1pNUXxBQ3Jtc0trc2lfZ0Y1V1lleHI5SHdOaDZlWC0zbzctS3haUXduM0NueWZnZG90aW9SWmlwZEw0V25iT2t5aUZFVS12Y3hGSm53Mkp5WmRQZ0tVT2UyNmpza19CdzFCWW95eDNGNFpyTXF2Q1dXd1J6STNPbTZmbw&q=https%3A%2F%2Fgithub.com%2Flitmuschaos%2Ftest-tools)

[https://github.com/litmuschaos/websit...](https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbnNrMXdtYV9lQmhKYWxyZ2V2eHNHZEtvY0k5Z3xBQ3Jtc0trMGlQWERyM3dlYl9Wa0ZYU0ZCTDN6aEdKRjh4X2daaGpZNXJoNE1abGR4SDlQQllRRjgtTEVJOV9Tc2lNd3hENmZyU2ZaaThyc1VJWjhTb1V2cVB5R3FEZTZPYmo1V1NUdE1KaDlONDJwZGxIUklJdw&q=https%3A%2F%2Fgithub.com%2Flitmuschaos%2Fwebsite-litmuschaos)

### Blogs and videos to learn more about Litmus:

[https://dev.to/litmus-chaos](https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbl9USS04ck1qZ2RIY0l5UmZsZGZIWXl5T3plQXxBQ3Jtc0tuY2I5czFsLUVwMGFDT1MzeGFwbm80LV9abl9ZSVVnMTRrMlllVmdnNV9ldW1JakVzREdsRHkybnZuaFJRYTVWMnRKSjU2Z0ppaXh0WmNCemdXZ0VOYWwwRXhTaHBhQmZtWS1lQkJwVXp4aUNEeUVZMA&q=https%3A%2F%2Fdev.to%2Flitmus-chaos)

[https://medium.com/litmus-chaos](https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbHF0U2ozMXNRdUtqV1lPVzlwcDJtS0RXTlFmUXxBQ3Jtc0trWkpDYkwtcUhiVmpGMlFFXzdqZFJCTUM4THBBSzFFY05ZZjdlcE15dHBEUWFxWURDVk0zTXFCN2xtUDFHRUx5eG9LcGhaamFrbVZfbDBwbzV1QzF2UjF3QWE0eHN2X2hNU2NuQUE3ZXJCcFQ4ek1xOA&q=https%3A%2F%2Fmedium.com%2Flitmus-chaos)

[https://www.youtube.com/channel/UCa57...](https://www.youtube.com/channel/UCa57PMqmz_j0wnteRa9nCaw/videos)

[https://github.com/litmusbot/katacoda...](https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbmR6UVh2Z0VqTUxFSUN5dkV5Z1pKRkFhVFNqUXxBQ3Jtc0tsdEp4QnIxS3VpMjZVTHlMRF83OXM3VHptdjl1VERyTVg4X0tKWVFhRDlaZTI2WWlUUmNCTkNzQnJqanBaZ2k4Z2Q4RkNiOWpfb2FIMmFvT1AxZHpXTXg1NG10U254RmRLdXNVakFJNjB6Yk0takFWNA&q=https%3A%2F%2Fgithub.com%2Flitmusbot%2Fkatacoda-scenarios)

You can join the slack community too! That is where you can ask your queries and get to learn more about chaos & contributing to Litmus! To join the slack please follow the following steps!
Step 1: Join the Kubernetes slack using the following link: [https://slack.k8s.io/](https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbUpyY0ZFYmFvS2ZqQjVkNXAzY0ZsTkpubHc1Z3xBQ3Jtc0tsdVFZYXVxTGFOTHNKNzE5TGw2ME51dUVOR25paTFsWDlGMzR6MVFuQWRBVnV2ZGdFSnF3Q3lDVFVhakEybF83dGtYWVZfZXJZYnUwaHgtMFpoWnlzWGpYOGtEeVNvbEdOd1V6bm53Yjl1NmdjcWxaSQ&q=https%3A%2F%2Fslack.k8s.io%2F)

Step 2: Join the [#litmus](https://www.youtube.com/hashtag/litmus) channel on the Kubernetes slack or use this link after joining the Kubernetes slack: [https://slack.litmuschaos.io/](https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbkhBMEttVHo0SVk0dHkzUk1iYlNQSHZFUTVyQXxBQ3Jtc0tsUWhRRzFEYnBZN1lfWXNjZG5ORW5nMGMxbnh0Y3Y2U0l2eUhIeU9RenQ3cHZCOFV5Y0s3Vlg1eHlSVVhSb2E4S2EweEhSSFU4cU9OMGFzZkNaWkszVjdidTNNaUZUblpXa1JmTjFpdHNEY3U1Y1Vudw&q=https%3A%2F%2Fslack.litmuschaos.io%2F)

### Thank you! :)