Use clustering on multiple physical servers

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

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