npm install akyuu-clusterCluster module for Akyuu.js.
``js`
akyuu.startCluster(listeners);
akyuu.startCluster({
onFork: function() {
// ...
}
});
> listeners is optional and it contains several listeners.onFork(worker)
>
> + onDisconnect(worker)
> + onExit(worker, code, signal)
> + onUnexpectedExit(worker, code, signal)
> + onReachReforkLimit()
> +
>
> Refer to https://github.com/node-modules/cfork#example.
`js`
{
cluster: {
workerCount:
entry:
limit:
duration:
}
}
> All configuration is optional but you'd better specify entry`.