1

I have a node js server running at modulus.io. How can I redeploy the latest version of the server without facing downtime ?

Sanjit Roy
  • 177
  • 1
  • 2
  • 11

2 Answers2

1

Modulus builds your app using a new container every time you deploy, so the switching can be as quick as a few milliseconds.

From their docs:

Since the bundle is already built, making the switchover from the old version of your application to the new is very quick. The process is:

  1. Send graceful shutdown request to old application.
  2. Stop the old application instance.
  3. Remove the old application instance.
  4. Extract new application instance.
  5. Start the new application instance.

Under normal conditions, the actual switchover takes a few milliseconds. The amount of time it takes the application to start serving requests then depends on how long it takes your application to startup.

Noah B
  • 331
  • 1
  • 9
0

You can't, Modulus currently deploys to all servos simultaneously so the server will inevitably go down for a few seconds while it starts.

Pier-Luc Gendreau
  • 13,553
  • 4
  • 58
  • 69