All Projects → litmuschaos → chaos-runner

litmuschaos / chaos-runner

Licence: Apache-2.0 License
The bridge between chaos operator and chaos experiment! Lifecycle manager for chaos experiments

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to chaos-runner

litmus-on-okteto
Use Litmus and Okteto Cloud to show you how to start Chaos testing your Kubernetes applications.
Stars: ✭ 32 (+128.57%)
Mutual labels:  litmuschaos
test-tools
A set of containerized applications, workload generators that will be consumed by openebs/e2e & openebs/litmus
Stars: ✭ 25 (+78.57%)
Mutual labels:  litmuschaos
litmus-go
No description or website provided.
Stars: ✭ 49 (+250%)
Mutual labels:  litmuschaos

CHAOS RUNNER

Slack Channel GitHub Workflow Docker Pulls GitHub issues Twitter Follow CII Best Practices Go Report Card BCH compliance FOSSA Status YouTube Channel

The chaos Runner is an operational bridge between the Chaos-Operator and the LitmusChaos experiment jobs.

  • It is launched as a pod in the chaos namespace(where chaosengine is running) & reconciled by the Litmus Chaos Operator
  • Reads the chaos parameters from the experiment CR & overrides with values from the ChaosEngine, constructs the experiment job after validating dependencies such as configmap/secret volumes & launches it (along with the monitor/chaos-exporter deployment if engine's monitoring policy is true)
  • Monitors the experiment pod until completion
  • Cleans up the experiment job post completion based on the engine's jobCleanUpPolicy (delete or retain)
  • Patches the ChaosEngine with the verdict of the experiment and creates the events for the different phases inside chaosengine.

Objective behind chaos-runner creation:

  • Support a contextual/audit logging framework in litmus where the sequence of events from creation of the engine to its eventual removal (with the experiment execution summary in b/w) is traceable

  • Support termination/abort of experiments in progress, Removal of all chaos residue with single operation etc., One of the ways to achieve this, is to ensure that the OwnerReference of the ChaosEngine is passed to the experiment jobs (which can be arguably termed the child resources along with the runner itself) to allow the garbage collection to take care of the deletePropagation.

  • Create and/or mount volume (configmaps, secrets) resources with validation for availability of these resources.

  • Support dependency management of experiments in case of batch runs with possible parallel / asynchronous execution & thereby patching of the ChaosEngine.

  • Allow multiple combinations of random execution in case of future support for Chaos Scheduling, where it may be necessary for the job execution to be randomized based on different conditions (iteration count, minimum intervals etc.,)

Further Improvements

  • The Go Chaos Runner is in beta stage with further improvements coming soon!!

How to get started?

Refer the LitmusChaos documentation and Experiment Documentation

How do I contribute?

You can contribute by raising issues, improving the documentation, contributing to the core framework and tooling, etc.

Head over to the Contribution guide

License

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].