A clustered starter for Node.js applications
Starting workers by CPUs
ProtonCluster.startByCPUS;
Starting workers by specified number
ProtonCluster.start8,;
Starting Protontype application
ProtonCluster.startByCPUS;
Setup events behaviors
Events behaviors should be configured before start clusters.
ProtonCluster.onOnline; ProtonCluster.onExit; ProtonCluster.onDisconnect; ProtonCluster.onMessage; ProtonCluster.startByCPUS;
Cluster instance
You can access native Node.js cluster instance
; cluster.on"online", ;