Chaos Sandbox
Get trained in running Harness Chaos Experiments using the sandbox
SANDBOX DEPRECATED
The sandbox onboarding UI, certification banner, and related onboarding entry points have been removed from the Chaos Engineering module. This page is retained for reference only.
This tutorial guides you through an interactive session where you'll use the sample application Podtato head to execute a chaos experiment and enhance the application's resilience.
Prerequisites
Before you start the tutorial, ensure you have a Harness account. Follow these steps to create one. Review the onboarding flow diagram to understand the process for obtaining the Harness Developer Certification.
Create a Harness account
Navigate to app.harness.io and click Sign up.

navigate Select Sign up with Email and enter your work email and password.

enter details You will receive a verification email. Follow the link to access the page with various modules.

verify
High-level flow of control in a sandbox
The diagram below illustrates the high-level flow of control in a sandbox environment:

Execute pod delete on the Podtato head app
After creating an account with Harness, select Get Started in the Chaos Engineering module.

Create a sandbox
On the chaos module landing page, select Create Sandbox. Note that this is a Zero Risk operation!

select module This action creates a new environment where chaos experiments can be executed.

env This takes you to the Interactive learning tab, where you click Start.

start
Execute pod delete experiment
The experiment execution starts by creating the necessary clusters in the environment (that you created earlier). Once the clusters are ready, the sandbox creates the pod delete experiment. Click Next.

exp created Click Run to execute the pod delete experiment. The experiment creates resilience probes to check the availability of the Podtato app's left arm, which will be deleted during the experiment.

exp runs The experiment deletes a pod (specifically, the left arm pod) and displays the resilience of the Podtato Head application.

exp runs
This result shows that the Podtato Head app is not yet resilient. Click Next to proceed with configuring the application for improved resilience.

click next
Re-run to build resilience
You will see two commands on the screen. Click Run to execute these commands, which will create two replicas of the pod, enhancing its availability. This way, even if one pod is deleted, the application will continue functioning smoothly.

improve resilience Click Next. Once the application is configured, select Run to re-run the experiment.

improve resilience The pod delete experiment will be executed again. This time, you will see a resilience score of 100 %, indicating that the application remains functional even when a pod is deleted.

improve score
Click Next to proceed with the next experiment (pod network loss).

execute next
Perform the same steps for the next experiment
After completing the pod delete experiment, you can execute the pod network loss experiment. Follow the same steps as for the pod delete experiment. This experiment configures a probe to check the availability of the Podtato app's left arm, which is targeted.

pod network loss Click Next to move to the last step of the hands-on lab.

pod network done You have now completed the chaos hands-on lab by executing two experiments and improving the resilience of the Podtato Head application. Click Go to Harness University or follow this tutorial to obtain the developer certification.

pod network done
Create other experiments in sandbox
In addition to executing pod delete and pod network loss experiments, you can create other experiments in the sandbox.
Navigate to your sandbox and select Chaos Experiments to view the experiments you've executed or are currently running.

exp exec Select New experiment and follow the steps to create an experiment.
Next steps
Last updated
Was this helpful?

