Orlando Andico wrote:
>
> On Thu, 15 Jul 1999, Ed Carp wrote:
> ..
> > Not as easy as it sounds? Like doing something like this is hard?
> >
> > #! /bin/sh
> > #
> > # run this from your main index.html page or whatever
> > #
> > # redirector machines are named server1-server10.domain.com
> > #
> > (for i in 1 2 3 4 5 6 7 8 9 10
> > do
> > echo `rsh server${i} "ps -ax|grep httpd"` server${i}.domain.com
> > done)|sort -n|head -1|cut -f2 -d' '
> >
> > This little piece of code will give you the machine that has the least
> > number of httpd processes running on it. From there, it's trivial to
> > build a page to send to the client to redirect the process to that server.
> >
> > If this is worth $25K, I'm really in the wrong business!
>
> Well the Local Director does other things as well, and its switching is
> done purely in hardware (it's basically a router/switch) so the
> reliability is up there. As for this code.. exactly how are you doing to
> use it? I see your concept, but how to you convert that into a working
> setup?
>
Orlando,
That is a major working set up. The only step left is to toss in the
includes and compile it. >:)
Van
--
=========================================================================
Linux rocks!!! http://www.dedserius.com
=========================================================================