Question

I'm using the PassengerPreStart and touch tmp/restart.txt to restart my app. Still, it is very slow (10s) to finish the restart process. This make a poor users experience on restart.

It would be nice if servers were not shutdown immediately, and some resquests were still served using the old servers, until the new servers finish their load and are ready to take requests quickly.

Is that possible with Passenger? Is it possible with another Rails webserver? How?

Était-ce utile?

La solution

It's part of their enterprise package.

Documentation for rolling restarts in Apache

Unicorn also supports rolling restarts. Same question, but for Unicorn

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top