杂种集群

发布于 2024-10-14 02:05:42 字数 328 浏览 1 评论 0原文

如果我有一个应用程序,但有许多用户同时使用它(比方说 30 个),而不是使用 apache 运行,那么 mongrel 集群是否有助于提高性能?到底什么是混合集群?

我注意到你可以使用 apache 进行负载平衡(混合集群)。我只是想知道这是否有助于提高性能/值得花时间实施吗?

============================

编辑:那么当您设置了 mongrel 集群并运行三个 mongrel 实例时,这到底意味着什么?这是否意味着用户可以访问所有三个实例,test:8000、test:8001...等

如果是这样,这对性能有何帮助???

谢谢

If I have a single application but have many users using it at the same time (lets say 30) not running with apache, will mongrel cluster help with performance? What exactly is a mongrel cluster?

I notice that you can have load balancing (mongrel cluster) with apache. I just want to know if this will help with performance/worth the time to implement?

============================

EDIT: So what exactly does it mean when you have three instances of mongrel running when you have mongrel cluster setup? Does this mean that a user can access all three instances, test:8000, test:8001...etc

If so, how does this help with performance???

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不打扰别人 2024-10-21 02:05:42

单个混合实例一次只能处理一个请求。如果两个用户同时访问它,一个请求将必须等待另一个请求完成。另外,如果您不在 Apache、Nginix、Lighttpd 等服务器后面,您将提供所有图像/样式表/等。直接来自 Mongrel,一次一个。

最好的选择是在某种负载均衡器后面使用 mongrel_cluster,并在最前面使用真正的网络服务器。 Web 服务器服务资产请求,将应用程序请求转发到代理平衡器,代理平衡器将它们发送到集群中的混合体。

或者,您可以查看 Passenger,它非常轻松地将所有这些集成到 Apache/Nginix 中。

A single mongrel instance can only handle one request at a time. If two users access it concurrently, one request will have to wait until the other one completes. Also, if you are not behind a server such as Apache, Nginix, Lighttpd, etc., you will be serving all of your images/stylesheets/etc. directly from Mongrel, one at a time.

The best bet would be to use mongrel_cluster behind some kind of a load balancer, with a real webserver at the very front. Webserver serves asset requests, forwards application requests to the proxy balancer which sends them to a mongrel in your cluster.

OR, you could just look into Passenger, which integrates all this into Apache/Nginix really easily.

甚是思念 2024-10-21 02:05:42

我认为如果没有平衡器就无法使用混合集群。
在集群中,您在不同端口上运行许多杂种监听,您需要一个代理来嵌入客户端的请求/响应。

我建议你看一下passenger+apache,它的配置非常简单,可以获得高性能。

链接

I think you couldn't use mongrel cluster without a balancer.
in a cluster you run many mongrel listen on different port , you need a proxy to incalanate the request/response of your client .

i suggest you to look at passenger+apache very simple to configure for high performance.

link

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文