Magento cluster/load balance set up

I am planning to set up Magento in a cluster with load balancing, so is it possible to have two Magento installations pointing to the same database?

If it possible - how should I configure the base url for these servers? Should the servers have the same name?

Answers


Usually the load balancer that chooses to what server you will be redirected, so, you URL will keep the same for both servers.

Are you setting up Magento over Amazon EC2/ELB?


Yes you can:

  1. for load balancer you can use Pound, it is very easy to setup.
  2. when installing magento as backend (in the first installation page), you must fill with same database configuration (host, database name, user name, user password).
  3. for "Base URL", fill with IP of load balancer, then checked the "Skip Base URL Validation Before the Next Step"
  4. on "Session Storage Options" you must choose "Database", so all magento backend will use same server as database and session storage
  5. you shouldn't have the same name for each server

Need Your Help

Forcing buffer overflow for Understanding

c buffer-overflow

I'm attempting to understand the concept of a buffer overflow and I'm having trouble computing how much data to stuff into the stack so it overflows correctly. Suppose I'm given some code (this is ...

PHP not working on js form

javascript php html forms

I have a form on my website(http://hokuco.com/test/). It creates a folder with php, but ever since I installed a javascript my php is not working. The javascript redirects to the folder the php cre...