Re: Does mod_backhand need the filebase ?

"Angus Wood" <[email protected]> Tue, 15 Jun 2004 13:31:59 +0100
Newsgroups gmane.comp.apache.mod-backhand.general
Organization IBN
Message-ID <[email protected]>
On Tue, 15 Jun 2004 12:14:03 +0200, <[email protected]> wrote:

> Hi !
>
> If I have a webserver with mod_backend installed, which passes requests  
> to
> backend-servers with also mod_backend installed, are the scripts passed
> through, or does it need the same filebase (common fileserver) ?

Yes, it does. NFS mounts work well, but I prefer to use 'dssh' for  
managing the cluster.

See http://dcmd.sourceforge.net for the source code, and
http://www.samag.com/documents/s=8892/sam0310e/sam0310e.htm
for an article explaining its usage.

What I tend to do is install things on my 'master' front-end server and  
then
just 'dscp /opt/ap_b/cgi-bin/* []:/opt/ap_b/cgi-bin/' which installs the
codebase on all the farm machines.


> Example:
> Having a script which is generating images, how actualy does mod_backhand
> work ? Are the images saved on the backend server, or on the frontend
> which recieves the requests ?

mod_backhand organises passing the request for the URL to one of the  
machines in your cluster, and passing the response from that machine to  
the calling party. If (say) you have 10 machines with a script on them  
which creates an image, saves it in /tmp/ and then serves it out then  
after doing one request you'll have one of your 10 machines with an image  
in /tmp/. Which one that is depends on how you've configured the candidacy  
and sorting functions.

Regards,
	_Gus



-- 
Angus M Wood
Chief Architect
Inspired Broadcast Networks
www.inspiredbroadcast.net
Out of Home Pay to Play Networked Entertainment
1st Floor, 1-7 Livonia Street, London, W1F 8AD
Tel: +44 20 7287 5813
Mob: +44 7767 393039
Fax: +44 20 7287 0131