Abhishek
Abhishek

Reputation: 6900

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?

Upvotes: 3

Views: 4068

Answers (2)

tesmojones
tesmojones

Reputation: 2667

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

Upvotes: 2

Rafael Kassner
Rafael Kassner

Reputation: 1124

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?

Upvotes: 2

Related Questions