简体   繁体   中英

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. 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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM