1.0.5 • Published 3 years ago

kc-cluster v1.0.5

Weekly downloads
6
License
ISC
Repository
github
Last release
3 years ago

Cluster

nodejs Cluster process

Install

npm install kc-cluster

Use

var cluster = require('kc-cluster')(4);
process.title = 'App';
if (cluster.isMaster) {
    console.log(`[${process.pid}] ${process.title} - master`);
}
if (cluster.isWorker) {
    console.log(`[${process.pid}] ${process.title} - slave`);
}
1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago