is it possible to disable option httpchk per backend?

2021-03-25 Thread Mariusz Gronczewski
to be one of very few options that do not have "no option httpchk". Cheers Mariusz -- Mariusz Gronczewski, Administrator Efigence S. A. ul. Wołoska 9a, 02-583 Warszawa T: [+48] 22 380 13 13 NOC: [+48] 22 380 10 20 E: ad...@efigence.com

Re: Conditional request logging ?

2020-06-19 Thread Mariusz Gronczewski
Thank you, I somehow missed that option, as we were stuck on older version for long time. Cheers! Dnia 2020-06-18, o godz. 14:35:11 Tim Düsterhus napisał(a): > Mariusz, > > Am 18.06.20 um 12:59 schrieb Mariusz Gronczewski: > > Is there a way to log requests that match the give

Conditional request logging ?

2020-06-18 Thread Mariusz Gronczewski
Hello, Is there a way to log requests that match the given ACL (and only that ACL) ? I know I can capture headers by ACL but I can't seem to find any way to do that for whole log entries. Cheers Mariusz

Re: Is there a way to extract list of bound IPs via stats socket ?

2017-09-11 Thread Mariusz Gronczewski
On Fri, 1 Sep 2017 19:07:58 +0200, Willy Tarreau <w...@1wt.eu> wrote: > On Fri, Sep 01, 2017 at 05:49:38PM +0200, Lukas Tribus wrote: > > Hello, > > > > > > Am 01.09.2017 um 15:46 schrieb Mariusz Gronczewski: > > > Hi, > > > > > &g

Re: Is there a way to extract list of bound IPs via stats socket ?

2017-09-01 Thread Mariusz Gronczewski
On Fri, 1 Sep 2017 17:49:38 +0200, Lukas Tribus <lu...@gmx.net> wrote: > Hello, > > > Am 01.09.2017 um 15:46 schrieb Mariusz Gronczewski: > > Hi, > > > > I've been working on a piece of code to announce IPs (via ExaBGP) only if: > > > > * HAProx

Is there a way to extract list of bound IPs via stats socket ?

2017-09-01 Thread Mariusz Gronczewski
(or, running config) via stats socket ? I found a way to do that with backend server IPs but I can't seem to find a way to do it for frontends. Cheers, Mariusz -- Mariusz Gronczewski, Administrator Efigence S. A. ul. Wołoska 9a, 02-583 Warszawa T: [+48] 22 380 13 13 F: [+48] 22 380 13 14 E

Re: nbproc best practices

2016-10-04 Thread Mariusz Gronczewski
On Tue, 04 Oct 2016 11:40:01 +0200, Holger Just <hapr...@meine-er.de> wrote: > Hi Mariusz, > > Mariusz Gronczewski wrote: > > we've come to the point when we have to start using nbproc > 1 (mostly > > because going SSL-only in coming months) and as I understand I

nbproc best practices

2016-10-03 Thread Mariusz Gronczewski
API (and then probably push on Github if mgmt. doesn't complain) but I wouldn't want to do something that will be obsolete by next release Cheers, Mariusz -- Mariusz Gronczewski, Administrator Efigence S. A. ul. Wołoska 9a, 02-583 Warszawa T: [+48] 22 380 13 13 F: [+48] 22 380 13 14 E: mariusz.gronc

Re: Active/Active

2015-02-17 Thread Mariusz Gronczewski
same IP always lands on same loadbalancer works pretty well ;) you just have to make sure that when you stop haproxy (maintenance etc) you also down IPs that haproxy used so routers stop sending traffic to that node -- Mariusz Gronczewski, Administrator Efigence S. A. ul. Wołoska 9a, 02-583

Re: Round Robin not very random

2015-01-15 Thread Mariusz Gronczewski
! Alex -- Mariusz Gronczewski, Administrator Efigence S. A. ul. Wołoska 9a, 02-583 Warszawa T: [+48] 22 380 13 13 F: [+48] 22 380 13 14 E: mariusz.gronczew...@efigence.com mailto:mariusz.gronczew...@efigence.com pgpmG2cNzUliT.pgp Description: OpenPGP digital signature

Re: tcp resets on reload haproxy

2012-03-21 Thread Mariusz Gronczewski
haproxy port was down will just retransmit. Other way would be to start new haproxy copy on another port, do iptables REDIRECT on it, then reload config on main instance and remove REDIRECT, which would be even ugiler as you'd need 2 different configs. -- Mariusz Gronczewski

Re: balance by selecting host with lowest latency?

2011-12-08 Thread Mariusz Gronczewski
2011/12/6 Wout Mertens wout.mert...@gmail.com: On Dec 6, 2011, at 21:58 , Allan Wind wrote: On 2011-12-06 21:38:40, Wout Mertens wrote: So if you're doing HTTP load balancing for app servers, it seems to me that the server that responded fastest last time should get the job. HAproxy is

Re: Problem with rewrites + SSL

2011-10-20 Thread Mariusz Gronczewski
2011/10/18 Saul s...@extremecloudsolutions.com: Hello List, I am having an issue trying to translate some urls with my haproxy setup and Im hoping someone can shed some light. Information:  4 apache servers need a reliable LB such as HA. These apache servers are listening on 80,443

Re: about nbproc in conf

2011-10-20 Thread Mariusz Gronczewski
2011/10/19 wsq003 wsq...@sina.com: Hi In manual there is following: nbproc number   Creates number processes when going daemon. This requires the daemon   mode. By default, only one process is created, which is the recommended mode   of operation. For systems limited to small sets of file 

Re: HAProxy 1.4.8 Tunning for load balancing 3 servers

2011-09-29 Thread Mariusz Gronczewski
Hi, IMO 1st thing would be setting up some kind of monitoring (haproxy frontend/backend stats and also server load), and haproxy logging, this makes debugging easier. Also check if your benchmarking tool didnt max out CPU/bandwidth, and try to use multiple machines for that (then u can get stats

Re: A (Hopefully Not too Generic) Question About HAProxy

2010-05-19 Thread Mariusz Gronczewski
One more thing about config, u dont need to do acl is_msn01hdr_sub(X-Forwarded-For) 64.4.0 acl is_msn02hdr_sub(X-Forwarded-For) 64.4.1 acl is_msn03hdr_sub(X-Forwarded-For) 64.4.2 and then use_backend robot_traffic if is_msn01 or is_msn02 or is_msn03 u can just do acl

Re: Problem with source IP when balancing SSL requests

2010-02-17 Thread Mariusz Gronczewski
Hi 2010/2/17 Przemek Konopczynski cz...@o2.pl Hi everyone I have haproxy server for balancing https. Haproxy works in TCP mode, and I want to see real IP adress of the client request in server log. Is it possible? Forwardfor option works only in http mode. Now in server log I see only my

Re: dynamic weights based on actual server load

2009-10-16 Thread Mariusz Gronczewski
2009/10/16 Craig cr...@haquarter.de: Hi, a patch (set weight/get weight) I imagined some days ago was integrated just 6hrs after I had thought about it (Willy must be reading them!). I've written a simple (exchangable) interface that prints out a servers load and a client to read it. I plan

Re: httpchk disable on 200?

2009-10-01 Thread Mariusz Gronczewski
Hi You could make some simple script opining file and returning 404 if it exist like ? if(fopen($FileName, 'r')) { header(HTTP/1.0 404 Not Found); echo error; } else {echo ok;} ? 2009/10/1 Kelly Kane kelly.k...@openx.org: Hello, We use HAProxy for our frontend content delivery where

Re: Nbproc question

2009-09-30 Thread Mariusz Gronczewski
2009/9/29 Willy Tarreau w...@1wt.eu: On Tue, Sep 29, 2009 at 10:41:28AM -0700, David Birdsong wrote: (...) Which translates into that for one CPU :  10% user  40% system  50% soft-irq This means that 90% of the time is spent in the kernel (network stack+drivers). Do you have a

Re: Nbproc question

2009-09-30 Thread Mariusz Gronczewski
2009/9/30 Mariusz Gronczewski xani...@gmail.com: 2009/9/29 Willy Tarreau w...@1wt.eu: On Tue, Sep 29, 2009 at 10:41:28AM -0700, David Birdsong wrote: (...) Which translates into that for one CPU :  10% user  40% system  50% soft-irq This means that 90% of the time is spent