[英]using mongrel cluster
Can someone explain to me what is the purpose of using a mongrel cluster for a single application? 有人可以向我解释为单个应用程序使用杂种集群的目的是什么? If you have three instances of mongrel running, I assume that you use apache to load balance and the user connects to a single instance.
如果您有3个运行的mongrel实例,则假定您使用apache进行负载平衡,并且用户连接到单个实例。 But is there any possible improvements to using it for a single application??
但是,将其用于单个应用程序是否有任何可能的改进?
Thank you 谢谢
Without a cluster (ie just one single mongrel instance), you can only handle one request at a time. 如果没有集群(即只有一个杂种实例),则一次只能处理一个请求。 So if ten people try to access your site at the same time, they each have to wait.
因此,如果有十个人尝试同时访问您的网站,则每个人都必须等待。 And if one user does something that triggers a long process, no one else will have access to your site until it's done.
而且,如果一个用户所做的事情触发了漫长的过程,那么只有其他用户才能访问您的网站。 So clustering/load balancing is always a good idea.
因此,群集/负载平衡始终是一个好主意。
About the only time I wouldn't think it necessary is if you're building a site where there would never be more than one person using it at a time (or if you are totally fine with the potential waits/slow-downs). 大约只有一次,我认为没有必要,如果您正在构建一个站点,一次使用该站点的人永远不会超过一个(或者如果您完全满意潜在的等待/慢下来)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.