# Multiple instances of same application

**URL:** <https://www.ruby-forum.com/t/multiple-instances-of-same-application/107677>\
**Category:** Deployment\
**Created:** [June 25, 2007, 8:04am UTC](https://www.ruby-forum.com/t/multiple-instances-of-same-application/107677 "2007-06-25T08:04:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/919ad9/32.png) [@pedro](https://www.ruby-forum.com/u/pedro)\
**Post date:** [June 25, 2007, 8:04am UTC](https://www.ruby-forum.com/t/multiple-instances-of-same-application/107677/1 "2007-06-25T08:04:20Z")

</div>

Hi,

I am planning the deployment of my first rails app. The app is such  
that different users can, and should, be running against their own  
personal and separate databases. The load caused by each user is  
fairly low, with perhaps one hit every 10 minutes or so, but for the  
economics of the app to work I need to be able to host as many users  
as possible per machine. From my research so far, I was planning on  
running Apache+ mod\_proxy against a cluster of mongrel servers, but it  
is not clear to me if I need one mongrel cluster per database/user or  
if can share mongrel instances between them.

Any advice or references?

-pp

---

<div class="post-metadata">

**Author:** ![pedro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/919ad9/32.png) [@pedro](https://www.ruby-forum.com/u/pedro)\
**Post date:** [June 25, 2007, 8:10am UTC](https://www.ruby-forum.com/t/multiple-instances-of-same-application/107677/2 "2007-06-25T08:10:22Z")

</div>

Advice and reference: [http://rubyworks.rubyforge.org](http://rubyworks.rubyforge.org)

On 6/25/07, Pedro [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> is not clear to me if I need one mongrel cluster per database/user or  
> if can share mongrel instances between them.
> 
> Any advice or references?
> 
> -pp
> 
> >

–  
Jeff X.  
Software Journeyman - [http://gigix.thoughtworkers.org](http://gigix.thoughtworkers.org)  
Open Source Contributor - [http://rubyworks.rubyforge.org](http://rubyworks.rubyforge.org)  
Technical Evangelist - [http://www.infoq.com/cn/](http://www.infoq.com/cn/)

---

<div class="post-metadata">

**Author:** ![pedro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/919ad9/32.png) [@pedro](https://www.ruby-forum.com/u/pedro)\
**Post date:** [June 25, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/multiple-instances-of-same-application/107677/3 "2007-06-25T21:04:29Z")

</div>

I was hoping for something a bit more specific. There was little  
documentation on the site and I am not sure that I need another  
package, rather I would preffer to understand if I want I want can be  
done with mongrel.

-pp
