Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: mod_backhand: users

How do I forward ALL requests to a second tier server - newbie

 

 

mod_backhand users RSS feed   Index | Next | Previous | View Threaded


kip at kiplandiles

Feb 22, 2002, 9:40 AM

Post #1 of 6 (749 views)
Permalink
How do I forward ALL requests to a second tier server - newbie

I cannot seem to get mod_backhand to forward requests for
http://demo.test.com/ to 2nd tier backhand web servers. Backhand always goes
to the front tier server for the root context.

What is the best way to insure that the front tier server always forwards to
the back tier servers.

Anyone have any clues?

Brute force attempt by files and location ....

<IfModule mod_backhand.c>
UnixSocketDir /var/backhand
MulticastStats 172.16.20.10 172.16.20.255:4445
AcceptStats 172.16.20.0/24
<Location "/backhand">
SetHandler backhand-handler
</Location>
<FilesMatch "*$">
Backhand removeSelf
Backhand byAge
Backhand byLoad
</FilesMatch>
<Location "/">
Backhand removeSelf
Backhand byAge
Backhand byLoad
</Location>
</IfModule>

Also in the Directory .....

DocumentRoot /home/test/www/mtx/webapps
ServerName demo.test.com
ServerAdmin hostmaster [at] test
ErrorLog /home/test/www/mtx/logs/error_log
CustomLog /home/test/www/mtx/logs/access_log combined
<Directory "/home/test/www/mtx/webapps">
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
Backhand removeSelf
Backhand byAge
Backhand byLoad
</Directory>

Thanks in advance .... Kip Iles


sean at chittenden

Feb 22, 2002, 10:15 AM

Post #2 of 6 (719 views)
Permalink
How do I forward ALL requests to a second tier server - newbie [In reply to]

> What is the best way to insure that the front tier server always forwards to
> the back tier servers.
>
> Anyone have any clues?

use the "BackhandBySO byHostname.so (bankname)" directive on your
frontend servers.

where bankname is the generic hostname for the 2nd bank of servers
(content1, content2, etc). You'll have to check out the specific
syntax, but I think I'm close. :~) Dive through the archives, I think
I posted my config for exactly that about two years ago (summer 2000).
-sc

--
Sean Chittenden


kip at kiplandiles

Feb 22, 2002, 11:09 AM

Post #3 of 6 (730 views)
Permalink
How do I forward ALL requests to a second tier server - newbie [In reply to]

So removeSelf doesnt do anything? I thought that took the proxy out of the
candidate list.

I saw your configuration in the August 2000 list archives but it was not
clear where the backhand directives were (Directory, Files, Location, etc.).
Does it have to be under any of these or will it work standalone?

Also, as a sidebar, I see instances of some advanced logging but have yet to
find the directives that produce these logs. Are these documented, and if
so, where?

Oh! Thanks for the response, Sean.

-kip
----- Original Message -----
From: "Sean Chittenden" <sean [at] chittenden>
To: <backhand-users [at] lists>
Sent: Friday, February 22, 2002 12:15 PM
Subject: Re: [m_b_users] How do I forward ALL requests to a second tier
server - newbie


> > What is the best way to insure that the front tier server always
forwards to
> > the back tier servers.
> >
> > Anyone have any clues?
>
> use the "BackhandBySO byHostname.so (bankname)" directive on your
> frontend servers.
>
> where bankname is the generic hostname for the 2nd bank of servers
> (content1, content2, etc). You'll have to check out the specific
> syntax, but I think I'm close. :~) Dive through the archives, I think
> I posted my config for exactly that about two years ago (summer 2000).
> -sc
>
> --
> Sean Chittenden
>
> _______________________________________________
> backhand-users mailing list
> backhand-users [at] lists
> http://lists.backhand.org/mailman/listinfo/backhand-users
>


sean at chittenden

Feb 22, 2002, 11:17 AM

Post #4 of 6 (729 views)
Permalink
How do I forward ALL requests to a second tier server - newbie [In reply to]

> So removeSelf doesnt do anything? I thought that took the proxy out of the
> candidate list.

You'd have to look at the code.

> I saw your configuration in the August 2000 list archives but it was
> not clear where the backhand directives were (Directory, Files,
> Location, etc.). Does it have to be under any of these or will it
> work standalone?

It shouldn't matter. I put stuff in a <Location /> tag.

> Also, as a sidebar, I see instances of some advanced logging but
> have yet to find the directives that produce these logs. Are these
> documented, and if so, where?

Eh, ::waves hands:: "these aren't the droids you're looking for."
Those are just some error logging routines, you can nuke those. -sc

--
Sean Chittenden


kip at kiplandiles

Feb 22, 2002, 2:35 PM

Post #5 of 6 (720 views)
Permalink
How do I forward ALL requests to a second tier server - newbie [In reply to]

byHostname is breaking mod_backhand. I lose it completely unless I comment
out the BackhandFromSO line. Also, when I shut down Apache, I get errors
using byHostname.

This is a good startup with byHostname commented out.
[Fri Feb 22 17:01:04 2002] [notice] SIGHUP received. Attempting to restart
[Fri Feb 22 17:01:05 2002] [notice] mod_backhand -- UnixSocketDir set to
/var/backhand
[Fri Feb 22 17:01:05 2002] [notice] mod_backhand -- Broadcast
172.16.20.255:4445 added
[Fri Feb 22 17:01:05 2002] [notice] mod_backhand -- Multicast accept
172.16.20.0/24
[Fri Feb 22 17:01:05 2002] [notice] backhand_init(15306) spawning moderator
(PID 15452)
[Fri Feb 22 17:01:06 2002] [notice] waiting for mod_backhand moderator to
start
[Fri Feb 22 17:01:06 2002] [notice] mod_backhand moderator ready to go
[Fri Feb 22 17:01:06 2002] [notice] Apache/1.3.20 (Unix) mod_backhand/1.2.1
configured -- resuming normal operations

Then a shutdown and start with byHostname uncommented, notice mod_backhand
did not start
[Fri Feb 22 17:05:22 2002] [notice] caught SIGTERM, shutting down
[Fri Feb 22 17:16:25 2002] [notice] Apache/1.3.20 (Unix) configured --
resuming normal operations

Now the final shutdown ...
[Fri Feb 22 17:18:18 2002] [notice] caught SIGTERM, shutting down
[Fri Feb 22 17:18:18 2002] [error] Cannot remove module mod_backhand.c: not
found in module list

But mod_backhand IS in the module list and my proxy config is as follows....

<IfModule mod_backhand.c>
UnixSocketDir /var/backhand
MulticastStats 172.16.20.10 172.16.20.255:4445
AcceptStats 172.16.20.0/24
<Location "/backhand">
SetHandler backhand-handler
</Location>
<Location "/">
Backhand byAge 3
BackhandFromSO libexec/byHostname.so byHostname rs
Backhand byLoad -1000
</Location>
</IfModule>

Help! Im pulling hair now!

-kip

----- Original Message -----
From: "Sean Chittenden" <sean [at] chittenden>
To: "Kip Iles" <kip [at] kiplandiles>
Cc: <backhand-users [at] lists>
Sent: Friday, February 22, 2002 1:17 PM
Subject: Re: [m_b_users] How do I forward ALL requests to a second tier
server - newbie


> > So removeSelf doesnt do anything? I thought that took the proxy out of
the
> > candidate list.
>
> You'd have to look at the code.
>
> > I saw your configuration in the August 2000 list archives but it was
> > not clear where the backhand directives were (Directory, Files,
> > Location, etc.). Does it have to be under any of these or will it
> > work standalone?
>
> It shouldn't matter. I put stuff in a <Location /> tag.
>
> > Also, as a sidebar, I see instances of some advanced logging but
> > have yet to find the directives that produce these logs. Are these
> > documented, and if so, where?
>
> Eh, ::waves hands:: "these aren't the droids you're looking for."
> Those are just some error logging routines, you can nuke those. -sc
>
> --
> Sean Chittenden
>
> _______________________________________________
> backhand-users mailing list
> backhand-users [at] lists
> http://lists.backhand.org/mailman/listinfo/backhand-users
>


kip at kiplandiles

Feb 22, 2002, 3:00 PM

Post #6 of 6 (718 views)
Permalink
How do I forward ALL requests to a second tier server - newbie [In reply to]

Reply to my own post ...

OK! I found the solution in the list archives. Comment out
ClearModuleList......
Strange but it works. .... Nevermind!

-kip
----- Original Message -----
From: "Kip Iles" <kip [at] kiplandiles>
To: <backhand-users [at] lists>
Sent: Friday, February 22, 2002 4:35 PM
Subject: Re: [m_b_users] How do I forward ALL requests to a second tier
server - newbie


> byHostname is breaking mod_backhand. I lose it completely unless I comment
> out the BackhandFromSO line. Also, when I shut down Apache, I get errors
> using byHostname.
>
> This is a good startup with byHostname commented out.
> [Fri Feb 22 17:01:04 2002] [notice] SIGHUP received. Attempting to
restart
> [Fri Feb 22 17:01:05 2002] [notice] mod_backhand -- UnixSocketDir set to
> /var/backhand
> [Fri Feb 22 17:01:05 2002] [notice] mod_backhand -- Broadcast
> 172.16.20.255:4445 added
> [Fri Feb 22 17:01:05 2002] [notice] mod_backhand -- Multicast accept
> 172.16.20.0/24
> [Fri Feb 22 17:01:05 2002] [notice] backhand_init(15306) spawning
moderator
> (PID 15452)
> [Fri Feb 22 17:01:06 2002] [notice] waiting for mod_backhand moderator to
> start
> [Fri Feb 22 17:01:06 2002] [notice] mod_backhand moderator ready to go
> [Fri Feb 22 17:01:06 2002] [notice] Apache/1.3.20 (Unix)
mod_backhand/1.2.1
> configured -- resuming normal operations
>
> Then a shutdown and start with byHostname uncommented, notice mod_backhand
> did not start
> [Fri Feb 22 17:05:22 2002] [notice] caught SIGTERM, shutting down
> [Fri Feb 22 17:16:25 2002] [notice] Apache/1.3.20 (Unix) configured --
> resuming normal operations
>
> Now the final shutdown ...
> [Fri Feb 22 17:18:18 2002] [notice] caught SIGTERM, shutting down
> [Fri Feb 22 17:18:18 2002] [error] Cannot remove module mod_backhand.c:
not
> found in module list
>
> But mod_backhand IS in the module list and my proxy config is as
follows....
>
> <IfModule mod_backhand.c>
> UnixSocketDir /var/backhand
> MulticastStats 172.16.20.10 172.16.20.255:4445
> AcceptStats 172.16.20.0/24
> <Location "/backhand">
> SetHandler backhand-handler
> </Location>
> <Location "/">
> Backhand byAge 3
> BackhandFromSO libexec/byHostname.so byHostname rs
> Backhand byLoad -1000
> </Location>
> </IfModule>
>
> Help! Im pulling hair now!
>
> -kip
>
> ----- Original Message -----
> From: "Sean Chittenden" <sean [at] chittenden>
> To: "Kip Iles" <kip [at] kiplandiles>
> Cc: <backhand-users [at] lists>
> Sent: Friday, February 22, 2002 1:17 PM
> Subject: Re: [m_b_users] How do I forward ALL requests to a second tier
> server - newbie
>
>
> > > So removeSelf doesnt do anything? I thought that took the proxy out of
> the
> > > candidate list.
> >
> > You'd have to look at the code.
> >
> > > I saw your configuration in the August 2000 list archives but it was
> > > not clear where the backhand directives were (Directory, Files,
> > > Location, etc.). Does it have to be under any of these or will it
> > > work standalone?
> >
> > It shouldn't matter. I put stuff in a <Location /> tag.
> >
> > > Also, as a sidebar, I see instances of some advanced logging but
> > > have yet to find the directives that produce these logs. Are these
> > > documented, and if so, where?
> >
> > Eh, ::waves hands:: "these aren't the droids you're looking for."
> > Those are just some error logging routines, you can nuke those. -sc
> >
> > --
> > Sean Chittenden
> >
> > _______________________________________________
> > backhand-users mailing list
> > backhand-users [at] lists
> > http://lists.backhand.org/mailman/listinfo/backhand-users
> >
>
>
> _______________________________________________
> backhand-users mailing list
> backhand-users [at] lists
> http://lists.backhand.org/mailman/listinfo/backhand-users
>

mod_backhand users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.