Created
June 15, 2021 13:06
-
-
Save russmiles/bfcd64d724b3e7ee2cfc4273e4b0bbba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.1.0", | |
"title": "Use SLO as safeguard of the experiment. Terminating it as soon as the error budgets are consumed.", | |
"description": "n/a", | |
"controls": [ | |
{ | |
"name": "safeguard", | |
"provider": { | |
"type": "python", | |
"module": "chaosaddons.controls.safeguards", | |
"arguments": { | |
"probes": [ | |
{ | |
"name": "we-do-not-have-enough-error-budget-left-to-carry-on", | |
"type": "probe", | |
"frequency": 5, | |
"provider": { | |
"type": "python", | |
"module": "chaosreliably.slo.probes", | |
"func": "get_last_N_slos", | |
"arguments": { | |
"quantity": 3 | |
} | |
}, | |
"tolerance": { | |
"type": "probe", | |
"name": "validate-last-3-slo-statuses", | |
"provider": { | |
"type": "python", | |
"module": "chaosreliably.slo.tolerances", | |
"func": "last_N_slo_were_met_for_all_services", | |
"arguments": {} | |
} | |
} | |
} | |
] | |
} | |
} | |
} | |
], | |
"method": [ | |
{ | |
"name": "fake-doing-something-useful", | |
"type": "action", | |
"provider": { | |
"type": "python", | |
"module": "chaosaddons.utils.idle", | |
"func": "idle_for", | |
"arguments": { | |
"duration": 30 | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment