Happy Dussehra! May good always win. Merry Christmas! Warm wishes from Vizag. Happy New Year! Here’s to a great year ahead.

DevOps · CNCF daily

Litmus: Chaos Engineering Workflows with Probes and Resilience Scoring

CNCF Incubating. A Kubernetes chaos engineering platform that packages fault injection as reusable experiments, orchestrates them as workflows, and measures the outcome with probes and resilience scores.

7 min read

CNCF Incubating

  • Litmus
  • Kubernetes
  • Argo Workflows
  • Prometheus
  • MongoDB
CNCF project page

Litmus is an open-source chaos engineering platform for Kubernetes. It provides a library of ready-made fault experiments, such as deleting pods, adding network latency or exhausting CPU, a portal for composing them into scheduled workflows, and probes that check whether the system stayed healthy while the fault was active. The result is a pass or fail verdict and a resilience score per experiment, rather than only a fault injected and left for the engineer to interpret. It addresses the gap between assuming a system is resilient and demonstrating it under controlled failure. Litmus was started by MayaData, the company behind OpenEBS, and was accepted into the CNCF Sandbox on June 25, 2020. It moved to Incubating on January 11, 2022.

CNCF daily · Sprint 2, day 8 · Chaos Engineering

At a glance

Category Observability and Analysis › Chaos Engineering
CNCF status Incubating. Accepted June 25, 2020; incubating January 11, 2022
Written in Go (control plane and operators); TypeScript and React (portal)
License Apache 2.0
Core resources ChaosExperiment, ChaosEngine and ChaosResult custom resources
Experiment catalog ChaosHub, with Kubernetes, AWS, Azure, GCP, VMware and application-level faults
Validation Probes (HTTP, command, Kubernetes and Prometheus) evaluated during the experiment

Architecture

Litmus architecture: engineers and CI use ChaosCenter, which gets experiment definitions from ChaosHub and stores workflows and results in MongoDB; the subscriber in the target cluster receives workflows, the workflow controller runs them, the chaos operator starts the chaos runner for each ChaosEngine, the runner injects the fault into the application and probes check it, and writes a ChaosResult.

Blue is the engineers and the application under test, purple the Litmus components, amber the experiment catalog, teal the database and green metrics. The target cluster is where faults run; ChaosCenter can serve many such clusters. Open the zoomable diagram, or download it as SVG or PNG.

Component Responsibility
ChaosCenter Web portal and API server for creating workflows, scheduling runs, managing projects and users, and viewing results and resilience scores.
ChaosHub Catalog of experiment definitions that teams can use directly or extend.
MongoDB Stores workflows, runs and results for ChaosCenter.
Subscriber and workflow controller The in-cluster agent that receives workflows from ChaosCenter, and Argo Workflows, which sequences the experiments.
Chaos operator and runner The operator watches ChaosEngine resources and starts the runner, which applies the fault and runs probes, then writes a ChaosResult.
Prometheus and Grafana The steady-state metrics source that probes read.

Design principle. A chaos experiment is only useful if its hypothesis is explicit. Litmus makes the steady-state check, the probe, part of the experiment definition, so each run answers a specific question and produces a recorded verdict that CI and dashboards can act on.

From a workflow to a recorded verdict

Litmus flow in eleven steps: engineers use ChaosCenter, ChaosHub supplies experiment definitions, ChaosCenter stores the workflow and sends it to the subscriber, which hands it to the workflow controller; the chaos operator starts the runner, the runner injects the fault and runs probes against the application, steady-state metrics are read from Prometheus, and the result is returned to the operator.

  1. Create. Engineers or CI build and start a workflow in ChaosCenter.
  2. Select. ChaosCenter takes experiment definitions from ChaosHub.
  3. Store. ChaosCenter stores the workflow in MongoDB.
  4. Dispatch. It sends the workflow request to the subscriber in the target cluster.
  5. Run. The subscriber hands it to the workflow controller.
  6. Declare. The workflow creates a ChaosEngine.
  7. Start. The chaos operator starts the chaos runner.
  8. Inject. The runner injects the fault into the application under test.
  9. Probe. Probes check the application before, during and after the fault.
  10. Compare. Probes read steady-state metrics from Prometheus.
  11. Record. The runner writes a ChaosResult for the operator, and the verdict goes back to ChaosCenter.

Steps 1 to 4 plan a run; steps 5 to 9 execute it; steps 10 and 11 feed back.

Open the zoomable flow diagram, or download it as SVG or PNG.

Production reference design

A typical setup runs ChaosCenter in one management cluster and agents in each target cluster, starting in non-production.

  1. Install ChaosCenter. Use the project Helm chart:
    helm repo add litmuschaos https://litmuschaos.github.io/litmus-helm/
    helm install chaos litmuschaos/litmus --namespace litmus --create-namespace
  2. Connect target clusters. Register each cluster as an infrastructure environment in the portal and apply the generated agent manifest, which installs the subscriber and operator.
  3. Define an experiment. A ChaosEngine selects a target and an experiment, here deleting pods from a labelled deployment:
    apiVersion: litmuschaos.io/v1alpha1
    kind: ChaosEngine
    metadata:
      name: checkout-pod-delete
      namespace: shop
    spec:
      appinfo:
        appns: shop
        applabel: app=checkout
        appkind: deployment
      chaosServiceAccount: pod-delete-sa
      experiments:
        - name: pod-delete
          spec:
            components:
              env:
                - name: TOTAL_CHAOS_DURATION
                  value: "60"
                - name: PODS_AFFECTED_PERC
                  value: "50"
  4. Add probes. Attach an HTTP probe against the service health endpoint or a Prometheus probe on the error rate, so the experiment fails if user-facing behaviour degrades.
  5. Automate. Schedule workflows, trigger them from CI after deployment, and track resilience scores over time.

Typical uses include validating autoscaling and failover, testing dependency outages, running game days, and gating releases on resilience checks.

Operational considerations

  • Blast radius. Limit experiments by namespace, labels and percentage affected, and use dedicated service accounts with minimal RBAC for each experiment.
  • Start outside production. Run in staging first, define steady state clearly, and have an abort path before any production use.
  • Control plane footprint. ChaosCenter needs MongoDB and a persistent volume. Back them up and secure the portal with authentication and TLS.
  • Probe quality. A weak probe produces false passes. Base probes on user-facing signals such as latency and error rate, not only on pod status.
  • Version alignment. Keep the agent, operator and experiment images at compatible versions, and review the release notes on upgrade, as the 3.x architecture differs from 1.x.

Adoption

  • MayaData (now part of DataCore) created Litmus, and ChaosNative, founded by its maintainers, built a commercial offering on it.
  • Harness acquired ChaosNative in 2022 and built Harness Chaos Engineering on Litmus.
  • The project keeps an ADOPTERS file in its repository listing organisations that use Litmus; teams should consult it for current names.

Alternatives

Solution Model Best suited to
Chaos Mesh (CNCF Incubating) Kubernetes-native fault injection through custom resources Rich fault types and a dashboard; see the Chaos Mesh brief
Gremlin Commercial chaos engineering platform Managed service, support and safety controls
AWS Fault Injection Service Cloud-native fault injection AWS workloads that need provider-level faults
Chaos Toolkit Open-source, scripted experiments Custom, code-driven experiments across platforms
Argo Workflows with scripts General workflow engine Teams building their own chaos pipeline; see the Argo brief

Strengths and limitations

Strengths Limitations
Probes and resilience scores make experiments verifiable More components to operate than a single-operator tool
Large catalog of experiments across Kubernetes and clouds ChaosCenter depends on MongoDB and Argo Workflows
Workflows, scheduling and CI integration Learning curve for CRDs, probes and RBAC
Open source with an active CNCF community Experiment quality varies across the catalog
Commercial support available through Harness Version differences between 1.x, 2.x and 3.x need care

Recommendation

Trial. Litmus suits teams that want chaos experiments to be repeatable, verified and part of delivery pipelines, not occasional manual tests. Begin in staging with one or two experiments, such as pod delete and network latency, define probes on user-facing metrics, and expand once results are trusted. Teams that want the simplest fault injection may compare it with Chaos Mesh.

References: CNCF project page · Litmus website · Litmus repository · CNCF Landscape

Spotted something wrong or out of date?Suggest a correction. I review every suggestion before changing the page.