Skip to content

Instantly share code, notes, and snippets.

@russmiles
Created July 18, 2018 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save russmiles/1c4b0ca6c08387dc745dc31206738ae7 to your computer and use it in GitHub Desktop.
Save russmiles/1c4b0ca6c08387dc745dc31206738ae7 to your computer and use it in GitHub Desktop.
$ chaos run experiment.json
[2018-07-18 16:25:27 INFO] Validating the experiment's syntax
[2018-07-18 16:25:28 INFO] Experiment looks valid
[2018-07-18 16:25:28 INFO] Running experiment: My application is resilient to admin-instigated node drainage
[2018-07-18 16:25:28 INFO] Steady state hypothesis: Services are all available and healthy
[2018-07-18 16:25:28 INFO] Probe: application-must-respond-normally
[2018-07-18 16:25:28 INFO] Probe: pods_in_phase
[2018-07-18 16:25:28 INFO] Steady state hypothesis is met!
[2018-07-18 16:25:28 INFO] Action: drain_node
[2018-07-18 16:25:29 ERROR] => failed: chaoslib.exceptions.FailedActivity: Failed to evict pod my-service-6dc649f897-7m72z: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"Cannot evict pod as it would violate the pod's disruption budget.","reason":"TooManyRequests","details":{"causes":[{"reason":"DisruptionBudget","message":"The disruption budget my-app-pdb needs 3 healthy pods and has 3 currently"}]},"code":429}
[2018-07-18 16:25:29 INFO] Steady state hypothesis: Services are all available and healthy
[2018-07-18 16:25:29 INFO] Probe: application-must-respond-normally
[2018-07-18 16:25:29 INFO] Probe: pods_in_phase
[2018-07-18 16:25:29 INFO] Steady state hypothesis is met!
[2018-07-18 16:25:29 INFO] Let's rollback...
[2018-07-18 16:25:29 INFO] Rollback: uncordon_node
[2018-07-18 16:25:29 INFO] Action: uncordon_node
[2018-07-18 16:25:29 INFO] Experiment ended with status: completed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment