Mailing List Archive

FW: LoadBalancing with Apache ... help me !!!
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--Boundary_(ID_rN+ule29B5j7YtTSXbbyYg)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT

> Hi all,
>
> I have some problems on LoadBalancing with Apache.
>
> I have the following architecture:
> * 1 LoadBalancer (LB)
> * 5 PC (in FrontEnd FE) with Apache/Proxy that manages the HTTP
> requests from LB
> * 2 HP AlphaServer (in BackEnd BE) with Apache that will receive the
> HTTP requests from FrontEnd/Apache.
>
> My problem is to perform a balancing (with High Availability) of the HTTP
> requests from FE and BE.
> Maybe the Apache module (mod_backahnd) is good about this, but I don't
> understand how work it ? What is the configuration about/solve my problem
> ?
>
> Dou you have a suggestion (any samples) about my issue ?
>
> Thanks in advance.
>
> Best regrads
> Tony
>

--Boundary_(ID_rN+ule29B5j7YtTSXbbyYg)
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: 7BIT

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>FW: LoadBalancing with Apache ... help me !!!</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Courier New">Hi all,</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">&nbsp;I have some problems on LoadBalancing with Apache.</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">I have the following architecture:</FONT>

<UL><LI><FONT SIZE=2 FACE="Courier New">1 LoadBalancer (LB)</FONT></LI>
<LI><FONT SIZE=2 FACE="Courier New">5 PC (in FrontEnd FE) with Apache/Proxy that manages the HTTP requests from LB</FONT></LI>
<LI><FONT SIZE=2 FACE="Courier New">2 HP AlphaServer (in BackEnd BE) with Apache that will receive the HTTP requests from FrontEnd/Apache.</FONT></LI>
<BR>
</UL>
<P><FONT SIZE=2 FACE="Courier New">My problem is to perform a balancing (with High Availability) of the HTTP requests from FE and BE. </FONT>
<BR><FONT SIZE=2 FACE="Courier New">Maybe the Apache module (mod_backahnd) is good about this, but I don't understand how work it ?&nbsp; What is the configuration about/solve my problem ?</FONT></P>

<P><FONT SIZE=2 FACE="Courier New">Dou you have a suggestion (any samples) about my issue ?</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">Thanks in advance.</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">Best regrads</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp;Tony</FONT>
</P>

</BODY>
</HTML>

--Boundary_(ID_rN+ule29B5j7YtTSXbbyYg)--
FW: LoadBalancing with Apache ... help me !!! [ In reply to ]
--Apple-Mail-10-259816158
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=WINDOWS-1252;
format=flowed

Read:
http://www.backhand.org/ApacheCon2001/US/backhand_course_notes.pdf

Your setup looks like that described in section 6.4 (page 12). Enjoy.

On Thursday, May 22, 2003, at 08:58 US/Eastern, Tascino Antonio wrote:

> Hi all,
>
> =A0I have some problems on LoadBalancing with Apache.
>
> I have the following architecture:
>
> =95 1 LoadBalancer (LB)
> =95 5 PC (in FrontEnd FE) with Apache/Proxy that manages the HTTP=20
> requests from LB
> =95 2 HP AlphaServer (in BackEnd BE) with Apache that will receive =
the=20
> HTTP requests from FrontEnd/Apache.
>
> My problem is to perform a balancing (with High Availability) of the=20=

> HTTP requests from FE and BE.
> Maybe the Apache module (mod_backahnd) is good about this, but I don't=20=

> understand how work it ?=A0 What is the configuration about/solve my=20=

> problem ?
>
> Dou you have a suggestion (any samples) about my issue ?
>
> Thanks in advance.
>
> Best regrads
> =A0Tony
>
>
--=20
Theo Schlossnagle
Principal Consultant
OmniTI Computer Consulting, Inc. -- http://www.omniti.com/
Phone: +1 410 872 4910 x201 Fax: +1 410 872 4911
1024D/82844984/95FD 30F1 489E 4613 F22E 491A 7E88 364C 8284 4984
2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7

--Apple-Mail-10-259816158
Content-Transfer-Encoding: quoted-printable
Content-Type: text/enriched;
charset=WINDOWS-1252

Read:

http://www.backhand.org/ApacheCon2001/US/backhand_course_notes.pdf


Your setup looks like that described in section 6.4 (page 12). Enjoy.


On Thursday, May 22, 2003, at 08:58 US/Eastern, Tascino Antonio wrote:


<excerpt><fixed><fontfamily><param>Courier New</param>Hi =
all,</fontfamily></fixed>


<fixed><fontfamily><param>Courier New</param>=A0I have some problems on
LoadBalancing with Apache.</fontfamily></fixed>


<fixed><fontfamily><param>Courier New</param>I have the following
architecture:</fontfamily></fixed>


=95 <fixed><fontfamily><param>Courier New</param>1 LoadBalancer =
(LB)</fontfamily></fixed>

=95 <fixed><fontfamily><param>Courier New</param>5 PC (in FrontEnd =
FE)
with Apache/Proxy that manages the HTTP requests from =
LB</fontfamily></fixed>

=95 <fixed><fontfamily><param>Courier New</param>2 HP AlphaServer =
(in
BackEnd BE) with Apache that will receive the HTTP requests from
FrontEnd/Apache.</fontfamily></fixed>


<fixed><fontfamily><param>Courier New</param>My problem is to perform
a balancing (with High Availability) of the HTTP requests from FE and
BE.

Maybe the Apache module (mod_backahnd) is good about this, but I don't
understand how work it ?=A0 What is the configuration about/solve my
problem ?</fontfamily></fixed>


<fixed><fontfamily><param>Courier New</param>Dou you have a suggestion
(any samples) about my issue ?</fontfamily></fixed>


<fixed><fontfamily><param>Courier New</param>Thanks in =
advance.</fontfamily></fixed>


<fixed><fontfamily><param>Courier New</param>Best regrads

=A0Tony</fontfamily></fixed>



</excerpt>--=20

Theo Schlossnagle

Principal Consultant

OmniTI Computer Consulting, Inc. -- http://www.omniti.com/

Phone: +1 410 872 4910 x201 Fax: +1 410 872 4911

1024D/82844984/95FD 30F1 489E 4613 F22E 491A 7E88 364C 8284 4984

2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7


--Apple-Mail-10-259816158--
FW: LoadBalancing with Apache ... help me !!! [ In reply to ]
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--Boundary_(ID_9nZkAN6H6Z6Tr6rFRC3l0w)
Content-type: text/plain; charset=windows-1252
Content-transfer-encoding: QUOTED-PRINTABLE

Hi, =20
=20
I have read that pdf, but it is not me clear how i have to do the h=
ttpd
configuration. =20
I configure MulitcatsStats whit my IP multicasts, and then ... ? =
=20
I want to deny that a web-server in FE forwards some HTTP requets to =
another
web-server in FE, but must forward to web-server in BE. I don't under=
stand
which is the configuration to perform this. =20
=20
Do you have an example ? =20
=20
Thanks in advance. =20
=20
Best Regards =20
Tony =20

=20

-----Original Message-----
=46rom: Theo Schlossnagle [mailto:jesus@omniti.com]
Sent: sabato 24 maggio 2003 0.29
To: backhand-users@lists.backhand.org
Cc: Theo Schlossnagle
Subject: Re: [m_b_users] FW: LoadBalancing with Apache ... help me !!=
!



Read:=20

http://www.backhand.org/ApacheCon2001/US/backhand_course_notes.pdf=
=20


Your setup looks like that described in section 6.4 (page 12). Enjoy.=
=20


On Thursday, May 22, 2003, at 08:58 US/Eastern, Tascino Antonio wrote=


Hi all,=20


I have some problems on LoadBalancing with Apache.=20


I have the following architecture:=20


=95 1 LoadBalancer (LB)=20

=95 5 PC (in FrontEnd FE) with Apache/Proxy that manages the HT=
TP
requests from LB=20

=95 2 HP AlphaServer (in BackEnd BE) with Apache that will rece=
ive the
HTTP requests from FrontEnd/Apache.=20


My problem is to perform a balancing (with High Availability) of the =
HTTP
requests from FE and BE.=20

Maybe the Apache module (mod_backahnd) is good about this, but I don'=
t
understand how work it ? What is the configuration about/solve my pr=
oblem ?



Dou you have a suggestion (any samples) about my issue ?=20


Thanks in advance.=20


Best regrads=20

Tony=20



--=20

Theo Schlossnagle=20

Principal Consultant=20

OmniTI Computer Consulting, Inc. -- http://www.omniti.com/=20

Phone: +1 410 872 4910 x201 Fax: +1 410 872 4911=20

1024D/82844984/95FD 30F1 489E 4613 F22E 491A 7E88 364C 8284 4984=20

2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7=20


--Boundary_(ID_9nZkAN6H6Z6Tr6rFRC3l0w)
Content-type: text/html; charset=windows-1252
Content-transfer-encoding: QUOTED-PRINTABLE

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dwin=
dows-1252">
<TITLE></TITLE>

<META content=3D"MSHTML 6.00.2713.1100" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3D"Courier New" color=3D#0000ff size=3D2><SPAN=20
class=3D713331719-25052003>Hi,&nbsp;&nbsp;<BR>&nbsp; <BR>&nbsp;I have=
read that=20
pdf,&nbsp; but it is not me clear how i have to do the httpd=20
configuration.&nbsp; <BR>I&nbsp; configure MulitcatsStats whit my IP=
=20
multicasts,&nbsp; and then ... ?&nbsp;&nbsp; <BR>I want to deny that =
a=20
web-server in FE forwards some HTTP requets to another web-server in =
FE, but=20
must forward to web-server in BE. I don't understand which is the con=
figuration=20
to perform this.&nbsp; <BR>&nbsp; <BR>Do you have an example ?&nbsp; =
<BR>&nbsp;=20
<BR>Thanks in advance.&nbsp; <BR>&nbsp; <BR>Best Regards&nbsp;&nbsp;=
=20
<BR>&nbsp;Tony&nbsp;&nbsp; <BR></SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" color=3D#0000ff size=3D2><SPAN=20
class=3D713331719-25052003>&nbsp;</SPAN></FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT face=
=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B> Theo Schlossnag=
le=20
[mailto:jesus@omniti.com]<BR><B>Sent:</B> sabato 24 maggio 2003=
=20
0.29<BR><B>To:</B> backhand-users@lists.backhand.org<BR><B>Cc:</B> =
Theo=20
Schlossnagle<BR><B>Subject:</B> Re: [m_b_users] FW: LoadBalancing w=
ith Apache=20
... help me !!!<BR><BR></FONT></DIV>
<P>Read: </P>
<P>http://www.backhand.org/ApacheCon2001/US/backhand_course_notes.p=
df </P><BR>
<P>Your setup looks like that described in section 6.4 (page 12). E=
njoy.=20
</P><BR>
<P>On Thursday, May 22, 2003, at 08:58 US/Eastern, Tascino Antonio =
wrote:=20
</P><BR>
<P><FONT face=3D"Courier New">Hi all,</FONT> </P><BR>
<P><FONT face=3D"Courier New">&nbsp;I have some problems on LoadBal=
ancing with=20
Apache.</FONT> </P><BR>
<P><FONT face=3D"Courier New">I have the following architecture:</F=
ONT> </P><BR>
<P>=95 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=3D"Courier New">1 =
LoadBalancer=20
(LB)</FONT> </P>
<P>=95 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=3D"Courier New">5 =
PC (in FrontEnd=20
FE) with Apache/Proxy that manages the HTTP requests from LB</FONT>=
</P>
<P>=95 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=3D"Courier New">2 =
HP AlphaServer=20
(in BackEnd BE) with Apache that will receive the HTTP requests fro=
m=20
FrontEnd/Apache.</FONT> </P><BR>
<P><FONT face=3D"Courier New">My problem is to perform a balancing =
(with High=20
Availability) of the HTTP requests from FE and BE. </FONT></P>
<P><FONT face=3D"Courier New">Maybe the Apache module (mod_backahnd=
) is good=20
about this, but I don't understand how work it ?&nbsp; What is the=
=20
configuration about/solve my problem ?</FONT> </P><BR>
<P><FONT face=3D"Courier New">Dou you have a suggestion (any sample=
s) about my=20
issue ?</FONT> </P><BR>
<P><FONT face=3D"Courier New">Thanks in advance.</FONT> </P><BR>
<P><FONT face=3D"Courier New">Best regrads </FONT></P>
<P><FONT face=3D"Courier New">&nbsp;Tony</FONT> </P><BR><BR>
<P>-- </P>
<P>Theo Schlossnagle </P>
<P>Principal Consultant </P>
<P>OmniTI Computer Consulting, Inc. -- http://www.omniti.com/ </P>
<P>Phone: +1 410 872 4910 x201 Fax: +1 410 872 4911 </P>
<P>1024D/82844984/95FD 30F1 489E 4613 F22E 491A 7E88 364C 8284 4984=
</P>
<P>2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7=
=20
</P></BLOCKQUOTE></BODY></HTML>

--Boundary_(ID_9nZkAN6H6Z6Tr6rFRC3l0w)--
FW: LoadBalancing with Apache ... help me !!! [ In reply to ]
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--Boundary_(ID_DiaR8gTcXSw07Ac/yGFXmw)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: QUOTED-PRINTABLE

Hi,

in this way, are we sure that one FE machine forwards the HTTP reque=
sts
only to BE/HTTP machines ?=20
My doubts are that one FE/HTTP forwards HTTP requests to other FE mac=
hines
and so on...

Thanks in advance.=20

BR
Tony

-----Original Message-----
=46rom: Rainer M. Canavan [mailto:rainer@7val.com]
Sent: luned=EC 26 maggio 2003 10.31
To: backhand-users@lists.backhand.org
Subject: Re: [m_b_users] FW: LoadBalancing with Apache ... help me !!=
!


On Sun, May 25, 2003 at 09:28:21PM +0200, Tascino Antonio wrote:
> Hi, =20
> =20
> I have read that pdf, but it is not me clear how i have to do the=
httpd
> configuration. =20
> I configure MulitcatsStats whit my IP multicasts, and then ... ? =
=20
> I want to deny that a web-server in FE forwards some HTTP requets t=
o
another
> web-server in FE, but must forward to web-server in BE. I don't und=
erstand
> which is the configuration to perform this. =20

Add "Backhand removeSelf" to the configuration, so that the FE server
only forwards requests and does not serve them itsself.


rainer
------------------------------------
On Thursday, May 22, 2003, at 08:58 US/Eastern, Tascino Antonio wrote=
:=20
Hi all,=20

I have some problems on LoadBalancing with Apache.=20

I have the following architecture:=20

1 LoadBalancer (LB)=20
5 PC (in FrontEnd FE) with Apache/Proxy that manages the HTTP request=
s from
LB=20
2 HP AlphaServer (in BackEnd BE) with Apache that will receive the HT=
TP
requests from FrontEnd/Apache.=20

My problem is to perform a balancing (with High Availability) of the =
HTTP
requests from FE and BE.=20
Maybe the Apache module (mod_backahnd) is good about this, but I don'=
t
understand how work it ? What is the configuration about/solve my pr=
oblem ?

Dou you have a suggestion (any samples) about my issue ?=20

Thanks in advance.=20

Best regrads=20
Tony=20
_______________________________________________
backhand-users mailing list
backhand-users@lists.backhand.org
http://lists.backhand.org/mailman/listinfo/backhand-users

--Boundary_(ID_DiaR8gTcXSw07Ac/yGFXmw)
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: QUOTED-PRINTABLE

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Diso=
-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version 5.5.26=
53.12">
<TITLE>RE: [m_b_users] FW: LoadBalancing with Apache ... help me !!!<=
/TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Hi,</FONT>
</P>

<P><FONT SIZE=3D2>&nbsp;in this way, are we sure that one FE machine =
forwards the HTTP requests only to BE/HTTP machines ? </FONT>
<BR><FONT SIZE=3D2>My doubts are that one FE/HTTP forwards HTTP reque=
sts to other FE machines and so on...</FONT>
</P>

<P><FONT SIZE=3D2>Thanks in advance. </FONT>
</P>

<P><FONT SIZE=3D2>BR</FONT>
<BR><FONT SIZE=3D2>&nbsp;Tony</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Rainer M. Canavan [<A HREF=3D"mailto:rainer@=
7val.com">mailto:rainer@7val.com</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: luned=EC 26 maggio 2003 10.31</FONT>
<BR><FONT SIZE=3D2>To: backhand-users@lists.backhand.org</FONT>
<BR><FONT SIZE=3D2>Subject: Re: [m_b_users] FW: LoadBalancing with Ap=
ache ... help me !!!</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>On Sun, May 25, 2003 at 09:28:21PM +0200, Tascino A=
ntonio wrote:</FONT>
<BR><FONT SIZE=3D2>&gt; Hi,&nbsp; </FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=3D2>&gt;&nbsp; I have read that pdf,&nbsp; but it is n=
ot me clear how i have to do the httpd</FONT>
<BR><FONT SIZE=3D2>&gt; configuration.&nbsp; </FONT>
<BR><FONT SIZE=3D2>&gt; I&nbsp; configure MulitcatsStats whit my IP m=
ulticasts,&nbsp; and then ... ?&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=3D2>&gt; I want to deny that a web-server in FE forwar=
ds some HTTP requets to another</FONT>
<BR><FONT SIZE=3D2>&gt; web-server in FE, but must forward to web-ser=
ver in BE. I don't understand</FONT>
<BR><FONT SIZE=3D2>&gt; which is the configuration to perform this.&n=
bsp; </FONT>
</P>

<P><FONT SIZE=3D2>Add &quot;Backhand removeSelf&quot; to the configur=
ation, so that the FE server</FONT>
<BR><FONT SIZE=3D2>only forwards requests and does not serve them its=
self.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>rainer</FONT>
<BR><FONT SIZE=3D2>------------------------------------</FONT>
<BR><FONT SIZE=3D2>On Thursday, May 22, 2003, at 08:58 US/Eastern, Ta=
scino Antonio wrote: </FONT>
<BR><FONT SIZE=3D2>Hi all, </FONT>
</P>

<P><FONT SIZE=3D2>&nbsp;I have some problems on LoadBalancing with Ap=
ache. </FONT>
</P>

<P><FONT SIZE=3D2>I have the following architecture: </FONT>
</P>

<P><FONT SIZE=3D2>1 LoadBalancer (LB) </FONT>
<BR><FONT SIZE=3D2>5 PC (in FrontEnd FE) with Apache/Proxy that manag=
es the HTTP requests from LB </FONT>
<BR><FONT SIZE=3D2>2 HP AlphaServer (in BackEnd BE) with Apache that =
will receive the HTTP requests from FrontEnd/Apache. </FONT>
</P>

<P><FONT SIZE=3D2>My problem is to perform a balancing (with High Ava=
ilability) of the HTTP requests from FE and BE. </FONT>
<BR><FONT SIZE=3D2>Maybe the Apache module (mod_backahnd) is good abo=
ut this, but I don't understand how work it ?&nbsp; What is the confi=
guration about/solve my problem ?</FONT></P>

<P><FONT SIZE=3D2>Dou you have a suggestion (any samples) about my is=
sue ? </FONT>
</P>

<P><FONT SIZE=3D2>Thanks in advance. </FONT>
</P>

<P><FONT SIZE=3D2>Best regrads </FONT>
<BR><FONT SIZE=3D2>&nbsp;Tony </FONT>
<BR><FONT SIZE=3D2>_______________________________________________</F=
ONT>
<BR><FONT SIZE=3D2>backhand-users mailing list</FONT>
<BR><FONT SIZE=3D2>backhand-users@lists.backhand.org</FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://lists.backhand.org/mailman/listi=
nfo/backhand-users" TARGET=3D"_blank">http://lists.backhand.org/mailm=
an/listinfo/backhand-users</A></FONT>
</P>

</BODY>
</HTML>

--Boundary_(ID_DiaR8gTcXSw07Ac/yGFXmw)--
FW: LoadBalancing with Apache ... help me !!! [ In reply to ]
--Apple-Mail-2-891014094
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=ISO-8859-1;
format=flowed


On Tuesday, Jun 24, 2003, at 06:09 US/Eastern, Tascino Antonio wrote:
> =A0in this way, are we sure that one FE machine forwards the HTTP=20
> requests only to BE/HTTP machines ?
> My doubts are that one FE/HTTP forwards HTTP requests to other FE=20
> machines and so on...

Your doubts are well founded. The suggested (removeSelf) approach will=20=

only work if you have a single front-end machine.

There is a sample DSO candidacy function distributed with mod_backhand=20=

called byHostname.so. There are some samples of how to use it in the=20
online course notes from the various ApacheCon presentations.

If you front-end machines are all named www#.exmaple.com and your=20
backend machines are named worker#.example.com, you can use the rule:

Backhand byAge
BackhandFromSO libexec/byHostname.so byHostname backend
Backhand byBusyChildren

Or something to that effect. Not that this isn't really that fast as=20
it will perform an several regular expression matches for each request=20=

received. The performance isn't horrible though -- I've used this in=20
production :-D

Likely what you want to do it write your own candidacy function in C=20
that excludes exactly the machines you want to. Use the byHostname.c=20
as a guide.

> On Sun, May 25, 2003 at 09:28:21PM +0200, Tascino Antonio wrote:
> > Hi,=A0
> >=A0=A0
> >=A0 I have read that pdf,=A0 but it is not me clear how i have to do =
the=20
> httpd
> > configuration.=A0
> > I=A0 configure MulitcatsStats whit my IP multicasts,=A0 and then ... =
?=A0=A0
> > I want to deny that a web-server in FE forwards some HTTP requets to=20=

> another
> > web-server in FE, but must forward to web-server in BE. I don't=20
> understand
> > which is the configuration to perform this.=A0
>
> Add "Backhand removeSelf" to the configuration, so that the FE server
> only forwards requests and does not serve them itsself.

--=20
Theo Schlossnagle
Principal Consultant
OmniTI Computer Consulting, Inc. -- http://www.omniti.com/
Phone: +1 410 872 4910 x201 Fax: +1 410 872 4911
1024D/82844984/95FD 30F1 489E 4613 F22E 491A 7E88 364C 8284 4984
2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7

--Apple-Mail-2-891014094
Content-Transfer-Encoding: quoted-printable
Content-Type: text/enriched;
charset=ISO-8859-1



On Tuesday, Jun 24, 2003, at 06:09 US/Eastern, Tascino Antonio wrote:

<excerpt>=A0in this way, are we sure that one FE machine forwards the
HTTP requests only to BE/HTTP machines ?

My doubts are that one FE/HTTP forwards HTTP requests to other FE
machines and so on...

</excerpt>

Your doubts are well founded. The suggested (removeSelf) approach
will only work if you have a single front-end machine.


There is a sample DSO candidacy function distributed with mod_backhand
called byHostname.so. There are some samples of how to use it in the
online course notes from the various ApacheCon presentations.


If you front-end machines are all named www#.exmaple.com and your
backend machines are named worker#.example.com, you can use the rule:


Backhand byAge

BackhandFromSO libexec/byHostname.so byHostname backend

Backhand byBusyChildren


Or something to that effect. Not that this isn't really that fast as
it will perform an several regular expression matches for each request
received. The performance isn't horrible though -- I've used this in
production :-D


Likely what you want to do it write your own candidacy function in C
that excludes exactly the machines you want to. Use the byHostname.c
as a guide.


<excerpt>On Sun, May 25, 2003 at 09:28:21PM +0200, Tascino Antonio
wrote:

> Hi,=A0

>=A0=A0

>=A0 I have read that pdf,=A0 but it is not me clear how i have to do =
the
httpd

> configuration.=A0

> I=A0 configure MulitcatsStats whit my IP multicasts,=A0 and then ... =
?=A0=A0

> I want to deny that a web-server in FE forwards some HTTP requets to
another

> web-server in FE, but must forward to web-server in BE. I don't
understand

> which is the configuration to perform this.=A0


Add "Backhand removeSelf" to the configuration, so that the FE server

only forwards requests and does not serve them itsself.

</excerpt>

--=20

Theo Schlossnagle

Principal Consultant

OmniTI Computer Consulting, Inc. -- http://www.omniti.com/

Phone: +1 410 872 4910 x201 Fax: +1 410 872 4911

1024D/82844984/95FD 30F1 489E 4613 F22E 491A 7E88 364C 8284 4984

2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7


--Apple-Mail-2-891014094--