Hi Emilio,

I'm happy to not use FarmGuardian, check_tcp is fine.  The issue is that
the farm always believes the backends are up, even when I power down the
backend server.

Any ideas?

Jonathan

Please note that I have a new email address
(*jonathan.hadd...@ict.ekservices.org
<jonathan.hadd...@ict.ekservices.org>*).  Email is currently being
auto-forwarded, but will cease at some point, so please update your records.

*Jonathan Haddock *
*MSc MBCS*Network and Security Engineer
*EK Services*

Tel No: 01227 862 036
jonathan.hadd...@ict.ekservices.org
*EK Services - working in partnership with Canterbury City Council, Dover
District Council and Thanet District Council*

On 14 April 2016 at 15:41, Emilio Campos <emilio.campos.mar...@gmail.com>
wrote:

> Dear Jonathan, the standard check for https and http farms is similar to
> check_tcp.
>
> Your issue is related with a misconfiguration of check_http, you have to
> solve the http error 403
>
> Regards!
>
> 2016-04-14 12:16 GMT+02:00 Jonathan Haddock <
> jonathan.hadd...@ict.ekservices.org>:
>
>> Hi Emilio,
>>
>> Sorry for the delay.  Output below:
>>
>> *root@eks-dmz-nlb-03:~#*
>> /usr/local/zenloadbalancer/app/libexec/check_http -w 5 -c 5 -H 192.168.1.47
>> -u / -S -p 443
>> HTTP WARNING: HTTP/1.0 403 Forbidden - 26 bytes in 0.884 second response
>> time |time=0.883980s;5.000000;5.000000;0.000000 size=26B;;;0
>> *root@eks-dmz-nlb-03:~# *echo $?
>> 1
>> *root@eks-dmz-nlb-03:~# */usr/local/zenloadbalancer/app/libexec/check_http
>> -w 5 -c 5 -H 172.17.1.30 -u / -S -p 443
>> HTTP WARNING: HTTP/1.0 403 Forbidden - 26 bytes in 1.753 second response
>> time |time=1.752969s;5.000000;5.000000;0.000000 size=26B;;;0
>> *root@eks-dmz-nlb-03:~#* echo $?
>> 1
>>
>>
>> That said, when not using FarmGuardian the nodes still show as up, even
>> when one is down.  Does the standard check use ping to determine a node
>> status or does it attempt a socket connection?
>>
>> Jonathan
>>
>>
>> Please note that I have a new email address 
>> (*jonathan.hadd...@ict.ekservices.org
>> <jonathan.hadd...@ict.ekservices.org>*).  Email is currently being
>> auto-forwarded, but will cease at some point, so please update your records
>> .
>>
>> *Jonathan Haddock *
>> *MSc MBCS*Network and Security Engineer
>> *EK Services*
>>
>> Tel No: 01227 862 036
>> jonathan.hadd...@ict.ekservices.org
>> *EK Services - working in partnership with Canterbury City Council, Dover
>> District Council and Thanet District Council*
>>
>> On 8 April 2016 at 08:15, Emilio Campos <emilio.campos.mar...@gmail.com>
>> wrote:
>>
>>> Could you execute those commands and paste me the output?
>>>
>>> for node1:
>>>
>>> /usr/local/zenloadbalancer/app/libexec/check_http -w 5 -c 5 -H
>>> 192.168.1.47 -u / -S -p 443
>>>
>>> echo $?
>>>
>>> fo node2:
>>>
>>> /usr/local/zenloadbalancer/app/libexec/check_http -w 5 -c 5 -H
>>> 172.17.1.30 -u / -S -p 443
>>>
>>> echo $?
>>>
>>>
>>> FarmGuardian analyzes the output error variable (echo $?) if your
>>> backends are responding with HTTP code 403 and check_http waits for a
>>> HTTP200 then the output error could be <> 0 and FuarmGuardian could mark it
>>> as down.
>>>
>>> I remember check_http could analyze the HTTP CODE
>>>
>>> *check_http --help*
>>>
>>> * This plugin will attempt to open an HTTP connection with the host.*
>>> * Successful connects return STATE_OK, refusals and timeouts return
>>> STATE_CRITICAL*
>>> * other errors return STATE_UNKNOWN.  Successful connects, but incorrect
>>> reponse*
>>> * messages from the host result in STATE_WARNING return values *
>>>
>>> If the output error code $? is not 0 then it could be the reason of your
>>> issue.
>>>
>>> Regards!
>>>
>>>
>>> 2016-04-07 17:30 GMT+02:00 Jonathan Haddock <
>>> jonathan.hadd...@ict.ekservices.org>:
>>>
>>>> Hello,
>>>>
>>>> I've got an L4xNAT farm set up to load balance HTTPS traffic based on
>>>> priority.  In testing I've disabled the primary (one with the smallest
>>>> priority value, according to the docs) web server and the site goes
>>>> offline.  According to "back end status" the primary webserver is still
>>>> available - it certainly isn't given I've removed the network cable :).
>>>>
>>>> I've also tried removing the primary server and re-adding it, while the
>>>> server is disconnected, and the Zen still believes the the server is up:
>>>> [image: Inline images 1]
>>>>
>>>>
>>>> I've connected to the zen over SSH and run check_http, the server is
>>>> definitely down:
>>>> root@eks-dmz-nlb-03:~#
>>>> /usr/local/zenloadbalancer/app/libexec/check_http -w 5 -c 5 -H 172.17.1.30
>>>> -u / -S -p 443
>>>> connect to address 172.17.1.30 and port 443: No route to host
>>>> HTTP CRITICAL - Unable to open TCP socket
>>>>
>>>> Setting the farm to use FarmGuardian (with the command set to "check_http
>>>> -w 5 -c 5 -H 172.17.1.30 -u / -S -p 443") causes both backends to be
>>>> considered down (the primary times out, the secondary gives an HTTP403,
>>>> which is fine from my perspective).
>>>>
>>>> If I change the cluster to "weight" mode it's then possible to access
>>>> the site via the secondary server  (with the primary still unplugged).  The
>>>> Zen still believes both backends are operational though.
>>>>
>>>> Configuration of the farm is shown in the screen shot is below, in case
>>>> it's useful.
>>>>
>>>> There are 2 Zen nodes in a cluster (both nodes may be master) running
>>>> the latest (3.10) community edition.
>>>>
>>>> Any thoughts appreciated,
>>>>
>>>> Jonathan
>>>>
>>>> [image: Inline images 2]
>>>>
>>>> Please note that I have a new email address 
>>>> (*jonathan.hadd...@ict.ekservices.org
>>>> <jonathan.hadd...@ict.ekservices.org>*).  Email is currently being
>>>> auto-forwarded, but will cease at some point, so please update your records
>>>> .
>>>>
>>>> *Jonathan Haddock *
>>>> *MSc MBCS*Network and Security Engineer
>>>> *EK Services*
>>>>
>>>> Tel No: 01227 862 036
>>>> jonathan.hadd...@ict.ekservices.org
>>>> *EK Services - working in partnership with Canterbury City Council,
>>>> Dover District Council and Thanet District Council*
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Zenloadbalancer-support mailing list
>>>> Zenloadbalancer-support@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support
>>>>
>>>>
>>>
>>>
>>> --
>>> Load balancer distribution - Open Source Project
>>> http://www.zenloadbalancer.com
>>> Distribution list (subscribe):
>>> zenloadbalancer-support@lists.sourceforge.net
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Zenloadbalancer-support mailing list
>>> Zenloadbalancer-support@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Find and fix application performance issues faster with Applications
>> Manager
>> Applications Manager provides deep performance insights into multiple
>> tiers of
>> your business applications. It resolves application problems quickly and
>> reduces your MTTR. Get your free trial!
>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>> _______________________________________________
>> Zenloadbalancer-support mailing list
>> Zenloadbalancer-support@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support
>>
>>
>
>
> --
> Load balancer distribution - Open Source Project
> http://www.zenloadbalancer.com
> Distribution list (subscribe):
> zenloadbalancer-support@lists.sourceforge.net
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Zenloadbalancer-support mailing list
> Zenloadbalancer-support@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support
>
>
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Zenloadbalancer-support mailing list
Zenloadbalancer-support@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zenloadbalancer-support

Reply via email to