Adding load balancing to a multi-wordpress installation

I am trying to add a load balancer to a wordpress application that has a tiered installation.

WordPress stores the server IP address in MySQL tables since there are two application servers and one database server and load balancing.

I am using RackSpace load balancer.

Someone may ask what DOMAIN_CURRENT_SITE should indicate in wp-config.php, and I need to make some changes to the database to update the IP address, if so, which IP address should be stored in the database.

In addition, I use Lsync utility to synchronize the contents of one server with another, do I also need sycn wp-config.php?

Also, besides wp-config.php and the database, are there any changes I need to make?

Also, most importantly, how to manage a session?

Thanks.

+7
mysql wordpress rackspace load-balancing multisite
source share
1 answer

If you use the Rackspace download balancer according to your comment, you need to use the Load Balancer IP address in the DB tables.

Just make sure that the IP address of the load balancer you are using is a static and not a dynamic IP.

Someone may ask what DOMAIN_CURRENT_SITE should indicate in wp-config.php, and I need to make some changes to the database to update the IP address, if so, which IP address should be stored in the database.

DOMAIN_CURRENT_SITE must be your primary domain. The load balancing IP address must be stored in the database.

In addition, I use Lsync utility to synchronize the contents of one server with another, do I also need sycn wp-config.php?

No need to sync wp-config.php.

Also, besides wp-config.php and the database, are there any changes I need to make?

Please make sure that the “Downloads” directory, in which all media resources are stored, is correctly synchronized for both servers when downloading a new file. Check the wordpress download functionality and see if the downloaded media file is displayed on both servers.

Also, most importantly, how to manage a session?

Rackspace Load Balancer have Session Persistence feature, enable it to view screenshot below. Check the black arrow at the end of the screenshot.

enter image description here

+3
source share

All Articles