I have a node js server running at modulus.io. How can I redeploy the latest version of the server without facing downtime ?
Asked
Active
Viewed 293 times
2 Answers
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:
- Send graceful shutdown request to old application.
- Stop the old application instance.
- Remove the old application instance.
- Extract new application instance.
- 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