Re: [PATCH] append-header feature

2014-05-23 Thread Willy Tarreau
Hi Sasha, On Fri, May 23, 2014 at 06:50:05PM -0600, Sasha Pachev wrote: > I have made some progress here, and was just > about to call exp_replace() when I realized it does not have a way to > protect against the destination buffer overrun. Would it be OK if I > added the protection? Hmm that's r

Re: haproxy hash that honors already connected connections

2014-05-23 Thread Willy Tarreau
On Sat, May 24, 2014 at 08:23:04AM +0530, Jai Gupta wrote: > > > What hash should we use in this case or is there any other configuration > > > that we should be using? > > > > It's totally irrelevant to the hash here, because the hash is determinist > > so it ensures that a given input always lead

Re: haproxy hash that honors already connected connections

2014-05-23 Thread Jai Gupta
Thank for reply Willy. On Fri, May 23, 2014 at 10:42 PM, Willy Tarreau wrote: > On Fri, May 23, 2014 at 09:54:18PM +0530, Jai Gupta wrote: > > We have configured haproxy 1.5 and are using map-based hash (default). > > > > For e.g. we have two backend servers. Server A and Server B. > > Clients 1

Re: [PATCH] append-header feature

2014-05-23 Thread Sasha Pachev
>> Good plan. Will do it this way. If I use buffer_replace2() on the >> header repeatedly from under http_res_get_intercept_rule() or >> http_req_get_intercept_rule() it does not appear that it would cause >> any problems - It is already being used from under >> http_remove_header2() which is call

Re: Add Domain redirects using API or ?

2014-05-23 Thread Matt .
Hi, I'm getting a strange error, which is various when I change it in the frontend. Is there maybe a typo in yours ? 2014-05-23 16:34 GMT+02:00 Baptiste : > You can set a map entry, it will erase then create the entry. > And HAProxy will take it into account on the fly, without doing anythin

A health insurance that covers you wherever you go

2014-05-23 Thread CignaTTK Health Insurance
If you're having trouble viewing this email, please click here. With our comprehensive

Re: debian repository http://haproxy.debian.net/

2014-05-23 Thread Vincent Bernat
❦ 23 mai 2014 20:22 +0300, pablo platt  : > Something like this for haproxy will bring confident and prevent > confusion and questions. > http://nginx.org/en/linux_packages.html haproxy.debian.net is just a static page. We could host it on haproxy.net if it helps (and apply the same CSS as the r

Re: debian repository http://haproxy.debian.net/

2014-05-23 Thread Willy Tarreau
On Fri, May 23, 2014 at 08:39:01PM +0300, pablo platt wrote: > If you already have a repository for the commercial version, it'll be great > to have the free version hosted there too, > unless you want this service to be one of the distinguishing factors which > is understandable. > Personally, I t

Convierta el Departamento de Co mpras en un Centro de Ga nancias

2014-05-23 Thread Piedad Cardona
Cómo Convertir el Departamento de Com pras en un Centro de Ga nanciasBogotá 11 de junio, 2014 Si tiene la presión de reducir costos pero los proveedores lo tienen contra la pared, necesita evaluar los inventarios y flujo de materiales que afectan las ganancias de la empresa... Si realmente

Re: debian repository http://haproxy.debian.net/

2014-05-23 Thread pablo platt
If you already have a repository for the commercial version, it'll be great to have the free version hosted there too, unless you want this service to be one of the distinguishing factors which is understandable. Personally, I think it creates unnecessary confusion and trust issues. On Fri, May 2

Re: debian repository http://haproxy.debian.net/

2014-05-23 Thread Willy Tarreau
On Fri, May 23, 2014 at 08:22:11PM +0300, pablo platt wrote: > Something like this for haproxy will bring confident and prevent confusion > and questions. > http://nginx.org/en/linux_packages.html We're currently preparing something more or less like this for HAPEE packages (the commercial, suppor

Re: debian repository http://haproxy.debian.net/

2014-05-23 Thread pablo platt
Something like this for haproxy will bring confident and prevent confusion and questions. http://nginx.org/en/linux_packages.html On Fri, May 23, 2014 at 8:08 PM, Willy Tarreau wrote: > On Fri, May 23, 2014 at 05:10:49PM +0200, Ghislain wrote: > > Le 23/05/2014 15:23, Baptiste a écrit : > > >It

Re: haproxy hash that honors already connected connections

2014-05-23 Thread Willy Tarreau
On Fri, May 23, 2014 at 09:54:18PM +0530, Jai Gupta wrote: > We have configured haproxy 1.5 and are using map-based hash (default). > > For e.g. we have two backend servers. Server A and Server B. > Clients 1,2,3,4,5 will go to same backend. > > For example > Client 1,2,3 are connected to Server

Re: debian repository http://haproxy.debian.net/

2014-05-23 Thread Willy Tarreau
On Fri, May 23, 2014 at 05:10:49PM +0200, Ghislain wrote: > Le 23/05/2014 15:23, Baptiste a écrit : > >It is not provided by us (HAProxy.com) if this is what you mean. > > > >Baptiste > > > > > > yes that's what i meant. Thanks for both answer and thanks for the > product, and the packages ! > >

haproxy hash that honors already connected connections

2014-05-23 Thread Jai Gupta
We have configured haproxy 1.5 and are using map-based hash (default). For e.g. we have two backend servers. Server A and Server B. Clients 1,2,3,4,5 will go to same backend. For example Client 1,2,3 are connected to Server A as per hash. Server A is crashed. haproxy shifts clients to Server B. S

Re: debian repository http://haproxy.debian.net/

2014-05-23 Thread Vincent Bernat
❦ 23 mai 2014 17:10 +0200, Ghislain  : > /etc/apt/preferences.d/haproxy > > Package: haproxy > Pin: origin haproxy.debian.net, version 1.5* > Pin-Priority: 995 > > Package: * > Pin: origin haproxy.debian.net > Pin-Priority: -10 For me, pinning on both origin and version doesn't work. I suppose y

Re: debian repository http://haproxy.debian.net/

2014-05-23 Thread Apollon Oikonomopoulos
On 17:10 Fri 23 May , Ghislain wrote: > Le 23/05/2014 15:23, Baptiste a écrit : > >It is not provided by us (HAProxy.com) if this is what you mean. > > > >Baptiste > > > > > > yes that's what i meant. Thanks for both answer and thanks for the product, > and the packages ! > > In any case from

Good news !

2014-05-23 Thread Willy Tarreau
Hi all! I've just finished re-arranging the agent-check to support up/down separately from the weight and from the administrative state (ready/drain/maint). It required significant changes to the rest of the check system, but in the end it was really worth it because now servers have their own sta

Re: debian repository http://haproxy.debian.net/

2014-05-23 Thread Ghislain
Le 23/05/2014 15:23, Baptiste a écrit : It is not provided by us (HAProxy.com) if this is what you mean. Baptiste yes that's what i meant. Thanks for both answer and thanks for the product, and the packages ! In any case from my high throne in the sky looking under at other petty humans

Re: [PATCH] Filter input lines by date and time through timestamp

2014-05-23 Thread Willy Tarreau
Hello Olivier, On Thu, May 22, 2014 at 04:44:59PM +0200, Olivier Burgard wrote: > Hello, > > I wanted to make a graph with average answer time in nagios that takes only > the last 5 mn of the log. Filtering the log before using halog was too > slow, so I added that filter to halog. > > The patch

Re: Add Domain redirects using API or ?

2014-05-23 Thread Matt .
I like art! Thanks!! 2014-05-23 16:34 GMT+02:00 Baptiste : > You can set a map entry, it will erase then create the entry. > And HAProxy will take it into account on the fly, without doing anything. > You could even forward traffic to your webservers and let haproxy > learn the redirect on the f

Re: Add Domain redirects using API or ?

2014-05-23 Thread Baptiste
You can set a map entry, it will erase then create the entry. And HAProxy will take it into account on the fly, without doing anything. You could even forward traffic to your webservers and let haproxy learn the redirect on the fly. Remember, HAProxy is art: https://twitter.com/malditogeek/status/

[PATCH] Filter input lines by date and time through timestamp

2014-05-23 Thread Olivier Burgard
Hello, I wanted to make a graph with average answer time in nagios that takes only the last 5 mn of the log. Filtering the log before using halog was too slow, so I added that filter to halog. The patch attached to this mail is a proposal to add a new option : -time [min][:max] The values are mi

Re: Error 408 with Chrome

2014-05-23 Thread Willy Tarreau
Hi Kevin, [guys, please could you stop top-posting, it's a total mess to try to respond to this thread, I cannot easily take out the useless parts, thanks]. On Fri, May 23, 2014 at 02:35:21PM +0200, Kevin Maziere wrote: > 2014-05-23 14:34 GMT+02:00 Baptiste : > > > Kevin, > > > > Do you (still

Re: Add Domain redirects using API or ?

2014-05-23 Thread Matt .
So when you remove a line and there is no line like it... just nothing happens as it should ? But what if you add one that is already there ? Will it be added twice ? If so and you do a remove will both be removed ? 2014-05-23 15:22 GMT+02:00 Baptiste : > There is no reply, it is silently perfo

Re: Error 408 with Chrome

2014-05-23 Thread Kevin Maziere
BTW it seems that Chrone on Ubuntu is not affected, but on mac/windows it is. 2014-05-23 15:02 GMT+02:00 Kevin Maziere : > Hi > > So the patch on the dev25 is just adding > s->req->flags &= ~CF_READ_TIMEOUT; > line previous and before aren't exactly the same than on the patch file, I > do imagin

Re: debian repository http://haproxy.debian.net/

2014-05-23 Thread Baptiste
It is not provided by us (HAProxy.com) if this is what you mean. Baptiste On Fri, May 23, 2014 at 2:06 PM, Apollon Oikonomopoulos wrote: > Hi Ghislain, > > On 14:01 Fri 23 May , Ghislain wrote: >> hello there, >> >> Could you tell me if those packages comes from the haproxy team ? from the

Re: Add Domain redirects using API or ?

2014-05-23 Thread Baptiste
There is no reply, it is silently performed. Baptiste On Fri, May 23, 2014 at 3:07 PM, Matt . wrote: > Hi, > > OK, that is a very good explanation! > > It's also very flexible in my opinion. > > Does hsproxy give a reply/callback after adding/removing ? I'm not sure but > I thought it did. > > I

Re: Add Domain redirects using API or ?

2014-05-23 Thread Matt .
Hi, OK, that is a very good explanation! It's also very flexible in my opinion. Does hsproxy give a reply/callback after adding/removing ? I'm not sure but I thought it did. I also did a reply-all this time, sorry for last time! Cheers, Matt 2014-05-23 14:07 GMT+02:00 Baptiste : > Hi Matt,

Re: Error 408 with Chrome

2014-05-23 Thread Kevin Maziere
Hi So the patch on the dev25 is just adding s->req->flags &= ~CF_READ_TIMEOUT; line previous and before aren't exactly the same than on the patch file, I do imagine it's because it was for dev22. So now both patch are applied. 2014-05-23T12:56:32+00:00 servername haproxy[23245]: xx:xx:xx:xx:xx:x

Re: Error 408 with Chrome

2014-05-23 Thread Kevin Maziere
Yes Each error is reported in the browser. Kévin 2014-05-23 14:34 GMT+02:00 Baptiste : > Kevin, > > Do you (still) see 408 errors printed in the browser??? > > Baptiste > > On Fri, May 23, 2014 at 2:17 PM, Kevin Maziere > wrote: > > Hi > > > > I've just applied the first patch, here are the d

Re: Error 408 with Chrome

2014-05-23 Thread Baptiste
Kevin, Do you (still) see 408 errors printed in the browser??? Baptiste On Fri, May 23, 2014 at 2:17 PM, Kevin Maziere wrote: > Hi > > I've just applied the first patch, here are the debug log : > > In the logs : > 2014-05-23T12:03:20+00:00 images-access haproxy[13409]: 127.0.0.1:56596 > [23/Ma

Re: Error 408 with Chrome

2014-05-23 Thread Kevin Maziere
Hi I've just applied the first patch, here are the debug log : In the logs : 2014-05-23T12:03:20+00:00 images-access haproxy[13409]: 127.0.0.1:56596[23/May/2014:12:03:17.972] ipv4-yyy-443~ ipv4-yyy-443/ -1/-1/-1/-1/2041 408 212 - - cR-- 9/3/0/0/0 0/0 "" 2014-05-23T12:03:20+00:00 images-access hap

Re: High 408 Timeouts

2014-05-23 Thread Baptiste
Ghislain, 408 in logs is not a big deal and can be avoided by the option dontlognull. The problem is when the 408 is printed into the browser. Baptiste On Fri, May 23, 2014 at 1:43 PM, Ghislain wrote: > Le 22/05/2014 21:45, Mepstein a écrit : >> >> Hi >> >> HA-Proxy version 1.5-dev25-a339395 2

Re: Add Domain redirects using API or ?

2014-05-23 Thread Baptiste
Hi Matt, I'm Ccing the ML since the answer can interest everybody here. > Thanks for you explanation... I found something indeed on the devel version > yesterday, you can also remove this way I saw ? yes, you can delete content from a map thanks to the socket or through information found in HTTP

Re: debian repository http://haproxy.debian.net/

2014-05-23 Thread Apollon Oikonomopoulos
Hi Ghislain, On 14:01 Fri 23 May , Ghislain wrote: > hello there, > > Could you tell me if those packages comes from the haproxy team ? from the > packages: It depends on what you mean by the "haproxy team". They come from the team that maintains the package in Debian itself, that means D

debian repository http://haproxy.debian.net/

2014-05-23 Thread Ghislain
hello there, Could you tell me if those packages comes from the haproxy team ? from the packages: Maintainer: Debian HAProxy Maintainers it seems so, just wanted to be sure :) Regards, Ghislain.

Re: High 408 Timeouts

2014-05-23 Thread Ghislain
Le 22/05/2014 21:45, Mepstein a écrit : Hi HA-Proxy version 1.5-dev25-a339395 2014/05/10 we experience also high 408 rate but we use an old version 1.5.19 so i do not know for sure if it is us, the haproxy or a simple high rate of bad clients coming at us. But the recent 2 suject opened abo

Re: Error 408 with Chrome

2014-05-23 Thread Baptiste
Well, your log lines says that the response was generated because the timeout client has expired... Last suggestion for now would to apply the patch porposed by Willy and reported by Lukas. Bapitste On Fri, May 23, 2014 at 9:47 AM, Kevin Maziere wrote: > Hi > > Thanks for your reply. > After rea

RE: Error 408 with Chrome

2014-05-23 Thread Lukas Tribus
Hi, > Hi  >  > Thanks for your reply.  > After reading the doc of the option this option is usefull but I'm not  > sur for my case.  > I fact the 408 are received immediatly, with no delay or timeout when  > browsing the website.  > I indeed with the option still 408 errors  >  > Maybe any other

Re: Add Domain redirects using API or ?

2014-05-23 Thread Baptiste
Hi Matt, You have to use HAProxy 1.5. You can load redirects from a map file. Map file content, 2 columns, with on the left the reference (what you're looking from in the client request) and on the right the response to send back. domain2.com subdomain.domain1.com Then, in your frontend, simply a

Re: Error 408 with Chrome

2014-05-23 Thread Kevin Maziere
Hi Thanks for your reply. After reading the doc of the option this option is usefull but I'm not sur for my case. I fact the 408 are received immediatly, with no delay or timeout when browsing the website. I indeed with the option still 408 errors Maybe any other ideas ? 2014-05-22 19:29 GMT+02