# Use clustering on multiple physical servers

**URL:** <https://www.ruby-forum.com/t/use-clustering-on-multiple-physical-servers/147498>\
**Category:** Rails\
**Created:** [September 2, 2008, 3:49pm UTC](https://www.ruby-forum.com/t/use-clustering-on-multiple-physical-servers/147498 "2008-09-02T15:49:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charles\_HENRY](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/57b2e6/32.png) [@Charles\_HENRY](https://www.ruby-forum.com/u/Charles_HENRY)\
**Post date:** [September 2, 2008, 3:49pm UTC](https://www.ruby-forum.com/t/use-clustering-on-multiple-physical-servers/147498/1 "2008-09-02T15:49:01Z")

</div>

Hi,

I want to know if it’s possible to have one application with  
clustering on 2 different servers ? With mongrel, I can run some  
clusters to improve performance on one physical server. But, if I have  
a physical problem on the machine, my application will be down. If I  
can have it on 2 different servers using a shared database, I improve  
my performance and the security of my application.

I can’t find anything on Internet about that.

Anyone knows if it’s possible ? and how ?

Thanks

---

<div class="post-metadata">

**Author:** ![Charles\_HENRY](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/57b2e6/32.png) [@Charles\_HENRY](https://www.ruby-forum.com/u/Charles_HENRY)\
**Post date:** [September 2, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/use-clustering-on-multiple-physical-servers/147498/2 "2008-09-02T16:17:49Z")

</div>

Hi Charles,

> I want to know if it’s possible to have one application with  
> clustering on 2 different servers ? With mongrel, I can run some  
> clusters to improve performance on one physical server. But, if I have  
> a physical problem on the machine, my application will be down. If I  
> can have it on 2 different servers using a shared database, I improve  
> my performance and the security of my application.

What you’re looking for is pretty common. You put multiple servers  
behind a  
load balancer, each server running your app and a mongrel cluster. As  
long  
as you’re using a shared database, and you’re using ActiveRecord session  
store, it’s pretty straight-forward. You might want to post to the  
rails-deploy group for more detailed info.

HTHj,  
Bill
