UNPKG

cluster-master-ext

Version:

A module for taking advantage of the built-in `cluster` module in node v0.8+, enables rolling worker restarts, resizing, repl, events, configurable timeouts, debug method. Zero downtime deploy of workers. Extended version of cluster-master

7 lines (4 loc) 263 B
# Changelog ## v1.0.0 - added listener for `SIGTERM` which triggers graceful shutdown (like `SIGINT`) if `signals` is true (default) - added unique env `CLUSTER_IDX` with zero based index for each worker. It can be used to assign separate ports or resources.