/ Zope / Apsis / Pound Mailing List / Archive / 2005 / 2005-09 / health check through url test

[ << ] [ >> ]

[ ANNOUNCE: Pound - reverse proxy and load balancer ... ] [ Re: run pound as a daemon / sipieter nicolas ... ]

health check through url test
sipieter nicolas <niko_2501(at)yahoo.co.jp>
2005-09-27 08:16:00 [ FULL ]
hi there,
i'm new to this mailing list.
pound is working nice on my network, but i need to perform
a test each "alive" time:

i would like pound to check an url like:
www.realserver-x.com/pictures/mypic1.jpg

for example:
if the url test is faillure then pound don't route
anything to that "realserver" until the next check..

if the next check is a success then pound can route again
to that server..

is it possible with pound to do such a test?

thank you for your help

[...]

Re: [Pound Mailing List] health check through url test
Sascha Ottolski <sascha.ottolski(at)gallileus.de>
2005-09-27 11:17:41 [ FULL ]
Am Dienstag, 27. September 2005 08:16 schrieb sipieter nicolas:[...]

not exactly, but if you take a look at the man page, theres is something 
similar available:

"The ha_port parameter specifies an additional port that is used only for 
viability checks: if this port is specified in a BackEnd directive, Pound
       will  attempt  periodically  (every  Alive  seconds) to connect to this 
port. If the port does not respond the server is considered dead. It never
       makes sense to have the ha_port identical to the main back-end port: 
this would only generate extra, unncecessary activity (CPU, network  traffic)
       for  no  good  reason  whatsoever. The ha_port is meant for 
applications that offer an additional health monitoring port or for 
installations that
       wish to take servers off-line in a controlled manner."

If no ha_port was specified in the config, the normal webserver port of the 
backend is checked.


Cheers, Sascha
[...]

Re: [Pound Mailing List] health check through url test
sipieter nicolas <niko_2501(at)yahoo.co.jp>
2005-09-28 07:32:40 [ FULL ]
--- Sascha Ottolski <sascha.ottolski(at)gallileus.de> $B$+$i(B
$B$N%a%C%;!<%8!'(B


Sasha, thanks for your answer,
could you give me an example of utilisation of this
option?
i checked the man page, but it is still not clear to me:

does the "ha_port" option enable me to check for a 3rd
party software port that is running on my realservers ?

like my realservers are webservers (port 80)
and there's an additionnal 3rd party software that run on
top of it. i could check this 3rd party software's port,
in addtion of my http server?

could you tell me how to do so, since pound doesn't come
with a default config file, users have to simply guess how
to do it, which is difficult to figure out ..

thanks for your help




[...]

[...]

Re: [Pound Mailing List] health check through url test
Sascha Ottolski <sascha.ottolski(at)gallileus.de>
2005-09-28 10:18:59 [ FULL ]
Am Mittwoch, 28. September 2005 07:32 schrieb sipieter nicolas:[...]

no offence, but I think the man page (and pound's homepage) is quite 
informative. the most basic thing would be, that if your backend doesn't 
respond on it's default port anyomore, pound will consider it as dead; 
depending on you situation, that might be happening "for free" in the same 
situations that your url test would fail upon.

anyway, may be this one could be another starting point, if you really need an 
additional test:

http://www.apsis.ch/pound/pound_list/archive/2005/2005-06/1118772641000/index_html?fullMode=1#1120147797000

please don't miss the very next message in that thread, as I had a small error 
in the example.

it should be not to difficult to extend the example monitor to perform your 
url test and open or close the ha_port accordingly.


Hope it helps,

Sascha
[...]

MailBoxer