small logo

melfneerg.com

 - 'cos life is like that


[Blog]  [Pictures]  [Links]  [About
About the Author
Tudor Davies

author Tudor is a techie turned manager who fights like mad to keep his tech skills honed and relevant. Everything from web hosting, networking, *nix and the like. Constantly developing and co-ordinating with others to make the web a better (and easier to use) place.

Load balancers

Monday, 21st Feb 2011  Posted @ 15:09

After having replaced my RAQ3s with a newer (and supremely more powerful (though still lowly) server), the question came to mind as to what to do with them.

In the interests of some work I am doing (at work) and my own personal interest, I am turning them into an HA pair of load balancers using Zen and ucarp.

This meant removing Virtualmin, which is easily done using the

sh install.sh --uninstall
Now they are plain, vanilla Centos 4.4 boxen.
Firstly, I added RPMForge to their repositories and started installing software that was required:
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el4.rf.i386.rpm
rpm -Uhv rpmforge-release-0.5.1-1.el4.rf.i386.rpm
yum install rrdtool
yum install pen
Thats everything "application" wise, so now we just need a load of Perl modules.
Install the CPAN bundle:
perl -MCPAN -e shell
install Bundle::CPAN
Once that has completed, you need to install the following modules:
CGI
Data::Validate::IP
File::Grep
GD
GD::3DBarGrapher
IO::Interface
IO::Socket
Network::IPv4Addr
Proc::Daemon
RRD::Simple
Tie::File
Sys::Hostname

So thats all the dependencies for Zen and ucarp installed, now to install the actual applications. Follow the instructions regarding Zen from here and the ucarp instructions from here
Then configure some services and start testing.

I will update this post as things crop up (if anything needs changing during the install/configure process) and there will be another post when I get round to stress testing them using ab (Apache Bench)

[ no comments : Add ]

Tweet




layout and initial css based on the Qtractor page