Re: is it possible to disable option httpchk per backend?

2021-03-26 Thread Christopher Faulet
Le 25/03/2021 à 17:53, Mariusz Gronczewski a écrit : Hi, is it possible to disable "option httpchk" in specific backend when it is enabled in defaults block? I have config where basically every backend sans one is http so I'd like to keep that in defaults and just disable it in t

is it possible to disable option httpchk per backend?

2021-03-25 Thread Mariusz Gronczewski
Hi, is it possible to disable "option httpchk" in specific backend when it is enabled in defaults block? I have config where basically every backend sans one is http so I'd like to keep that in defaults and just disable it in tcp backend (which is backend for SPOE/A) but it seems

Re: HTTP/2 to backend server fails health check when 'option httpchk' set

2018-12-16 Thread Willy Tarreau
On Sun, Dec 16, 2018 at 12:01:18PM +0100, Baptiste wrote: > I don't know H2 well, but can't we forge an HTTP/2 query using tcp-check > script? Yes you can but you can't predict the result :-) Willy

Re: HTTP/2 to backend server fails health check when 'option httpchk' set

2018-12-16 Thread Baptiste
rver > > that does not advertise HTTP/2 support (ALPN HTTP/1.1) or does not use > TLS > > (which also turns off HTTP/2 in the case of the Caddy web server), and > then > > use the "port" parameter on the server line to point to that port. > > > > backe

Re: HTTP/2 to backend server fails health check when 'option httpchk' set

2018-12-15 Thread Willy Tarreau
t use TLS > (which also turns off HTTP/2 in the case of the Caddy web server), and then > use the "port" parameter on the server line to point to that port. > > backend webservers > balance roundrobin > option httpchk HEAD / > server server1 web:443 ssl veri

Re[2]: HTTP/2 to backend server fails health check when 'option httpchk' set

2018-12-15 Thread Nick Ramirez
), and then use the "port" parameter on the server line to point to that port. backend webservers balance roundrobin option httpchk HEAD / server server1 web:443 ssl verify none alpn h2,http/1.1 check port 80 Layer 7 health checks back up and running. :-) -- Origin

Re: HTTP/2 to backend server fails health check when 'option httpchk' set

2018-12-15 Thread Willy Tarreau
ails its health check if I uncomment the "option httpchk" line: > > backend webservers > balance roundrobin > #option httpchk > server server1 web:443 check ssl verify none alpn h2 > > > With that line commented out, it works. > > The project is

HTTP/2 to backend server fails health check when 'option httpchk' set

2018-12-14 Thread Nick Ramirez
This may be something very simple that I am missing. I am using the latest HAProxy Docker image, which is using HAProxy 1.9-dev10 2018/12/08. It is using HTTP/2 to the backend web server (Caddy). It fails its health check if I uncomment the "option httpchk" line: backend webservers

Re: Mix option httpchk and ssl-hello-chk

2014-10-02 Thread Willy Tarreau
#option httpchk #hash-type consistent server PP-OWAP01001 172.21.13.79:443 ssl weight 1 check verify none I just want to check the HTTP response (200 OK or 302) of the backend server. So that's simple, just remove option ssl-hello-chk and enable option httpchk

Re: Mix option httpchk and ssl-hello-chk

2014-09-26 Thread Kevin COUSIN
Le 22/09/2014 15:44, Baptiste a écrit : On Mon, Sep 22, 2014 at 3:33 PM, Kevin COUSIN ki...@kiven.fr wrote: Hi list, Can I mix the option httpchk and ssl-hello-chk to check the health of an HTTPS website ? Thanks a lot Kevin C. Hi Kevin, No, you can't. It would be easier

Mix option httpchk and ssl-hello-chk

2014-09-22 Thread Kevin COUSIN
Hi list, Can I mix the option httpchk and ssl-hello-chk to check the health of an HTTPS website ? Thanks a lot Kevin C.

Re: Mix option httpchk and ssl-hello-chk

2014-09-22 Thread Baptiste
On Mon, Sep 22, 2014 at 3:33 PM, Kevin COUSIN ki...@kiven.fr wrote: Hi list, Can I mix the option httpchk and ssl-hello-chk to check the health of an HTTPS website ? Thanks a lot Kevin C. Hi Kevin, No, you can't. It would be easier to answer you with your backend

option httpchk

2013-03-21 Thread Wolfgang Routschka
Hello, I have a question to configure health checks in haproxy default I´m not configure option httpchk in my haproxy configuration. webserver1 and webserver2 ist answering. (roundrobin balance) webserver1 is down (service httpd stop) and webserver2 is answering without any problems. GREAT

AW: option httpchk

2013-03-21 Thread Wolfgang Routschka
thanks for your answers It works -Ursprüngliche Nachricht- Von: Baptiste [mailto:bed...@gmail.com] Gesendet: Donnerstag, 21. März 2013 15:19 An: Wolfgang Routschka Betreff: Re: option httpchk Hi, You must provide a method in your HTTP request: GET or HEAD, usually. Baptiste On Thu

Re: help with option httpchk - http-check expect

2012-11-23 Thread Jonathan Matthews
On 22 November 2012 22:14, Owen Marinas omari...@woozworld.com wrote: option httpchk POST /db/data/ext/feed/graphdb/userFeed HTTP/1.1\r\nContent-Type: application/json\r\nContent-Length: 35\r\n{userId:8, offset:0, limit:1}\r\n It might not be related to your original question, but I think

Re: help with option httpchk - http-check expect

2012-11-23 Thread Owen Marinas
--- backend neo4j-stg option httpchk POST /db/data/ext/feed/graphdb/userFeed HTTP/1.1\r\nHost: 172.23.10.61:7474\r\nAccept: */*\r\nContent-Type: application/json\r\nContent-Length: 35\r\n\r\n{userId:8, offset:0, limit:1} http-check disable-on-404 expect string userId server neo4j

Re: help with option httpchk - http-check expect

2012-11-23 Thread Jonathan Matthews
On 23 November 2012 17:10, Owen Marinas omari...@woozworld.com wrote: Thx for the advice Jonathan Willy's advice from an old post was to make it work with printf+nc in bash first. So I did. I think your back-end may be being lenient, then :-) the issue is after I added the lines to the

Re: help with option httpchk - http-check expect

2012-11-23 Thread Owen Marinas
I hate myself for this my production LB is running haproxy-1.4.15-1 but the Staging haproxy-1.4.8-1 after upgrade its all working now, the POST, and http-check expect works fine. thx all Owen On 12-11-23 12:50 PM, Jonathan Matthews wrote: On 23 November 2012 17:10, Owen Marinas

Re: help with option httpchk - http-check expect

2012-11-23 Thread Willy Tarreau
On Fri, Nov 23, 2012 at 01:28:38PM -0500, Owen Marinas wrote: I hate myself for this my production LB is running haproxy-1.4.15-1 but the Staging haproxy-1.4.8-1 after upgrade its all working now, the POST, and http-check expect works fine. Good reason indeed. BTW, keep in mind that even

option httpchk

2011-10-31 Thread Christophe Rahier
Hi, In my config file, I check my servers with option httpchk HEAD /checkCF.cfm HTTP/1.0 When the response is not 2xx or 3xx, would it possible to test an other url? Thanks for your help. Regards, Christophe

Re: option httpchk

2011-10-31 Thread Baptiste
Hi, no :) cheers On Mon, Oct 31, 2011 at 12:15 PM, Christophe Rahier christo...@qualifio.com wrote: Hi, In my config file, I check my servers with option httpchk HEAD /checkCF.cfm HTTP/1.0 When the response is not 2xx or 3xx, would it possible to test an other url? Thanks for your help

Re: option httpchk

2011-10-31 Thread Christophe Rahier
...@qualifio.com wrote: Hi, In my config file, I check my servers with option httpchk HEAD /checkCF.cfm HTTP/1.0 When the response is not 2xx or 3xx, would it possible to test an other url? Thanks for your help. Regards, Christophe

Re: option httpchk

2011-10-31 Thread Baptiste
file, I check my servers with option httpchk HEAD /checkCF.cfm HTTP/1.0 When the response is not 2xx or 3xx, would it possible to test an other url? Thanks for your help. Regards, Christophe

Re: option httpchk

2011-10-31 Thread Christophe Rahier
...@gmail.com a écrit : Hi, no :) cheers On Mon, Oct 31, 2011 at 12:15 PM, Christophe Rahier christo...@qualifio.com wrote: Hi, In my config file, I check my servers with option httpchk HEAD /checkCF.cfm HTTP/1.0 When the response is not 2xx or 3xx, would it possible to test an other url

Re: option httpchk

2011-10-31 Thread Aleksandar Lazic
at 12:15 PM, Christophe Rahier christo...@qualifio.com wrote: Hi, In my config file, I check my servers with option httpchk HEAD /checkCF.cfm HTTP/1.0 When the response is not 2xx or 3xx, would it possible to test an other url? Thanks for your help. Regards, Christophe

Re: option httpchk

2011-10-31 Thread Christophe Rahier
my servers with option httpchk HEAD /checkCF.cfm HTTP/1.0 When the response is not 2xx or 3xx, would it possible to test an other url? Thanks for your help. Regards, Christophe

Re: maxconn vs. option httpchk

2011-03-24 Thread Willy Tarreau
Hi Bryan, On Wed, Mar 23, 2011 at 09:27:01PM +, Cassidy, Bryan wrote: Hi all, I've noticed an odd (lack of) interaction between maxconn and option httpchk... If a server's maxconn limit has been reached, it appears that HTTP health checks are still dispatched. If I've configured

maxconn vs. option httpchk

2011-03-23 Thread Cassidy, Bryan
Hi all, I've noticed an odd (lack of) interaction between maxconn and option httpchk... If a server's maxconn limit has been reached, it appears that HTTP health checks are still dispatched. If I've configured the maxconn limit to match the number of requests the backend server can

option httpchk and SSL

2010-11-24 Thread Arthur Richards
Hi, I am running haproxy 1.3.2 as a load balancer for some servers running nginx as an ssl terminator which forwards to squid running as a reverse proxy which falls back to apache. I want to use 'option httpchk' to check whether or not a specific resource is available to our users

Re: option httpchk and SSL

2010-11-24 Thread Willy Tarreau
On Wed, Nov 24, 2010 at 07:24:10PM -0500, John Marrett wrote: Arthur, I believe that you will need to use stunnel in client mode to initiate the ssl connections to the back end. You'll set up multiple instances, presumably on the machine running haproxy, each confired to point to a

Re: HAProxy option httpchk - Soap?

2010-09-17 Thread Sam Pipe
service using the httpchk option in haproxy?.. If so any examples around? I've tried a few over using the \r\n but had no luck.. eg.. option httpchk POST /wsdl/NAL/bp1.0 HTTP/1.1\r\nAccept-Encoding: gzip,deflate\r\nContent-Type: text/xml;charset=UTF-8\r\nSOAPAction: \r\nUser-Agent: Jakarta

HAProxy option httpchk - Soap?

2010-09-15 Thread Sam Pipe
Hi, This is a long shot but has anyone every been able to test a simple soap service using the httpchk option in haproxy?.. If so any examples around? I've tried a few over using the \r\n but had no luck.. eg.. option httpchk POST /wsdl/NAL/bp1.0 HTTP/1.1\r\nAccept-Encoding: gzip,deflate\r

option httpchk timeout

2010-08-25 Thread Jack Stahl
using to configure httpchk: option httpchk GET /ping?profiler HTTP/1.1\r\nHost:\ haproxypinghost\r\nAccept:\ */ Thanks, Jack

Re: option httpchk timeout

2010-08-25 Thread Cyril Bonté
Hi, Le jeudi 26 août 2010 01:22:27, Jack Stahl a écrit : Hello, I'm interested in extending the timeout for my httpchk to be longer than 2s This means you're using inter 2s on your backends, right ? (to, say, 10s). I may be blind, but I wasn't able to find an option in the configuration

Re: option httpchk version 'trick'

2010-02-27 Thread Willy Tarreau
Hi Andrew, On Sat, Feb 27, 2010 at 03:15:25PM +1030, Andrew Commons wrote: Hi all, The ability to extend the option httpchk version argument string to dummy up a Host header is described as a 'trick' in the configuration documentation. I have found that the 'trick' can be extended to add

RE: option httpchk version 'trick'

2010-02-27 Thread Andrew Commons
. -Original Message- From: Willy Tarreau [mailto:w...@1wt.eu] Sent: Saturday, 27 February 2010 6:56 PM To: Andrew Commons Cc: haproxy@formilux.org Subject: Re: option httpchk version 'trick' Hi Andrew, On Sat, Feb 27, 2010 at 03:15:25PM +1030, Andrew Commons wrote: Hi all, The ability

Re: option httpchk version 'trick'

2010-02-27 Thread Willy Tarreau
Hi Andrew, On Sat, Feb 27, 2010 at 07:59:27PM +1030, Andrew Commons wrote: Hi Willy, Thanks for the comprehensive response. My HAProxy experience is measured in days and the mailing list seems a great way to get support and your contributions are always spot on. HAProxy looks like a

RE: option httpchk version 'trick'

2010-02-27 Thread Andrew Commons
- From: Willy Tarreau [mailto:w...@1wt.eu] Sent: Saturday, 27 February 2010 8:39 PM To: Andrew Commons Cc: haproxy@formilux.org Subject: Re: option httpchk version 'trick' Hi Andrew, On Sat, Feb 27, 2010 at 07:59:27PM +1030, Andrew Commons wrote: Hi Willy, Thanks for the comprehensive

option httpchk version 'trick'

2010-02-26 Thread Andrew Commons
Hi all, The ability to extend the option httpchk version argument string to dummy up a Host header is described as a 'trick' in the configuration documentation. I have found that the 'trick' can be extended to add User-Agent (HAProxy) and Accept (*/*) headers to keep ModSecurity quiet when

Servers seen as going up and down using option httpchk

2009-10-23 Thread Michael Kushnir
enable stats auth ***:*** balance roundrobin #cookie SERVERID insert indirect nocache option httpclose option forwardfor option httpchk GET /check.txt HTTP/1.0 #server web1..com ***.***.***.***:80 weight 1 check maxconn 200 inter 1000 rise 2 fall 5

RE: option httpchk is reporting servers as down when they're not

2009-03-25 Thread Allen, Thomas
in the admin. Thomas Allen Web Developer, ASCE 703.295.6355 -Original Message- From: Willy Tarreau [mailto:w...@1wt.eu] Sent: Monday, March 09, 2009 5:26 PM To: Allen, Thomas Cc: Jeffrey 'jf' Lim; haproxy@formilux.org Subject: Re: option httpchk is reporting servers as down when they're

Re: option httpchk is reporting servers as down when they're not

2009-03-25 Thread Willy Tarreau
Hi Thomas, On Wed, Mar 25, 2009 at 12:57:41PM -0400, Allen, Thomas wrote: Hi Willy, We now have HAProxy running over our freshly released website: http://www.infrastructurereportcard.org/ thanks for the heads up ! Thanks for this great piece of software and all the help! Only two

RE: option httpchk is reporting servers as down when they're not

2009-03-09 Thread Allen, Thomas
Developer, ASCE 703.295.6355 -Original Message- From: Willy Tarreau [mailto:w...@1wt.eu] Sent: Friday, March 06, 2009 1:39 PM To: Allen, Thomas Cc: Jeffrey 'jf' Lim; haproxy@formilux.org Subject: Re: option httpchk is reporting servers as down when they're not Hi Thomas, On Thu, Mar 05, 2009

Re: option httpchk is reporting servers as down when they're not

2009-03-09 Thread Willy Tarreau
Hi Thomas, just replying quick, as I'm in a hurry. On Mon, Mar 09, 2009 at 04:01:29PM -0400, Allen, Thomas wrote: That, along with specifying HTTP1.1, did it, so thanks! What should I load into Host: ? It seems to work fine with www, but I'd prefer to use something I understand. Please keep

RE: option httpchk is reporting servers as down when they're not

2009-03-09 Thread Allen, Thomas
09, 2009 4:09 PM To: Allen, Thomas Cc: Jeffrey 'jf' Lim; haproxy@formilux.org Subject: Re: option httpchk is reporting servers as down when they're not Hi Thomas, just replying quick, as I'm in a hurry. On Mon, Mar 09, 2009 at 04:01:29PM -0400, Allen, Thomas wrote: That, along with specifying

Re: option httpchk is reporting servers as down when they're not

2009-03-09 Thread Willy Tarreau
On Mon, Mar 09, 2009 at 04:15:34PM -0400, Allen, Thomas wrote: I used the unit 'S' for my timeouts, as in clitimeout 60S contimeout 60S srvtimeout 60S Is that to be avoided? I assumed it meant seconds. OK it's just a minor problem. You have to use a lower-case s : 60s. It's stupid that

RE: option httpchk is reporting servers as down when they're not

2009-03-09 Thread Allen, Thomas
, ASCE 703.295.6355 -Original Message- From: Willy Tarreau [mailto:w...@1wt.eu] Sent: Monday, March 09, 2009 4:58 PM To: Allen, Thomas Cc: Jeffrey 'jf' Lim; haproxy@formilux.org Subject: Re: option httpchk is reporting servers as down when they're not On Mon, Mar 09, 2009 at 04:15:34PM -0400

Re: option httpchk is reporting servers as down when they're not

2009-03-09 Thread Willy Tarreau
Hi Thomas, On Mon, Mar 09, 2009 at 05:20:49PM -0400, Allen, Thomas wrote: Hi Willy, Hm, changing to 60s for each gave me 100% 504 errors, I removed all three. Bad idea, I know, but at least it works then. then use 6, that's the old way of doing it :-) I'm running 1.2.18 because the

Re: option httpchk is reporting servers as down when they're not

2009-03-07 Thread Jeffrey 'jf' Lim
no idea why the servers would be reported as down but still work when unchecked. It is possible that your servers expect the Host: header to be set during the checks. There's a trick to do it right now (don't forget to escape spaces) :        option httpchk GET /index.php HTTP/1.0\r\nHost

Re: option httpchk is reporting servers as down when they're not

2009-03-06 Thread Willy Tarreau
unchecked. It is possible that your servers expect the Host: header to be set during the checks. There's a trick to do it right now (don't forget to escape spaces) : option httpchk GET /index.php HTTP/1.0\r\nHost:\ www.mydomain.com Also, you should check the server's logs to see why

RE: option httpchk is reporting servers as down when they're not

2009-03-06 Thread Allen, Thomas
Subject: Re: option httpchk is reporting servers as down when they're not Hi Thomas, On Thu, Mar 05, 2009 at 08:45:20AM -0500, Allen, Thomas wrote: Hi Jeff, The thing is that if I don't include the health check, the load balancer works fine and each server receives equal distribution. I have

RE: option httpchk is reporting servers as down when they're not

2009-03-05 Thread Allen, Thomas
Message- From: Jeffrey 'jf' Lim [mailto:jfs.wo...@gmail.com] Sent: Wednesday, March 04, 2009 8:11 PM To: Allen, Thomas Cc: haproxy@formilux.org Subject: Re: option httpchk is reporting servers as down when they're not well, looks like ur servers are actually down then. Do a curl from your

RE: option httpchk is reporting servers as down when they're not

2009-03-04 Thread Allen, Thomas
: Wednesday, March 04, 2009 2:22 AM To: Allen, Thomas Cc: haproxy@formilux.org Subject: Re: option httpchk is reporting servers as down when they're not On Wed, Mar 4, 2009 at 4:05 AM, Allen, Thomas tal...@asce.org wrote: Hi, I like the idea of having HAProxy check server health, but for some reason

RE: option httpchk is reporting servers as down when they're not

2009-03-04 Thread Allen, Thomas
, Thomas Cc: haproxy@formilux.org Subject: Re: option httpchk is reporting servers as down when they're not On Wed, Mar 4, 2009 at 4:05 AM, Allen, Thomas tal...@asce.org wrote: Hi, I like the idea of having HAProxy check server health, but for some reason, it reports all of my servers as down

Re: option httpchk is reporting servers as down when they're not

2009-03-04 Thread Jeffrey 'jf' Lim
Message- From: Jeffrey 'jf' Lim [mailto:jfs.wo...@gmail.com] Sent: Wednesday, March 04, 2009 2:22 AM To: Allen, Thomas Cc: haproxy@formilux.org Subject: Re: option httpchk is reporting servers as down when they're not - Show quoted text - On Wed, Mar 4, 2009 at 4:05 AM, Allen, Thomas tal

Re: option httpchk is reporting servers as down when they're not

2009-03-03 Thread Jeffrey 'jf' Lim
On Wed, Mar 4, 2009 at 4:05 AM, Allen, Thomas tal...@asce.org wrote: Hi, I like the idea of having HAProxy check server health, but for some reason, it reports all of my servers as down. Here's my full config: listen http_proxy :80     mode http     balance roundrobin     option httpchk