Skip to content

Instantly share code, notes, and snippets.

@russmiles
Created June 7, 2018 11:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save russmiles/7f4a99110fa9cb6d90025429845bc463 to your computer and use it in GitHub Desktop.
{
"version": "1.0.0",
"title": "Setting and triggering service dependency death",
"description": "Uses the Spring Chaos Monkey to manipulate a service",
"tags": [
"service",
"spring"
],
"steady-state-hypothesis": {
"probes": [
{
"name": "consumer-service-must-still-respond",
"provider": {
"type": "http",
"url": "http://localhost:8080/invokeConsumedService"
},
"tolerance": 200,
"type": "probe"
}
],
"title": "System is healthy"
},
"method": [
{
"name": "enable_chaosmonkey",
"provider": {
"arguments": {
"base_url": "http://localhost:8090/actuator"
},
"func": "enable_chaosmonkey",
"module": "chaosspring.actions",
"type": "python"
},
"type": "action"
},
{
"name": "configure_assaults",
"provider": {
"arguments": {
"base_url": "http://localhost:8090/actuator",
"assaults_configuration": {
"level": 1,
"latencyRangeStart": 2000,
"latencyRangeEnd": 5000,
"latencyActive": false,
"exceptionsActive": false,
"killApplicationActive": true,
"restartApplicationActive": false
}
},
"func": "change_assaults_configuration",
"module": "chaosspring.actions",
"type": "python"
},
"type": "action"
},
{
"name": "trigger-kill",
"provider": {
"type": "http",
"url": "http://localhost:8080/"
},
"type": "probe"
}
],
"rollbacks": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment