Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions saltstack/burn_cpu_saltstack_with_cred.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"title": "Sample Experiment Burn CPU",
"description": "This experiment runs CPU intensive processes, simulating a noisy neighbor or a faulty CPU. The instance will effectively have a much slower CPU.",
"configuration": {
"environment": "any"
},
"method": [
{
"type": "action",
"name": "burn_cpu",
"provider": {
"type": "python",
"module": "chaossaltstack.machine.actions",
"func": "burn_cpu",
"arguments": {
"execution_duration": "60",
"instance_ids": [ "scdcr100237" ]
},
"secrets": ["saltstack"]
}
}
],
"secrets": {
"saltstack": {
"SALTMASTER_HOST": "http://<saltmaster_host>:<port>",
"SALTMASTER_USER": "<user>",
"SALTMASTER_PASSWORD": "<pass>"
}
}
}
32 changes: 32 additions & 0 deletions saltstack/kill_process_saltstack_with_cred.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"title": "Sample Experiment kills proccess by process or PID",
"description": "This experiment kills processes by process or PID",
"configuration": {
"environment": "any"
},
"method": [
{
"type": "action",
"name": "kill_process",
"provider": {
"type": "python",
"module": "chaossaltstack.machine.actions",
"func": "kill_process",
"arguments": {
"execution_duration": "60",
"process": "1024",
"signal": "-9",
"instance_ids": [ "scdcr100237" ]
},
"secrets": ["saltstack"]
}
}
],
"secrets": {
"saltstack": {
"SALTMASTER_HOST": "http://<saltmaster_host>:<port>",
"SALTMASTER_USER": "<user>",
"SALTMASTER_PASSWORD": "<pass>"
}
}
}
32 changes: 32 additions & 0 deletions saltstack/killall_processes_saltstack_with_cred.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"title": "Sample Experiment kills proccess by name",
"description": "This experiment kills processes by name",
"configuration": {
"environment": "any"
},
"method": [
{
"type": "action",
"name": "killall_processes",
"provider": {
"type": "python",
"module": "chaossaltstack.machine.actions",
"func": "killall_processes",
"arguments": {
"execution_duration": "60",
"process_name": "java",
"signal": "-9",
"instance_ids": [ "scdcr100237" ]
},
"secrets": ["saltstack"]
}
}
],
"secrets": {
"saltstack": {
"SALTMASTER_HOST": "http://<saltmaster_host>:<port>",
"SALTMASTER_USER": "<user>",
"SALTMASTER_PASSWORD": "<pass>"
}
}
}
24 changes: 24 additions & 0 deletions saltstack/network_corruption_saltstack.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"title": "Sample Experiment network corruption",
"description": "This experiment makes your network package corruption",
"configuration": {
"environment": "any"
},
"method": [
{
"type": "action",
"name": "network_corruption",
"provider": {
"type": "python",
"module": "chaossaltstack.machine.actions",
"func": "network_corruption",
"arguments": {
"execution_duration": "60",
"corruption_ratio": "5%",
"device": "ens192",
"instance_ids": [ "scdcr100237" ]
}
}
}
]
}
34 changes: 34 additions & 0 deletions saltstack/network_latency_saltstack_with_cred.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"title": "Sample Experiment network latency",
"description": "This experiment add latency to your network",
"configuration": {
"environment": "any"
},
"method": [
{
"type": "action",
"name": "network_latency",
"provider": {
"type": "python",
"module": "chaossaltstack.machine.actions",
"func": "network_latency",
"arguments": {
"execution_duration": "60",
"delay": "500ms",
"variance": "50ms",
"ratio": "5%",
"device": "ens192",
"instance_ids": [ "scdcr100237","scdcr100238" ]
},
"secrets": ["saltstack"]
}
}
],
"secrets": {
"saltstack": {
"SALTMASTER_HOST": "http://<saltmaster_host>:<port>",
"SALTMASTER_USER": "<user>",
"SALTMASTER_PASSWORD": "<pass>"
}
}
}
24 changes: 24 additions & 0 deletions saltstack/network_loss_saltstack.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"title": "Sample Experiment network loss",
"description": "This experiment makes your network loss",
"configuration": {
"environment": "any"
},
"method": [
{
"type": "action",
"name": "network_loss",
"provider": {
"type": "python",
"module": "chaossaltstack.machine.actions",
"func": "network_loss",
"arguments": {
"execution_duration": "60",
"loss_ratio": "5%",
"device": "ens192",
"instance_ids": [ "scdcr100237" ]
}
}
}
]
}