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

Mailing List Archive: Apache: Dev

Feature Request for balancer-manager

 

 

Apache dev RSS feed   Index | Next | Previous | View Threaded


m.watts at eris

Oct 21, 2009, 1:49 AM

Post #1 of 5 (602 views)
Permalink
Feature Request for balancer-manager

I hope this is the right place to ask...

Would it be possible to add the (real) hostname of the server serving
a /balancer-manager URI?
Reason being, if you have a pair of load-balancers in HA fail-over, it
tells you which server you're looking at.

Cheers,

Mark.

--
Mark Watts BSc RHCE MBCS
Senior Systems Engineer, Managed Services Manpower
www.QinetiQ.com
QinetiQ - Delivering customer-focused solutions
GPG Key: http://www.linux-corner.info/mwatts.gpg
Attachments: signature.asc (0.19 KB)


m.watts at eris

Oct 21, 2009, 1:51 AM

Post #2 of 5 (563 views)
Permalink
Re: Feature Request for balancer-manager [In reply to]

On Wed, 2009-10-21 at 09:49 +0100, Mark Watts wrote:
> I hope this is the right place to ask...
>
> Would it be possible to add the (real) hostname of the server serving
> a /balancer-manager URI?
> Reason being, if you have a pair of load-balancers in HA fail-over, it
> tells you which server you're looking at.
>
> Cheers,
>
> Mark.
>

I should clarity - can the hostname be added to the /balancer-manager
output page?

--
Mark Watts BSc RHCE MBCS
Senior Systems Engineer, Managed Services Manpower
www.QinetiQ.com
QinetiQ - Delivering customer-focused solutions
GPG Key: http://www.linux-corner.info/mwatts.gpg
Attachments: signature.asc (0.19 KB)


burgoyne at keenuh

Oct 21, 2009, 3:32 AM

Post #3 of 5 (558 views)
Permalink
Re: Feature Request for balancer-manager [In reply to]

I am not using the apache balancing, but using a network level load
balancer, but this concept may apply. We append an HTTP header on output
that tells you which machine you were on. As long as each machine has a
separate config file of some sort (in our setup it is http.conf unique per
machine, with a global config for all machines) you can do this. We use :

Header always append ContentServer "strategis1"

Which gives an HTTP header value in your output saying where it has gone.
Also, this works well with a reverse proxy setup if you balance front and
back ends as you can use this on both ends, and the data will appear in
one HTTP header (hence why we use append in the command).

This allows us to properly trace back exactly what machine handled the
request, which I assume is what you wish to do.




> On Wed, 2009-10-21 at 09:49 +0100, Mark Watts wrote:
>> I hope this is the right place to ask...
>>
>> Would it be possible to add the (real) hostname of the server serving
>> a /balancer-manager URI?
>> Reason being, if you have a pair of load-balancers in HA fail-over, it
>> tells you which server you're looking at.
>>
>> Cheers,
>>
>> Mark.
>>
>
> I should clarity - can the hostname be added to the /balancer-manager
> output page?
>
> --
> Mark Watts BSc RHCE MBCS
> Senior Systems Engineer, Managed Services Manpower
> www.QinetiQ.com
> QinetiQ - Delivering customer-focused solutions
> GPG Key: http://www.linux-corner.info/mwatts.gpg
>


--
Jeffrey Burgoyne
Chief Technology Officer
KCSI Keenuh Consulting Services Inc
www.keenuh.com
burgoyne [at] keenuh


m.watts at eris

Oct 21, 2009, 3:53 AM

Post #4 of 5 (569 views)
Permalink
Re: Feature Request for balancer-manager [In reply to]

On Wed, 2009-10-21 at 06:32 -0400, Jeffrey E Burgoyne wrote:
> I am not using the apache balancing, but using a network level load
> balancer, but this concept may apply. We append an HTTP header on output
> that tells you which machine you were on. As long as each machine has a
> separate config file of some sort (in our setup it is http.conf unique per
> machine, with a global config for all machines) you can do this. We use :
>
> Header always append ContentServer "strategis1"
>
> Which gives an HTTP header value in your output saying where it has gone.
> Also, this works well with a reverse proxy setup if you balance front and
> back ends as you can use this on both ends, and the data will appear in
> one HTTP header (hence why we use append in the command).
>
> This allows us to properly trace back exactly what machine handled the
> request, which I assume is what you wish to do.
>

Nothing quite so compilicated:
Eg: (** is my addition)



Load Balancer Manager for 192.168.1.100

Server Version: Apache/2.2.13 (Unix) mod_ssl/2.2.13
OpenSSL/0.9.8e-fips-rhel5 Apache

** Server Hostname: lb01.example.com **

Server Built: Sep 17 2009 15:37:59
__________________________________________________________________

LoadBalancer Status for balancer://static-web

StickySession Timeout FailoverAttempts Method
- 0 1 byrequests

Worker URL Route RouteRedir Factor Set Status Elected To From
http://web01 1 0 Ok 29 15K 669K
http://web02 1 0 Ok 28 14K 258K


Mark.

--
Mark Watts BSc RHCE MBCS
Senior Systems Engineer, Managed Services Manpower
www.QinetiQ.com
QinetiQ - Delivering customer-focused solutions
GPG Key: http://www.linux-corner.info/mwatts.gpg
Attachments: signature.asc (0.19 KB)


jim at jaguNET

Oct 21, 2009, 7:50 AM

Post #5 of 5 (554 views)
Permalink
Re: Feature Request for balancer-manager [In reply to]

On Oct 21, 2009, at 4:51 AM, Mark Watts wrote:

> On Wed, 2009-10-21 at 09:49 +0100, Mark Watts wrote:
>> I hope this is the right place to ask...
>>
>> Would it be possible to add the (real) hostname of the server serving
>> a /balancer-manager URI?
>> Reason being, if you have a pair of load-balancers in HA fail-over,
>> it
>> tells you which server you're looking at.
>>
>> Cheers,
>>
>> Mark.
>>
>
> I should clarity - can the hostname be added to the /balancer-manager
> output page?
>

Should be trivially easy... will look when back from SpringOne
and hopefully before ACUS09

Apache dev 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.