Hi Willy,

Thanks for clearing that up;

On 3 May 2013 12:28, Willy Tarreau <[email protected]> wrote:
> As explained in the doc, "monitor-net" unconditionally returns 200 to
> all connections coming from the specified network.
>
> If your request comes from another network, then "monitor fail" will
> apply to requests matching "monitor-uri". I must confess it's the first
> time I see the two mechanisms mixed and that's a bit confusing.

I did read the docs but bad sadly, "understanding fail"!

OK so now everything is working as expected; If I make a request from
a host in my monitor subnet I always receive HTTP 200 so that tells my
that HAProxy is running. Then from a host outside the monitor subnet
to the monitor URI I can see how many backends HAProxy sees (any less
than my configured 2 and it returns 503, which I have tested and is
working perfectly now thanks!).

One last point! :D
I have noticed that if I point a browse to my monitor URI (not in the
monitor subnet) when both my back ends are up I receive HTTP 200 OK
"HAProxy: service ready." However if I refresh this page any quicker
than about once a minute, it doesn't load? Check out this paste bin;
http://pastebin.com/raw.php?i=1xyNtcYq

I am packet capturing on a client (172.22.0.220, not in the monitor
subnet), browsing to the monitor uri  (GET /oowahboh6eibooca)  you can
see at 14:08:24 I get a response "200 OK". Then I refresh the page 2
seconds later at 14:08:26.215969 and at 14:08:26.217989 I get a 404
response. This doesn't really matter as I will only be checking every
5 minutes or so, but I thought I should mentioned it in case it's a
bug or I'm being silly again.

Cheers,
James.

Reply via email to