Ellery Leung
Ellery Leung

Reputation: 675

Load balancing on wordpress - 2 LAP web servers 1 Mysql DB - How?

Here is the problem: my client wants to setup a load-balancing wordpress server to handle the increasing number of visitors.

2 Web servers will have setting below:

Load balancer will direct traffic to web server #1, and #2, and #1 and #2 will connect to #3 MySQL to get information.

Notes:

My questions:

  1. I will change the wp-config.php file to point to #3 database. Is it ok? Are there any potential problem?
  2. I will also mount the /upload directory to share by two web servers, both writable. Is it fine?
  3. Session problem: how to share session between wordpress? Somewhere on the web I read that the /tmp folder should be shared also, is it true? If I want to save session to database, will it also work?
  4. Apart from the questions above, did I miss other steps that are critical to success? What should I pay attention to also?

Thanks in advance for your help. All other result on the web are just using rackspace, AWS and other service, which is not what I need.

Upvotes: 0

Views: 3933

Answers (1)

Ellery Leung
Ellery Leung

Reputation: 675

Here is my notes on how to setup my own Load Balancing servers without other cloud services.

Wordpress Load balancing: 2 web servers 1 MySQL without any Cloud services

Upvotes: 1

Related Questions