Created
September 10, 2015 21:43
-
-
Save spacejam/16aa495e4316f304f411 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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