Skip to content

Instantly share code, notes, and snippets.

@russmiles
Created June 15, 2021 13:06
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/bfcd64d724b3e7ee2cfc4273e4b0bbba to your computer and use it in GitHub Desktop.
Save russmiles/bfcd64d724b3e7ee2cfc4273e4b0bbba to your computer and use it in GitHub Desktop.
{
"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