Mod_rails 和 mongrel 在同一台服务器上运行?
我目前正在运行混合集群,并使用 monit 监视一台服务器上的 8 个 Rails 应用程序。
我想将其中 7 个应用程序移至 mod_rails,其中 1 个保留在 mongrel 上。 7 个较小的应用程序是低容量的,而我想保留在杂种上的一个是高容量的应用程序。
据我了解,这将是最好的解决方案 - 因为设置 PassengerPoolIdleTime 只能在全局级别应用。
对于这种类型的设置,我应该注意哪些配置问题?
I'm currently running mongrel clusters with monit watching over them for 8 Rails applications on one server.
I'd like to move 7 of these applications to mod_rails, with one remaining on mongrel. The 7 smaller applications are low-volume, while the one I'd like to remain on mongrel is a high volume, app.
As I understand it, this would be the best solution - as the setting PassengerPoolIdleTime only can be applied at a global level.
What configuration gotchas should I look out for with this type of setup?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我可能会将所有应用程序移至 mod_rails,因为其性能似乎与 Mongrel 相当,而且管理开销也更少。
关于配置陷阱,只需确保允许公共目录,否则您会发现静态资产失败:
除此之外,如果您知道如何配置 Apache,mod_rails 非常轻松。
I would probably just move all the apps to mod_rails, as the performance seems comparable to Mongrel and there's less administration overhead.
With regards to configuration gotchas, just make sure that you allow your public directory, or you'll find static assets failing:
Aside from that, if you know how to configure Apache, mod_rails is very painless.
最终将所有内容移至 mod_rails。
像冠军一样工作!
Ended up moving everything to mod_rails.
Works like a champ!