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?

有帮助吗?

解决方案

It's part of their enterprise package.

Documentation for rolling restarts in Apache

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top