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&#x2F;friend, but there are some issues that I&#x27;ve been unable to fix just yet, allow me to explain:<p>* Solution <i></i>must<i></i> be a low-cost solution as money is a determining factor here.
* Client currently only has 2 VPS servers (and can&#x27;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&#x27;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).<p>My question&#x2F;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&#x27;t figure out why, probably .htaccess or the use of some other Apache Module, I haven&#x27;t investigated enough).
Any ideas? Any help is much appreciated.