Monday, March 12, 2012

Building Apache HTTPD Load Balancer from trunk on Ubuntu 11.10

This post discusses how to install Apache Module mod_proxy_balancer locally.
However, you can just configure mod_proxy load balancer using the builds, without using the source.
Downloading the sources
Download the HTTPD source and extract it

Download APR, APR-Util, and pcre

Unpack APR and APR-Util into ./srclib/apr and ./srclib/apr-util
Be sure the domain names do not have version numbers; for example, the APR distribution must be under ./srclib/apr/
Extract pcre as well.

Building pcre
Go to pcre root directory
sudo ./configure --enable-unicode-properties
sudo make install

Configure HTTPD Load Balancer
Go to the httpd root folder.

./configure --with-included-apr --enable-proxy --enable-proxy-balancer
sudo make install

Now you have installed the Apache HTTPD Load Balancer locally, to its default location $APACHE2_HOME - /usr/local/apache2/. You can configure it to balance the load across your service instances that to be load balanced.

No comments:

Post a Comment

You are welcome to provide your opinions in the comments. Spam comments and comments with random links will be deleted.