阿帕奇+乘客或乘客_独立
我有一个环境,我的应用程序在 mongrel 上的多台机器上运行,并通过 Apache 进行负载平衡。我正在把杂种换成乘客。乘客独立是一个更好的主意还是 Apache+乘客在每台机器上?
I have an environment where my app is running on multiple machines on mongrel and is getting load balanced by Apache. I am switching mongrel to passenger. Would passenger standalone be a better idea or Apache+passenger on every machine?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,当您的服务器上有许多不同的应用程序并且必须经常使用 Apache 的 VirtualHost 指令时,我想说 Apache+Passenger 是一个不错的选择。如果您只有一个应用程序并尝试平衡负载,那么 apache 会带来大量开销,特别是如果您在每个主机上都安装它只是为了负载平衡目的。然后,您应该考虑将 nginx 与 Thin 一起使用,两者的内存占用都非常小。
Well, I would say Apache+Passenger is a good choice when you have many different apps on your server and you have to make use of Apache's VirtualHost directive a lot. In case you have only a single app and are trying to balance the load, apache brings a lot of overhead, especially if you have it on every host just for load balancing purposes. You should then consider using nginx with thin which both have a very small memory footprint.