I have a Nodejs application that included clustering for being uptime and domain for error handling.
Now for achieving zero downtime deployment, I have an instruction but I need help to convert this instruction to Nodejs code (I need an example for it please).
This is the instruction:
- When master starts, give it a symlink to worker code.
- After deploying new code, update symlink
- Send a signal to master: fork new workers!
- Mater tells old workers to shut down, forks new workers from new code.
- Mater process never stop running
Instruction source -> slide number 39