Welcome Guest | Login

mongrel on clusters vs just mongrel with 50mb memory?

hi,
i was wondering, what are the benefits of having my site on my own mongrel cluster?

is that just being able to run multiple sites on one account with as much memory as id like for each site?

also, what does adding more memory do to a mongrel based site?? is memory just to store sessions/cache files for faster access?

can cache_fu memcached be installed on my account? just wondering in case my site becomes popular.

thanks!

2007-12-02 10:56 AM

nj rails grunt!
Hi - Yes, Using mongrel cluster will speed up your apps. When you have a single Mongrel instance for you apps - then it will handle the http requests to your site serially. But when you have Mongrel cluster running - the http requests to your site can be handled concurrently by it.

So if heavy traffic to your site, it would be better having mongrel cluster for your apps. And usually for small to medium-sized applications use less than 50 MB per Mongrel instance. So you need to have 50MB of dedicated memory for running a single instance. You can refer this link to get a better idea about the number of mongrel instance you need to run.

2007-12-02 12:47 PM

HostingRails Support
"But when you have Mongrel cluster running - the http requests to your site can be handled concurrently by it."

does that mean a site on a mongrel cluster can handle more than 1 request at a given time? so if my site is mostly dynamic where some requests can only be handled at a rate of 3-6 requests per second, mongrel cluster could handle more than the 3-6 requests per seconds? like if i had 12 users doing the same action at a given time?

2007-12-02 12:57 PM

nj rails grunt!
Hi there - yes, you are thinking about this correctly.  Mongrel will queue up requests but can only serve one at a time, which is why its usually clustered and load balanced.  

2007-12-02 02:59 PM

"can cache_fu memcached be installed on my account? just wondering in case my site becomes popular."

I've been looking into memcached recently and using in on a non HR hosted project. It seems a great way to speed up pages of sites of mine that are generating a lot of database traffic and template processing.

@ the HR team: I looked around but found no mention of running a memcached server on a HR account. Is it possible? what would be the procedure for setting that up?

2008-03-26 12:58 PM

You'll need a VPS or dedicated plan to setup a memcached environment.  It is too resource intensive for everyone on a shared server to use.  

2008-03-26 01:10 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up today!