On Wed, Jan 6, 2010 at 10:59 PM, Stuart Henderson <stu@spacehopper.org> wrote:
While I was looking for ways to parse Apache logs, I stumbled upon a
web page that dealt with "Cool tricks" with Perl and Apache [1] (12
years old now, but a few decent ideas) which has some perl script for
a very basic "load balancer" which would dynamically redirect requests
to random web servers in your server farm (which you would have to
define).
With a little work, you could base this on traffic from the last 5
minutes. You could make it output a pseudo-image which could be
included in each page of your site, providing reasonably accurate
usage stats to base load on. What's more, it'd be small enough in
footprint to run on your Soekris box.
HTH
[1] http://stein.cshl.org/WWW/docs/handout.html
--
Aaron Mason - Programmer, open source addict
I've taken my software vows - for beta or for worse