yeps-chaos
v0.1.0
Published
YEPS Chaos Monkey
Downloads
3
Maintainers
Readme
YEPS Chaos
Chaos Monkey implementation for YEPS.
How to install
npm i -S yeps-chaos
How to use
Config
config/default.json
{
"chaos": {
"enabled": true,
"error": {
"probability": 0.1 // 0..1
},
"timeout": {
"probability": 0.1, // 0..1
"time": 30 // seconds
}
}
}
app.js
const App = require('yeps');
const error = require('yeps-error');
const chaos = require('yeps-chaos);
const app = new App();
app.then(chaos());
app.then(error());
app.then(...)