primary process
The first process in a Node.js cluster, which starts and replaces worker processes and distributes connections to them.
In more detail
It runs no application requests itself. Older documentation calls it the master.
Related terms
- cluster module — The Node.js module that starts several copies of a server as worker processes sharing one port, so a machine's CPU cores can all serve requests.
- worker process — One of the processes forked by a cluster's primary to handle requests, each with its own memory and event loop.
Taught in
- Cluster Architecture: node:cluster & Zero-Downtime — Node.js Internals & Backend Services