[英]Mod_rails and mongrel running on the same server?
I'm currently running mongrel clusters with monit watching over them for 8 Rails applications on one server. 我目前正在运行mongrel集群,monit在一台服务器上监视8个Rails应用程序。
I'd like to move 7 of these applications to mod_rails, with one remaining on mongrel. 我想将其中7个应用程序移动到mod_rails,其中一个仍然是mongrel。 The 7 smaller applications are low-volume, while the one I'd like to remain on mongrel is a high volume, app.
7个较小的应用程序是低容量的,而我想留在杂种上的应用程序是一个高容量应用程序。
As I understand it, this would be the best solution - as the setting PassengerPoolIdleTime only can be applied at a global level. 据我了解,这将是最好的解决方案 - 因为PassengerPoolIdleTime设置只能在全局级别应用。
What configuration gotchas should I look out for with this type of setup? 我应该注意这种类型的设置需要什么配置?
I would probably just move all the apps to mod_rails, as the performance seems comparable to Mongrel and there's less administration overhead. 我可能只是将所有应用程序移动到mod_rails,因为性能似乎与Mongrel相当,并且管理开销较少。
With regards to configuration gotchas, just make sure that you allow your public directory, or you'll find static assets failing: 关于配置问题,只需确保您允许公共目录,否则您将发现静态资产失败:
<Directory "/var/www/app/current/public">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Aside from that, if you know how to configure Apache, mod_rails is very painless. 除此之外,如果你知道如何配置Apache,mod_rails是非常轻松的。
Ended up moving everything to mod_rails. 结束将所有内容移动到mod_rails。
Works like a champ! 像冠军一样工作!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.