Re: [1.6.1] Utilizing http-reuse

2015-11-11 Thread Willy Tarreau
Hi Krishna, On Wed, Nov 11, 2015 at 12:31:42PM +0530, Krishna Kumar (Engineering) wrote: > Thanks Baptiste. My configuration file is very basic: > > global > maxconn 100 > defaults > mode http > option http-keep-alive > option splice-response > option clitcpka >

Re: [1.6.1] Utilizing http-reuse

2015-11-11 Thread Krishna Kumar (Engineering)
Hi Willy, >> B. Run 8 wgets in parallel. Each opens a new connection to get a 128 byte >> file. >> Again, 8 separate connections are opened to the backend server. > > But are they *really* processed in parallel ? If the file is only 128 bytes, > I can easily imagine that the connections are

RE: Fast reloads leave orphaned processes on systemd based systems

2015-11-11 Thread Lukas Tribus
Hi Lukas, > When reloading haproxy too fast on EL7 (RedHat, CentOS) the system is > being filled with orphaned processes. > > I encountered this problem on CentOS 7 with > haproxy-1.5.4-4.el7_1.x86_64 but expect it to exist on all systems > using haproxy-systemd-wrapper not just those based on

Re: HAProxy does not write 504 on keep-alive connections

2015-11-11 Thread Holger Just
Hi, Willy Tarreau wrote: > As explained above, it's because a keep-alive enabled client must implement > the ability to replay requests for which it didn't get a response because > the connection died. In fact we're forwarding to the client what we saw on > the server side so that the client can

Manufacture paper labels, embroidery patches and woven badges for fashion

2015-11-11 Thread wangm
DearSir/Madam, Verygooddaytoyou= ThisisFancyfromDOYLabel,weareaprofe=ssionallabelmanufacturerwithmorethan15yearsexperiencebasedon=China.

Re: HAProxy does not write 504 on keep-alive connections

2015-11-11 Thread Bryan Talbot
On Wed, Nov 11, 2015 at 6:47 AM, Holger Just wrote: > > As a loadbalancer however, HAProxy should always return a proper HTTP > error if the request was even partially forwarded to the server. It's > probably fine to just close the connection if the connect timeout stroke >

acl regex

2015-11-11 Thread Guillaume Bourque
Hi all, I can’t create an acl that will match this http://domain/?lang= I tried acl fr_top path_reg^/.lang\=$ acl fr_top path_reg^/\?lang\=$ acl fr_toppath_beg/?lang\=$ I

Re: acl regex

2015-11-11 Thread Bryan Talbot
On Wed, Nov 11, 2015 at 8:43 PM, Guillaume Bourque < guillaume.bour...@logisoftech.com> wrote: > Hi all, > > I can’t create an acl that will match this > > http://domain/?lang= > > I tried > > acl fr_top path_reg^/.lang\=$ > acl fr_top

Re: acl regex

2015-11-11 Thread Guillaume Bourque
Hi, thanks for the suggestion but it did not work for me. I tried acl fr_top url_reg/?lang= acl fr_top url_reg/?lang=$ # off acl fr_topurlp_reg(lang\=$,?) -m found # off acl fr_top

Re: WHY they are different when checking concurrent limit?

2015-11-11 Thread Willy Tarreau
Hi, On Tue, Nov 10, 2015 at 07:50:56AM +, Zhou,Qingzhi wrote: > Hi?? > Thanks very much. > But I think we can use listener_full instead of limit_listener if we want > wake up the listener when there??s a connection closed. Like in the > beginning of listener_accept: > > if

Howto masquerade real server in a two armed transparent setup

2015-11-11 Thread HAproxy
Trying to make a two armed transparent setup like mentioned here to do both transparently L4 [SSL] DR + L7 SSL termination load balanced services. I’m having the load balanced services working, but I wont the real servers to be able to

Re: HAProxy does not write 504 on keep-alive connections

2015-11-11 Thread Willy Tarreau
On Wed, Nov 11, 2015 at 06:55:11PM -0800, Bryan Talbot wrote: > On Wed, Nov 11, 2015 at 6:47 AM, Holger Just wrote: > > > > > As a loadbalancer however, HAProxy should always return a proper HTTP > > error if the request was even partially forwarded to the server. It's > >

Re: [1.6.1] Utilizing http-reuse

2015-11-11 Thread Willy Tarreau
Hi Krishna, On Wed, Nov 11, 2015 at 03:22:54PM +0530, Krishna Kumar (Engineering) wrote: > I just tested with 128K byte file (run 4 wgets > in parallel each retrieving 128K). Here, I see 4 connections being opened, and > lots of data packets in the middle, finally followed by 4 connections >

Re: acl regex

2015-11-11 Thread Guillaume Bourque
Hello Bryan I’m running haproxy 1.5.4 and I can’t find any example on how to user req.uri if you could give a examples on how to match a specific query to redirect to another From http://domain/pages/store.php?lang=fr to http://domain/store/ That would be great ! TIA --- Guillaume

Re: acl regex

2015-11-11 Thread Igor Cicimov
On 12/11/2015 5:30 PM, "Guillaume Bourque" < guillaume.bour...@logisoftech.com> wrote: > > Hello Bryan > > I’m running haproxy 1.5.4 and I can’t find any example on how to user req.uri if you could give a examples on how to match a specific query to redirect to another > > From

Re: Echo server in Lua

2015-11-11 Thread PiBa-NL
Hi Thrawn, I tried these configs, and there doesn't seem to be much if any difference. The tcp one might even be the slowest in my limited virtualized tests, but only my a few milliseconds.. frontend lua-replyip bind192.168.0.120:9010 modehttp http-request

Re: HAProxy does not write 504 on keep-alive connections

2015-11-11 Thread Willy Tarreau
Hi, On Wed, Nov 11, 2015 at 03:46:38AM +, Laurent Senta wrote: > Thanks for the reply guys, > after investigating the source code, it looks like this behavior is wanted. Yes, it is mandated by the way keep-alive works in HTTP. You never know when the connection will abort, and at the moment