Skip to content

Instantly share code, notes, and snippets.

@spacejam
Created September 10, 2015 21:43
Show Gist options
  • Save spacejam/16aa495e4316f304f411 to your computer and use it in GitHub Desktop.
Save spacejam/16aa495e4316f304f411 to your computer and use it in GitHub Desktop.
{
"targets": [
{
"name": "mesos-master",
"type": "master"
},
{
"name": "mesos-slave",
"type": "slave"
},
{
"name": "etcd-mesos-executor",
"type": "executor"
},
{
"name": "'etcd --data-dir=etcd_data'",
"type": "server"
},
{
"name": "etcd-mesos-scheduler",
"type": "scheduler"
}
],
"load": [
"sh -c ./loadgen.sh"
],
"check": [
"sh -c ./check1.sh",
"sh -c ./check2.sh"
],
"commands": [
{
"name": "kill",
"start": "ps aux | grep {{ target.name }} | grep -v grep | awk '{print $2}' | sort -R | head -1 | xargs kill -KILL",
"stop": ""
},
{
"name": "pause",
"start": "ps aux | grep {{ target.name }} | grep -v grep | awk '{print $2}' | sort -R | head -1 | xargs kill -STOP",
"stop": "ps aux | grep {{ target.name }} | grep -v grep | awk '{print $2}' | sort -R | head -1 | xargs kill -CONT"
}
],
"fault_concurrency_range": [1,3],
"faults": [
{
"name": "kill",
"check_timeout": 3,
"selectors": [
{
"type": "master"
},
{
"type": "server"
},
{
"type": "scheduler"
}
],
"duration": 10,
"check_delay": 5,
"check_rate": 5
},
{
"name": "pause",
"check_timeout": 3,
"selectors": [
{
"type": "master"
},
{
"type": "slave"
},
{
"type": "executor"
},
{
"type": "server"
},
{
"type": "scheduler"
}
],
"duration": 10,
"check_delay": 5,
"check_rate": 5
}
],
"duration": 30
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment