a node worker process monitor
A module for monitoring the memory usage of Node worker processes, and killing them when they reach a specified limit. This module is designed to be used in conjunction with clusterflock.
Simply require and call
worker-monitor for it to begin monitoring worker
worker-monitor function accepts a few options:
5000) The time after which a disconnecting worker will be immediately killed if it has failed to disconnect.
10000) The frequency with with a worker's memory usage will be logged.
5000) The frequency with with a worker's memory is monitored. This is when the worker will be killed if it exceeds
220000000) The limit (in bytes) that a worker's RSS may be.
require'worker-monitor'disconnectTimeout: 10000logPeriod : 5000;