Chaos Monkey Alternatives

VMware

  • 1 min read
  • Last Updated October 17, 2018

Chaos Engineering with BOSH and Chaos Lemur

CloudFoundry's BOSH unifies CI/CD practices for virtualized, distributed systems like VMware vSphere and the open-source Chaos Lemur tool makes it relatively easy to inject failure into Pivotal Cloud Foundry systems. Chaos Lemur is a self-contained Java application that will randomly destroy virtual machines in any BOSH-managed environment. Similar to the original Chaos Monkey, Chaos Lemur can be configured to execute on a daily schedule and target one or more VMs for destruction based on pseudo-random probabilities. It can also be integrated with Datadog to log destruction events.

Chaos Lemur is a standalone Java 8 application that requires Maven for building and deployment, but otherwise, it can be hosted anywhere. Configuration is handled using local environment variables.

VariableDescriptionTypeDefault
DEFAULT_PROBABILITYPer-run probability a VM will be destroyed (0.0 to 1.0).Float0.2
DRYRUNWhen enabled, Chaos Lemur will perform every step of the process except actual VM destruction.BooleanFALSE
SCHEDULEThe schedule using Spring cron syntax that indicates when to execute Chaos Lemur.String0 0 * * * *
BLACKLISTA comma-separated list indicating the Deployments or Jobs that are not eligible for deletion.String"" (All deployments/jobs eligible)
WHITELISTA comma-separated list indicating the Deployments or Jobs that are eligible for deletion.String""(All deployments/jobs eligible)

Chaos Lemur also requires an infrastructure on which to perform attacks. This requires specifying credential environment variables for your application infrastructure. The full list of supported infrastructures and their respective variables can be found here, but below you'll find the necessary settings for vSphere.

VariableDescription
VSPHERE_HOSTThe vSphere host used to destroy VMs.
VSPHERE_USERNAMEUsername for VSPHERE_HOST access.
VSPHERE_PASSWORDPassword for VSPHERE_HOST access.

The final (optional) component for using Chaos Lemur is Redis. If configured, Chaos Lemur will use Redis to store persistence state information.

Check out the official repository and this blog post for more information on getting Chaos Lemur up and running within your BOSH-managed environment.

Chaos Engineering on VMware with Gremlin

Gremlin finds and helps you fix weaknesses in your VMware architecture before they cause problems. Gremlin makes Chaos Engineering simple, safe, and secure, improving your system's stability and resilience against unexpected failures. You can start running Chaos Experiments on your VMware application in just a few minutes by installing Gremlin as a Cloud Foundry add-on. Gremlin enables you to test your resilience to the unexpected.

Check out these tutorials and the official repository to learn how to install Gremlin and start injecting failure into your VMware system today.

© 2023 Gremlin Inc.All rights reserved.Privacy Policy
Download PDF