سؤال

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