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
http://httpd.apache.org/download.cgi#apache24
Download APR, APR-Util, and pcre
http://apr.apache.org/download.cgi
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.zip
Unpacking
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
make
sudo make install
Configure HTTPD Load Balancer
Go to the httpd root folder.
./configure --with-included-apr --enable-proxy --enable-proxy-balancer
make
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.