Node.js - Cluster Module
What happens if a worker process crashes in a Node.js cluster setup with the following code?
const cluster = require('cluster');
if (cluster.isPrimary) {
cluster.fork();
cluster.on('exit', (worker) => {
console.log(`Worker ${worker.process.pid} died`);
cluster.fork();
});
}