I am trying to setup a load-balanced small cluster to accommodate growing traffic on my WooCommerce site. The topology is going to be like this:
- Load balancer running nginx
- 2 application servers (running nginx + PHP-FPM on each)
- 1 database server running Percona MySQL
I’ve been playing around with nginx since I found your tutorials. Really good tutorials, by the way. But I also noticed that your tuts are basically for single server setup and not really for clustered approach.
I looked around the Web and doesn’t really find how to use FastCGI_Cache on nginx load balancer. And judging from the config, my guess is that it works mainly on one server. So I have a few questions.
1.) Can I use FastCGI_Cache on load balancer running nginx? Any tuts or links will be appreciated if I can.
2.) If I have no other choice but to use proxy_cache module on load balancer, then what should I do with configurations for WooCommerce (skipping cache on certain dynamic pages, skip cache on filled cart, skip cache on some cookies, etc.)?
If there are any other load balancing setup with caching you would recommend, please let me know too.