code: function spawnWorker() {
  
          // Create a new worker
          const worker = cluster.fork();
  
          // Automatically respawn the workers on exit
          worker.on("exit", function () {
              logger("Spawning new worker to replace", worker.process.pid);
              spawnWorker();
          });
  
          // Listen for messages from this worker
          worker.on("message", messageFromWorker);
      }
docs: spawnWorker()
  Spawn and configures a new worker process