Cluster

Node.js cluster module — multi-process networking support.

Module: node:cluster Support: Experimental Since: 1.1.0 Docs: Node.js Docs See also: https://nodejs.org/api/cluster.html

Static Methods

🟢 fork(env)
Spawn a new worker process.

Properties

🟢 isPrimary
True if the process is a primary (master). Deprecated alias: isMaster.
🟢 isMaster
Deprecated alias for isPrimary.
🟢 isWorker
True if the process is a worker.
🟢 workers
A hash of active worker objects, keyed by id.