Ask HN: Ideas for load balancing under Apache? I am currently facing a challenge were I must load balance a series of domains for a client/friend, but there are some issues that I've been unable to fix just yet, allow me to explain: * Solution must be a low-cost solution as money is a determining factor here. * Client currently only has 2 VPS servers (and can't afford to get more) * Server specs are: 2.3 GHz monocore CPU, 1 GB RAM, 20 GB SSD Storage (both of them). * Both servers are running Debian 7.5 Wheezy. * Client has already installed and running zPanel in one of the servers and has configured a series of Wordpress sites. * Client uses some WP Plugins to generate content, this hangs the server every time as CPU consumption is a lot. * I have transfered the DB Server to the second server to help leverage the load. * Client can't afford downtime in the websites. * Just managed to convince him that zPanel would not be necessary (I will write a couple of bash scripts to automate vhost creation and wordpress configuration). My question/challenge here is: How can I help leverage CPU load in the server with little to no downtime? I have read about HAPROXY and I know for sure that this would be relatively easy with nginx, but the main setup is done with Apache and one of the sites refused to work properly under nginx (still can't figure out why, probably .htaccess or the use of some other Apache Module, I haven't investigated enough). Any ideas? Any help is much appreciated. |