Question
How to best load balance a WordPress/WooCommerce e-commerce site?
I have been running my WordPress/WooCommerce e-commerce and membership site happily for a couple of years now all on one server. But my traffic and membership is such that I want to transition to a more fault tolerant setup. I was thinking of the following:
- 1 DB server
- 2 WordPress servers (setup using easyengine with NGINX, PHP7)
- 1 Load Balancer
The above setup should be all I need for now, but I have a few questions:
SSL passthrough to each of the WP servers or not? What happens when someone makes a purchase if SSL is terminated on the Load Balancer? Does this all just work seamlessly with authorize.net (or other gateways) or are there some issues there?
Are there specific nginx config or session gotchas in this scenario?
What about server naming? What are the server names in each of the WP servers if they are sharing the same DB? how do I make them different? DO i need to make them different?
Anything else I should be aware of?
Thanks!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×