UNPKG

node-toobusy

Version:

Don't fall over when your Node.JS server is too busy. Now without native dependencies!

56 lines (40 loc) 1.36 kB
### 0.6.3 * Update example.js. Thanks @khalidsalomao ### 0.6.2 * New example and improvements in package.json. Thanks @khalidsalomao ### 0.6.1 * New smoothing factor to be used when lag is falling * Isolate logic of currentLag in an overwritable function ### 0.5.1 * Set `onLag` default threshould to `maxLag()`. Thanks @flentini ### 0.5.0 * Add `toobusy.onLag()` for catching lag events. Thanks @mnahkies ### 0.4.3 * Update dampening formula and make smoothing tunable. Thanks @tgroleau ### 0.4.2 * Input validation for `maxLag()` and `interval()`. ### 0.4.1 * Fix checking not automatically starting. ### 0.4.0 * Refactoring * Added `toobusy.interval()` for getting/setting check interval. ### 0.3.0 * full JS implementation, removed c code & bindings * example bugfixes ### 0.2.3 * node.js 0.10.0 support upgrade to latest bindings and include in .travis.yml ### 0.2.2 * *really* works on windows * improved documentation ### 0.2.1 * works on windows * improved express.js example (now targets express 3.0) ### 0.2.0 * documentation improvements * improved examples (including load generation tool and server) * .lag() added to retrieve (periodically calculated) event loop lag in ms ### 0.1.1 * hey look, unit tests! ### 0.1.0 * improved documentation and samples * added `maxLag` parameter