Cluster Module

suggest change

Syntax

Remarks

Note that cluster.fork() spawns a child process that begins executing the current script from the beginning, in contrast to the fork() system call in C, which clones the current process and continues from the instruction after the system call in both parent and child. cluster.isMaster and cluster.setupMaster() remain as aliases; since Node.js 16 the preferred names are cluster.isPrimary and cluster.setupPrimary().

The Node.js Documentation has a more complete guide to clusters here

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents