x-server-clusterize

Build Status](https://travis-ci.org/x-component/x-server-clusterize)

Usage no npm install needed!

<script type="module">
  import xServerClusterize from 'https://cdn.skypack.dev/x-server-clusterize';
</script>

README

x-server-clusterize

Build Status](https://travis-ci.org/x-component/x-server-clusterize)

./clusterize.js

cluster

Runs the mobile portal HTTP server as a cluster containing of so many nodes as processor cores available.

this.start()

Cluster Start: starts the master and forks worker threads.

this.stop(exit:)

Cluster Stop: destroys all workers, removes pid file

this.fork()

Creates a specified count worker threads in free slots

this._on_worker_exit()

Callback function called, when a worker thread died. Starts a new worker thread.