Skip to main content

Automated onboarding

This topic describes the following operations:

  1. Set up environment with a click.
  2. Set up the chaos infrastructure with a click.
  3. Discover services automatically.
  4. Create and execute chaos experiments automatically.

Before you begin

tip

Currently, this feature is behind the feature flag CHAOS_V2_ENABLED. Contact Harness support to enable the feature.

What is automated onboarding?

Automated onboarding, as the name suggests, automates the entire process of creating and executing a chaos experiment. You can click a button and HCE creates an environment, an infrastructure, and other components in the background, executes the experiment, and displays the resilience score for the sample application.

Why choose automated onboarding?

  • If you want to quickly start with executing chaos experiments and expect HCE to perform most (or all) steps in the background, this is the guide for you.
  • It takes less time to execute.
  • Select an environment and infrastructure, and you are done. HCE discovers the services, creates the experiments, chooses the experiments with less blast radius to execute, and displays experiment progress and resilience score.

If you chose to onboard automatically, follow the steps below.

Select an environment

  1. Select an environment from the list and select Next.

    select env

Select an infrastructure

  1. Select the target infrastructure on which you want to execute the chaos experiments. Select Apply.

    select infrastructure

Automatically discover services

  1. Based on your inputs earlier, HCE discovers services in your cluster (that is, service discovery) to create chaos experiments.

    service discovery

Automatically create experiments

  1. HCE automatically creates chaos experiments and selects a few experiments to execute.

    create experiment

  2. HCE chooses to execute safe chaos experiments, that is, experiments that have a low blast radius.

    execute experiment

View logs and resilience dashboard

  1. You can see the status of the chaos experiment execution, as well as view the experiment execution. You can also see the resilience score of the experiment if you select View Resilience Dashboard.

    experiment status

  2. To view the experiment execution logs, select View Execution which opens on a new page. Here, you can see the logs of the experiment.

    error log

View the progress of an experiment

  1. You can view the progress of a chaos experiment you created earlier. Select View Progress.

    view progress

  2. Select View on the infrastructure where you executed the chaos experiment.

    cluster view

Conclusion

Congratulations! You completed the automated HCE onboarding. Now you are all set to explore the chaos faults and build resilient applications.