UNPKG

cluster-service

Version:

Turns your single process code into a fault-resilient multi-process service with built-in REST & CLI support

16 lines (13 loc) 305 B
var cluster = require("cluster"); module.exports = function(evt, cb) { cb(null, "OK"); }; module.exports.more = function(cb) { cb(null, { command: "health", info: [ "Returns health of service.", "May be overidden by service to expose app-specific data." ].join(' ') }); };