Re: Apache and multiple back-end servers
On 27 Feb, 11:23, tolis.junk.ema...@gmail.com wrote:
> Hi all,
>
> I am new to web applications. I have the following question. I have a
> web server and two servers that run a heavy emmulation program. This
> is what I want: when a user wants to run the program the apache server
> will look at which server is free and send through php a series of
> commands to that particular machine. Currently the system works with
> just one back-end server. I want to add another one.
>
> This shouldnt be difficult but I am not really sure what to look for
> on the net and the newsgroups. Any hints?
>
> Thank you in advance
do both machines have web servers running on them? if they do I assume
its for more than communicating with the front end server, and given
that they do couldnt you just have a script on both back end machines
that does a top and finds the free CPU/mem, the front end server can
then get the 2 outputs and make the decision as to which back end
server to send the command string to.
This is all given that you do it this way - with 3 servers each
running some kind of web server!
|