Lines Matching defs:cluster
25 const cluster = require('cluster');
27 if (cluster.isWorker) {
33 cluster.worker.on('disconnect', common.mustCall(() => {
37 } else if (cluster.isPrimary) {
40 cluster: {
56 const worker = cluster.fork();
64 // Check cluster events
65 cluster.once('disconnect', common.mustCall(() => {
66 checks.cluster.emitDisconnect = true;
68 cluster.once('exit', common.mustCall(() => {
69 checks.cluster.emitExit = true;
89 const c = checks.cluster;