Sunday, 4 June 2017

Zero downtime deployment Nodejs application

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:

  1. When master starts, give it a symlink to worker code.
  2. After deploying new code, update symlink
  3. Send a signal to master: fork new workers!
  4. Mater tells old workers to shut down, forks new workers from new code.
  5. Mater process never stop running

Instruction source -> slide number 39



via kazem 2073

No comments:

Post a Comment