[PATCH] Make sure all the pollers get fd updates

2018-05-04 Thread Olivier Houchard
Hi, When the code was changed to use one poller per thread, we overlooked the fact that some fds can be shared between multiple threads, and when one event occured, that required the fd to be added or removed from the poller, the information would be sent only to the current thread, the other

Re: 1.9dev LUA shows partial results from print_r(core.get_info()) after adding headers ?

2018-05-04 Thread Willy Tarreau
Hi Pieter, On Fri, May 04, 2018 at 07:53:19PM +0200, PiBa-NL wrote: > Thanks for this fix, it also works for me, regarding the crash that > happened. Excellent, thanks guys, I'll merge the fix then. > As for the partial print_r() result this thread started with, (but is less > important than

Re: 1.9dev LUA shows partial results from print_r(core.get_info()) after adding headers ?

2018-05-04 Thread PiBa-NL
Hi Oliver, Op 4-5-2018 om 15:54 schreef Olivier Houchard: Hi Pieter, Thanks a lot for the detailed analysis. That seems spot on. We decided to do something a bit different than your proposed fix. Does the attached patch fix your problems ? Thanks again ! Olivier Thanks for this fix, it

Re: Priority based queuing

2018-05-04 Thread Willy Tarreau
On Fri, May 04, 2018 at 06:49:00PM -0400, Patrick Hemmer wrote: > I'm not quite following the need for multiple queues. Why wouldn't you > just have one sorted queue, where if multiple pending requests have the > same priority, then they're FIFO. That's what the time-ordered queue does. I

Re: Priority based queuing

2018-05-04 Thread Patrick Hemmer
On 2018/5/2 22:56, Willy Tarreau wrote: > On Wed, May 02, 2018 at 04:29:33PM -0400, Patrick Hemmer wrote: >> I think you're misunderstanding my design, as scoring wouldn't work like >> this at all. If you give the gold class a score of 1000 (where higher >> number means higher priority), then

Re: HAProxy Healthcheck issue using Virtual hostname

2018-05-04 Thread Lukas Tribus
Hello Igor, Sen, On 4 May 2018 at 08:46, Igor Cicimov wrote: > Have you tried: > > option httpchk GET /env HTTP/1.1\r\nHost:\ %[req.hdr(Host)] When you are health checking, you don't have a Host header as you don't have a frontend connection associated to it.

Re: 1.9dev LUA shows partial results from print_r(core.get_info()) after adding headers ?

2018-05-04 Thread Olivier Houchard
Hi Pieter, On Thu, May 03, 2018 at 11:48:56PM +0200, PiBa-NL wrote: > Hi Thierry, > > Op 3-5-2018 om 8:59 schreef Thierry Fournier: > > he bug. I even installed a FreeBSD:-) I add Willy in > > copy, maybe he will reproduce it. > > > > Thierry > > The 'trick' is probably sending as few

Re: Considering adding support for TCP Zero Copy

2018-05-04 Thread Pavlos Parissis
On 03/05/2018 07:24 μμ, Willy Tarreau wrote: > On Thu, May 03, 2018 at 02:51:12PM +0200, Pavlos Parissis wrote: >> On 03/05/2018 02:45 uu, Olivier Houchard wrote: >>> Hi Pavlos, >>> >>> On Thu, May 03, 2018 at 12:45:42PM +0200, Pavlos Parissis wrote: Hi, Linux kernel version 4.14

Re: HAProxy Healthcheck issue using Virtual hostname

2018-05-04 Thread Igor Cicimov
On Fri, May 4, 2018 at 5:01 PM, Lukas Tribus wrote: > Hello Igor, Sen, > > > On 4 May 2018 at 08:46, Igor Cicimov > wrote: > > Have you tried: > > > > option httpchk GET /env HTTP/1.1\r\nHost:\ %[req.hdr(Host)] > > When you are health checking, you

Re: HAProxy Healthcheck issue using Virtual hostname

2018-05-04 Thread Igor Cicimov
Hi, On Fri, Apr 27, 2018 at 3:03 PM, Sen wrote: > Hi > > I have an app deployed in Pivotal Cloudfoundry (PCF) and to route traffic > to an app in PCF, we have to use application route name (virtual hostname). > > We have PCF in two different datacenters and I need to load