chaos monkey tests
This commit is contained in:
135
.experiments/roster/chaostoolkit.log
Normal file
135
.experiments/roster/chaostoolkit.log
Normal file
@@ -0,0 +1,135 @@
|
||||
[36m[2021-11-28 14:43:28 DEBUG] [cli:103][39m ###############################################################################
|
||||
[36m[2021-11-28 14:43:28 DEBUG] [cli:104][39m Running command 'run'
|
||||
[36m[2021-11-28 14:43:28 DEBUG] [cli:108][39m Using settings file '/Users/maece/.chaostoolkit/settings.yaml'
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [cli:103][39m ###############################################################################
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [cli:104][39m Running command 'run'
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [cli:108][39m Using settings file '/Users/maece/.chaostoolkit/settings.yaml'
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [settings:30][39m The Chaos Toolkit settings file could not be found at '/Users/maece/.chaostoolkit/settings.yaml'.
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [__init__:389][39m No controls to apply on 'loader'
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [__init__:389][39m No controls to apply on 'loader'
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [caching:24][39m Building activity cache...
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [caching:35][39m Cached 2 activities
|
||||
[32m[2021-11-28 14:43:42 INFO] [experiment:58][39m Validating the experiment's syntax
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [configuration:54][39m Loading configuration...
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [secret:78][39m Loading secrets...
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [secret:104][39m Done loading secrets
|
||||
[32m[2021-11-28 14:43:42 INFO] [experiment:109][39m Experiment looks valid
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [caching:42][39m Clearing activities cache
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [caching:24][39m Building activity cache...
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [caching:35][39m Cached 2 activities
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [configuration:54][39m Loading configuration...
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [secret:78][39m Loading secrets...
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [secret:104][39m Done loading secrets
|
||||
[32m[2021-11-28 14:43:42 INFO] [run:319][39m Running experiment: What is the impact of an expired certificate on our application chain?
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [__init__:49][39m Initializing controls
|
||||
[32m[2021-11-28 14:43:42 INFO] [run:336][39m Steady-state strategy: default
|
||||
[32m[2021-11-28 14:43:42 INFO] [run:340][39m Rollbacks strategy: default
|
||||
[32m[2021-11-28 14:43:42 INFO] [run:345][39m No steady state hypothesis defined. That's ok, just exploring.
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [__init__:389][39m No controls to apply on 'experiment'
|
||||
[32m[2021-11-28 14:43:42 INFO] [run:599][39m Playing your experiment's method now...
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [__init__:389][39m No controls to apply on 'method'
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [__init__:389][39m No controls to apply on 'activity'
|
||||
[32m[2021-11-28 14:43:42 INFO] [activity:188][39m Action: enable_chaosmonkey
|
||||
[36m[2021-11-28 14:43:42 DEBUG] [python:33][39m Activity 'enable_chaosmonkey' loaded from '/Users/maece/.venvs/chaostk/lib/python3.9/site-packages/chaosspring/actions.py'
|
||||
[36m[2021-11-28 14:43:43 DEBUG] [activity:260][39m Activity failed
|
||||
Traceback (most recent call last):
|
||||
File "/Users/maece/.venvs/chaostk/lib/python3.9/site-packages/chaoslib/provider/python.py", line 56, in run_python_activity
|
||||
return func(**arguments)
|
||||
File "/Users/maece/.venvs/chaostk/lib/python3.9/site-packages/chaosspring/actions.py", line 36, in enable_chaosmonkey
|
||||
raise FailedActivity(f"Enable ChaosMonkey failed: {response.text}")
|
||||
chaoslib.exceptions.ActivityFailed: Enable ChaosMonkey failed: {"timestamp":"2021-11-28T13:43:43.069+00:00","status":404,"error":"Not Found","message":"No message available","path":"/actuator/chaosmonkey/enable"}
|
||||
|
||||
During handling of the above exception, another exception occurred:
|
||||
|
||||
Traceback (most recent call last):
|
||||
File "/Users/maece/.venvs/chaostk/lib/python3.9/site-packages/chaoslib/activity.py", line 253, in run_activity
|
||||
result = run_python_activity(activity, configuration, secrets)
|
||||
File "/Users/maece/.venvs/chaostk/lib/python3.9/site-packages/chaoslib/provider/python.py", line 58, in run_python_activity
|
||||
raise ActivityFailed(
|
||||
File "/Users/maece/.venvs/chaostk/lib/python3.9/site-packages/chaoslib/provider/python.py", line 56, in run_python_activity
|
||||
return func(**arguments)
|
||||
File "/Users/maece/.venvs/chaostk/lib/python3.9/site-packages/chaosspring/actions.py", line 36, in enable_chaosmonkey
|
||||
raise FailedActivity(f"Enable ChaosMonkey failed: {response.text}")
|
||||
chaoslib.exceptions.ActivityFailed: chaoslib.exceptions.ActivityFailed: Enable ChaosMonkey failed: {"timestamp":"2021-11-28T13:43:43.069+00:00","status":404,"error":"Not Found","message":"No message available","path":"/actuator/chaosmonkey/enable"}
|
||||
[31m[2021-11-28 14:43:43 ERROR] [activity:213][39m => failed: chaoslib.exceptions.ActivityFailed: Enable ChaosMonkey failed: {"timestamp":"2021-11-28T13:43:43.069+00:00","status":404,"error":"Not Found","message":"No message available","path":"/actuator/chaosmonkey/enable"}
|
||||
[36m[2021-11-28 14:43:43 DEBUG] [__init__:389][39m No controls to apply on 'activity'
|
||||
[36m[2021-11-28 14:43:43 DEBUG] [__init__:389][39m No controls to apply on 'activity'
|
||||
[32m[2021-11-28 14:43:43 INFO] [activity:188][39m Action: configure_assaults
|
||||
[36m[2021-11-28 14:43:43 DEBUG] [python:33][39m Activity 'configure_assaults' loaded from '/Users/maece/.venvs/chaostk/lib/python3.9/site-packages/chaosspring/actions.py'
|
||||
[36m[2021-11-28 14:43:43 DEBUG] [activity:260][39m Activity failed
|
||||
Traceback (most recent call last):
|
||||
File "/Users/maece/.venvs/chaostk/lib/python3.9/site-packages/chaoslib/provider/python.py", line 56, in run_python_activity
|
||||
return func(**arguments)
|
||||
File "/Users/maece/.venvs/chaostk/lib/python3.9/site-packages/chaosspring/actions.py", line 96, in change_assaults_configuration
|
||||
raise FailedActivity(
|
||||
chaoslib.exceptions.ActivityFailed: Change ChaosMonkey Assaults Configuration failed: {"timestamp":"2021-11-28T13:43:43.203+00:00","status":404,"error":"Not Found","message":"No message available","path":"/actuator/chaosmonkey/assaults"}
|
||||
|
||||
During handling of the above exception, another exception occurred:
|
||||
|
||||
Traceback (most recent call last):
|
||||
File "/Users/maece/.venvs/chaostk/lib/python3.9/site-packages/chaoslib/activity.py", line 253, in run_activity
|
||||
result = run_python_activity(activity, configuration, secrets)
|
||||
File "/Users/maece/.venvs/chaostk/lib/python3.9/site-packages/chaoslib/provider/python.py", line 58, in run_python_activity
|
||||
raise ActivityFailed(
|
||||
File "/Users/maece/.venvs/chaostk/lib/python3.9/site-packages/chaoslib/provider/python.py", line 56, in run_python_activity
|
||||
return func(**arguments)
|
||||
File "/Users/maece/.venvs/chaostk/lib/python3.9/site-packages/chaosspring/actions.py", line 96, in change_assaults_configuration
|
||||
raise FailedActivity(
|
||||
chaoslib.exceptions.ActivityFailed: chaoslib.exceptions.ActivityFailed: Change ChaosMonkey Assaults Configuration failed: {"timestamp":"2021-11-28T13:43:43.203+00:00","status":404,"error":"Not Found","message":"No message available","path":"/actuator/chaosmonkey/assaults"}
|
||||
[31m[2021-11-28 14:43:43 ERROR] [activity:213][39m => failed: chaoslib.exceptions.ActivityFailed: Change ChaosMonkey Assaults Configuration failed: {"timestamp":"2021-11-28T13:43:43.203+00:00","status":404,"error":"Not Found","message":"No message available","path":"/actuator/chaosmonkey/assaults"}
|
||||
[36m[2021-11-28 14:43:43 DEBUG] [__init__:389][39m No controls to apply on 'activity'
|
||||
[36m[2021-11-28 14:43:43 DEBUG] [__init__:389][39m No controls to apply on 'method'
|
||||
[32m[2021-11-28 14:43:43 INFO] [run:885][39m Let's rollback...
|
||||
[36m[2021-11-28 14:43:43 DEBUG] [__init__:389][39m No controls to apply on 'rollback'
|
||||
[32m[2021-11-28 14:43:43 INFO] [rollback:27][39m No declared rollbacks, let's move on.
|
||||
[36m[2021-11-28 14:43:43 DEBUG] [__init__:389][39m No controls to apply on 'rollback'
|
||||
[32m[2021-11-28 14:43:43 INFO] [run:450][39m Experiment ended with status: completed
|
||||
[36m[2021-11-28 14:43:43 DEBUG] [__init__:389][39m No controls to apply on 'experiment'
|
||||
[36m[2021-11-28 14:43:43 DEBUG] [__init__:82][39m Cleaning up controls
|
||||
[36m[2021-11-28 14:43:43 DEBUG] [caching:42][39m Clearing activities cache
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [cli:103][39m ###############################################################################
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [cli:104][39m Running command 'run'
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [cli:108][39m Using settings file '/Users/maece/.chaostoolkit/settings.yaml'
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [settings:30][39m The Chaos Toolkit settings file could not be found at '/Users/maece/.chaostoolkit/settings.yaml'.
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [__init__:389][39m No controls to apply on 'loader'
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [__init__:389][39m No controls to apply on 'loader'
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [caching:24][39m Building activity cache...
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [caching:35][39m Cached 2 activities
|
||||
[32m[2021-11-28 16:24:55 INFO] [experiment:58][39m Validating the experiment's syntax
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [configuration:54][39m Loading configuration...
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [secret:78][39m Loading secrets...
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [secret:104][39m Done loading secrets
|
||||
[32m[2021-11-28 16:24:55 INFO] [experiment:109][39m Experiment looks valid
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [caching:42][39m Clearing activities cache
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [caching:24][39m Building activity cache...
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [caching:35][39m Cached 2 activities
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [configuration:54][39m Loading configuration...
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [secret:78][39m Loading secrets...
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [secret:104][39m Done loading secrets
|
||||
[32m[2021-11-28 16:24:55 INFO] [run:319][39m Running experiment: What is the impact of an expired certificate on our application chain?
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [__init__:49][39m Initializing controls
|
||||
[32m[2021-11-28 16:24:55 INFO] [run:336][39m Steady-state strategy: default
|
||||
[32m[2021-11-28 16:24:55 INFO] [run:340][39m Rollbacks strategy: default
|
||||
[32m[2021-11-28 16:24:55 INFO] [run:345][39m No steady state hypothesis defined. That's ok, just exploring.
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [__init__:389][39m No controls to apply on 'experiment'
|
||||
[32m[2021-11-28 16:24:55 INFO] [run:599][39m Playing your experiment's method now...
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [__init__:389][39m No controls to apply on 'method'
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [__init__:389][39m No controls to apply on 'activity'
|
||||
[32m[2021-11-28 16:24:55 INFO] [activity:188][39m Action: enable_chaosmonkey
|
||||
[36m[2021-11-28 16:24:55 DEBUG] [python:33][39m Activity 'enable_chaosmonkey' loaded from '/Users/maece/.venvs/chaostk/lib/python3.9/site-packages/chaosspring/actions.py'
|
||||
[36m[2021-11-28 16:24:56 DEBUG] [activity:205][39m => succeeded with '{"status":"Chaos Monkey is enabled","enabledAt":"2021-11-28T15:24:56.52458Z"}'
|
||||
[36m[2021-11-28 16:24:56 DEBUG] [__init__:389][39m No controls to apply on 'activity'
|
||||
[36m[2021-11-28 16:24:56 DEBUG] [__init__:389][39m No controls to apply on 'activity'
|
||||
[32m[2021-11-28 16:24:56 INFO] [activity:188][39m Action: configure_assaults
|
||||
[36m[2021-11-28 16:24:56 DEBUG] [python:33][39m Activity 'configure_assaults' loaded from '/Users/maece/.venvs/chaostk/lib/python3.9/site-packages/chaosspring/actions.py'
|
||||
[36m[2021-11-28 16:24:57 DEBUG] [activity:205][39m => succeeded with 'Assault config has changed'
|
||||
[36m[2021-11-28 16:24:57 DEBUG] [__init__:389][39m No controls to apply on 'activity'
|
||||
[36m[2021-11-28 16:24:57 DEBUG] [__init__:389][39m No controls to apply on 'method'
|
||||
[32m[2021-11-28 16:24:57 INFO] [run:885][39m Let's rollback...
|
||||
[36m[2021-11-28 16:24:57 DEBUG] [__init__:389][39m No controls to apply on 'rollback'
|
||||
[32m[2021-11-28 16:24:57 INFO] [rollback:27][39m No declared rollbacks, let's move on.
|
||||
[36m[2021-11-28 16:24:57 DEBUG] [__init__:389][39m No controls to apply on 'rollback'
|
||||
[32m[2021-11-28 16:24:57 INFO] [run:450][39m Experiment ended with status: completed
|
||||
[36m[2021-11-28 16:24:57 DEBUG] [__init__:389][39m No controls to apply on 'experiment'
|
||||
[36m[2021-11-28 16:24:57 DEBUG] [__init__:82][39m Cleaning up controls
|
||||
[36m[2021-11-28 16:24:57 DEBUG] [caching:42][39m Clearing activities cache
|
24
.experiments/roster/disable.json
Normal file
24
.experiments/roster/disable.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"title": "Disable chaos monkey",
|
||||
"description": "Disable",
|
||||
"tags": [],
|
||||
"steady-state-hypothesis": {
|
||||
"title": "Hypothesis",
|
||||
"probes": []
|
||||
},
|
||||
"method": [],
|
||||
"rollbacks": [
|
||||
{
|
||||
"name": "disable_chaosmonkey",
|
||||
"provider": {
|
||||
"arguments": {
|
||||
"base_url": "http://localhost:8082/actuator"
|
||||
},
|
||||
"func": "disable_chaosmonkey",
|
||||
"module": "chaosspring.actions",
|
||||
"type": "python"
|
||||
},
|
||||
"type": "action"
|
||||
}
|
||||
]
|
||||
}
|
54
.experiments/roster/exception.json
Normal file
54
.experiments/roster/exception.json
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"title": "Testing exceptions",
|
||||
"description": "Testing exceptions!",
|
||||
"tags": [],
|
||||
"steady-state-hypothesis": {
|
||||
"title": "Hypothesis",
|
||||
"probes": []
|
||||
},
|
||||
"method": [
|
||||
{
|
||||
"name": "enable_chaosmonkey",
|
||||
"provider": {
|
||||
"arguments": {
|
||||
"base_url": "http://localhost:8082/actuator"
|
||||
},
|
||||
"func": "enable_chaosmonkey",
|
||||
"module": "chaosspring.actions",
|
||||
"type": "python"
|
||||
},
|
||||
"type": "action"
|
||||
},
|
||||
{
|
||||
"name": "configure_assaults",
|
||||
"provider": {
|
||||
"arguments": {
|
||||
"base_url": "http://localhost:8082/actuator",
|
||||
"assaults_configuration": {
|
||||
"level": 5,
|
||||
"latencyRangeStart": 2000,
|
||||
"latencyRangeEnd": 15000,
|
||||
"latencyActive": false,
|
||||
"killApplicationActive": false,
|
||||
"restartApplicationActive": false,
|
||||
"exceptionsActive": true,
|
||||
"exception": {
|
||||
"type": "java.lang.RuntimeException",
|
||||
"arguments": [
|
||||
{
|
||||
"className": "java.lang.String",
|
||||
"value": "Exception assault has been carried out"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"func": "change_assaults_configuration",
|
||||
"module": "chaosspring.actions",
|
||||
"type": "python"
|
||||
},
|
||||
"type": "action"
|
||||
}
|
||||
],
|
||||
"rollbacks": []
|
||||
}
|
113
.experiments/roster/journal.json
Normal file
113
.experiments/roster/journal.json
Normal file
@@ -0,0 +1,113 @@
|
||||
{
|
||||
"chaoslib-version": "1.23.0",
|
||||
"platform": "macOS-12.0-arm64-arm-64bit",
|
||||
"node": "Marcels-MBP-M1",
|
||||
"experiment": {
|
||||
"title": "What is the impact of an expired certificate on our application chain?",
|
||||
"description": "If a certificate expires, we should gracefully deal with the issue.",
|
||||
"tags": [
|
||||
"tls"
|
||||
],
|
||||
"steady-state-hypothesis": {
|
||||
"title": "Hypothesis",
|
||||
"probes": []
|
||||
},
|
||||
"method": [
|
||||
{
|
||||
"name": "enable_chaosmonkey",
|
||||
"provider": {
|
||||
"arguments": {
|
||||
"base_url": "http://localhost:8082/actuator"
|
||||
},
|
||||
"func": "enable_chaosmonkey",
|
||||
"module": "chaosspring.actions",
|
||||
"type": "python"
|
||||
},
|
||||
"type": "action"
|
||||
},
|
||||
{
|
||||
"name": "configure_assaults",
|
||||
"provider": {
|
||||
"arguments": {
|
||||
"base_url": "http://localhost:8082/actuator",
|
||||
"assaults_configuration": {
|
||||
"level": 5,
|
||||
"latencyRangeStart": 2000,
|
||||
"latencyRangeEnd": 15000,
|
||||
"latencyActive": true,
|
||||
"exceptionsActive": false,
|
||||
"killApplicationActive": false,
|
||||
"restartApplicationActive": false
|
||||
}
|
||||
},
|
||||
"func": "change_assaults_configuration",
|
||||
"module": "chaosspring.actions",
|
||||
"type": "python"
|
||||
},
|
||||
"type": "action"
|
||||
}
|
||||
],
|
||||
"rollbacks": [],
|
||||
"dry": null
|
||||
},
|
||||
"start": "2021-11-28T15:24:55.984078",
|
||||
"status": "completed",
|
||||
"deviated": false,
|
||||
"steady_states": {
|
||||
"before": null,
|
||||
"after": null,
|
||||
"during": []
|
||||
},
|
||||
"run": [
|
||||
{
|
||||
"activity": {
|
||||
"name": "enable_chaosmonkey",
|
||||
"provider": {
|
||||
"arguments": {
|
||||
"base_url": "http://localhost:8082/actuator"
|
||||
},
|
||||
"func": "enable_chaosmonkey",
|
||||
"module": "chaosspring.actions",
|
||||
"type": "python"
|
||||
},
|
||||
"type": "action"
|
||||
},
|
||||
"output": "{\"status\":\"Chaos Monkey is enabled\",\"enabledAt\":\"2021-11-28T15:24:56.52458Z\"}",
|
||||
"status": "succeeded",
|
||||
"start": "2021-11-28T15:24:55.984855",
|
||||
"end": "2021-11-28T15:24:56.785205",
|
||||
"duration": 0.80035
|
||||
},
|
||||
{
|
||||
"activity": {
|
||||
"name": "configure_assaults",
|
||||
"provider": {
|
||||
"arguments": {
|
||||
"base_url": "http://localhost:8082/actuator",
|
||||
"assaults_configuration": {
|
||||
"level": 5,
|
||||
"latencyRangeStart": 2000,
|
||||
"latencyRangeEnd": 15000,
|
||||
"latencyActive": true,
|
||||
"exceptionsActive": false,
|
||||
"killApplicationActive": false,
|
||||
"restartApplicationActive": false
|
||||
}
|
||||
},
|
||||
"func": "change_assaults_configuration",
|
||||
"module": "chaosspring.actions",
|
||||
"type": "python"
|
||||
},
|
||||
"type": "action"
|
||||
},
|
||||
"output": "Assault config has changed",
|
||||
"status": "succeeded",
|
||||
"start": "2021-11-28T15:24:56.785494",
|
||||
"end": "2021-11-28T15:24:57.394090",
|
||||
"duration": 0.608596
|
||||
}
|
||||
],
|
||||
"rollbacks": [],
|
||||
"end": "2021-11-28T15:24:57.394597",
|
||||
"duration": 1.4326798915863037
|
||||
}
|
45
.experiments/roster/kill-restart.json
Normal file
45
.experiments/roster/kill-restart.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"title": "Testing kill & restart",
|
||||
"description": "Testing behavoir when killing and restarting the application",
|
||||
"tags": [],
|
||||
"steady-state-hypothesis": {
|
||||
"title": "Hypothesis",
|
||||
"probes": []
|
||||
},
|
||||
"method": [
|
||||
{
|
||||
"name": "enable_chaosmonkey",
|
||||
"provider": {
|
||||
"arguments": {
|
||||
"base_url": "http://localhost:8082/actuator"
|
||||
},
|
||||
"func": "enable_chaosmonkey",
|
||||
"module": "chaosspring.actions",
|
||||
"type": "python"
|
||||
},
|
||||
"type": "action"
|
||||
},
|
||||
{
|
||||
"name": "configure_assaults",
|
||||
"provider": {
|
||||
"arguments": {
|
||||
"base_url": "http://localhost:8082/actuator",
|
||||
"assaults_configuration": {
|
||||
"level": 5,
|
||||
"latencyRangeStart": 2000,
|
||||
"latencyRangeEnd": 5000,
|
||||
"latencyActive": false,
|
||||
"exceptionsActive": false,
|
||||
"killApplicationActive": true,
|
||||
"restartApplicationActive": true
|
||||
}
|
||||
},
|
||||
"func": "change_assaults_configuration",
|
||||
"module": "chaosspring.actions",
|
||||
"type": "python"
|
||||
},
|
||||
"type": "action"
|
||||
}
|
||||
],
|
||||
"rollbacks": []
|
||||
}
|
45
.experiments/roster/latency.json
Normal file
45
.experiments/roster/latency.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"title": "Testing latency",
|
||||
"description": "Testing latency!",
|
||||
"tags": [],
|
||||
"steady-state-hypothesis": {
|
||||
"title": "Hypothesis",
|
||||
"probes": []
|
||||
},
|
||||
"method": [
|
||||
{
|
||||
"name": "enable_chaosmonkey",
|
||||
"provider": {
|
||||
"arguments": {
|
||||
"base_url": "http://localhost:8082/actuator"
|
||||
},
|
||||
"func": "enable_chaosmonkey",
|
||||
"module": "chaosspring.actions",
|
||||
"type": "python"
|
||||
},
|
||||
"type": "action"
|
||||
},
|
||||
{
|
||||
"name": "configure_assaults",
|
||||
"provider": {
|
||||
"arguments": {
|
||||
"base_url": "http://localhost:8082/actuator",
|
||||
"assaults_configuration": {
|
||||
"level": 5,
|
||||
"latencyRangeStart": 2000,
|
||||
"latencyRangeEnd": 15000,
|
||||
"latencyActive": true,
|
||||
"exceptionsActive": false,
|
||||
"killApplicationActive": false,
|
||||
"restartApplicationActive": false
|
||||
}
|
||||
},
|
||||
"func": "change_assaults_configuration",
|
||||
"module": "chaosspring.actions",
|
||||
"type": "python"
|
||||
},
|
||||
"type": "action"
|
||||
}
|
||||
],
|
||||
"rollbacks": []
|
||||
}
|
49
.experiments/roster/memory.json
Normal file
49
.experiments/roster/memory.json
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"title": "Testing memory",
|
||||
"description": "Testing memory!",
|
||||
"tags": [],
|
||||
"steady-state-hypothesis": {
|
||||
"title": "Hypothesis",
|
||||
"probes": []
|
||||
},
|
||||
"method": [
|
||||
{
|
||||
"name": "enable_chaosmonkey",
|
||||
"provider": {
|
||||
"arguments": {
|
||||
"base_url": "http://localhost:8082/actuator"
|
||||
},
|
||||
"func": "enable_chaosmonkey",
|
||||
"module": "chaosspring.actions",
|
||||
"type": "python"
|
||||
},
|
||||
"type": "action"
|
||||
},
|
||||
{
|
||||
"name": "configure_assaults",
|
||||
"provider": {
|
||||
"arguments": {
|
||||
"base_url": "http://localhost:8082/actuator",
|
||||
"assaults_configuration": {
|
||||
"level": 5,
|
||||
"latencyActive": false,
|
||||
"killApplicationActive": false,
|
||||
"restartApplicationActive": false,
|
||||
"exceptionsActive": false,
|
||||
"memoryActive": true,
|
||||
"memoryMillisecondsHoldFilledMemory": 90000,
|
||||
"memoryMillisecondsWaitNextIncrease": 100,
|
||||
"memoryFillIncrementFraction": 0.9,
|
||||
"memoryFillTargetFraction": 0.95,
|
||||
"runtimeAssaultCronExpression": "*/1 * * * * ?"
|
||||
}
|
||||
},
|
||||
"func": "change_assaults_configuration",
|
||||
"module": "chaosspring.actions",
|
||||
"type": "python"
|
||||
},
|
||||
"type": "action"
|
||||
}
|
||||
],
|
||||
"rollbacks": []
|
||||
}
|
Reference in New Issue
Block a user