|
|
||
|
||
>> Samples >>> System Administration >>>> Proxy Load Balance |
|
|
Proxy load balance is modified work by Miroslav Madzarevic as of May 1st 2002 based originally on proxy-2.2.4 program by thpii@0factor.com released under the GPL. proxylb is a C program written to balance incoming connections to numerous end boxes (computers) using a simple weight algorithm. With its low memory and disk footprint, threads it is ideal for professional load balancing. It uses a single config file (by default config.txt in the current directory) where all the setup is made. That file contains on each line box name, box port and weight of that box. Weight is something you write yourself according to the power of the end box. The stronger the box is (more ram, faster cpu, faster internet connection) the more weight it has and it is more probable that the next outbound connection will use it. You can change config.txt dinamically with the program running. proxylb reads config.txt on each connection so it will see the changes. I plan on writing a bundle of perl scripts for box monitoring that will update this file, maybe even create pipe use use database to get current connections. The program is written in C, compiled on my box has some 13 kilobytes and uses threads. It is webmasters choice of software although it has many more uses. You can get latest proxylb here. It can be also found on Freshmeat and GNU.org. I recommend Freshmeat. Installation instructions: Edit the makefile to make any necessary changes. + Should be fine for Linux... At the prompt type 'make' + Install (just copy) proxylb where ever you see fit. Remember to put the config file (config.txt) in the same dir as proxylb or use -c /etc/proxylb/config.txt (or whatever place you put it in) as a command line parameter. Have fun, send patches, fixes, money, greetings to www.modperldev.com < back |
>> WEB DEVELOPMENT >> SAMPLES >>> Perl >>> System Administration |
Terms & Conditions Copyright © 2002 Mod Perl Development. All rights reserved. All Trademarks are property of their respective companies. |
|