Re: FW: LoadBalancing with Apache ... help me !!!
Theo Schlossnagle <[email protected]> Tue, 24 Jun 2003 22:20:25 -0400
| Newsgroups | gmane.comp.apache.mod-backhand.general |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday, Jun 24, 2003, at 06:09 US/Eastern, Tascino Antonio wrote: > in 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... 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. > On Sun, May 25, 2003 at 09:28:21PM +0200, Tascino Antonio wrote: > > Hi, > > > > I have read that pdf, but it is not me clear how i have to do the > httpd > > configuration. > > I configure MulitcatsStats whit my IP multicasts, and then ... ? > > 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. > > Add "Backhand removeSelf" to the configuration, so that the FE server > only forwards requests and does not serve them itsself. -- 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