Transparent redirects

2012-12-27 Thread Alexandru Florescu
Hi, I have an old style URL that looks like this: http://api.domain.com/some_path and a new style URL that looks like this http://api.domain.com/v2/some_path While I can put a 302 redirect in the old style URL that will point to the new one this introduces a 100-200ms latency and I was

Re: Help with cleaning up our error log output and request error counts

2012-12-27 Thread Brendon Colby
On 12/27/2012 1:53 AM, Willy Tarreau wrote: On Wed, Dec 26, 2012 at 07:03:02PM -0500, Brendon Colby wrote: I was thinking that this is just standard browser behavior too. IE also does this - it just seems to open fewer connections. This is why I was confused and thought I was missing something,

[PATCH] ldirectord: Add the ability to service check HAProxy using CSV stats

2012-12-27 Thread Caleb Anthony
Hello, I have multiple HAProxy servers that we load balance with IPVS, and I wanted the ability to natively health check them using the CSV stats page, rather than just using the http service check, as this would require a separate health check configuration and port for each server/service that

Re: question related to setting up fault tolerance tcp relay

2012-12-27 Thread Baptiste
Hi Rajiv, HAProxy works the way you described: if a check is unsuccessful, then HAProxy will remove it from the server pool, and stop forwarding traffic to it. As soon as the check is successful, then HAProxy will reintegrate it in the pool and HAProxy will start forwarding traffic to it. With

Re: Transparent redirects

2012-12-27 Thread Bryan Talbot
See the docs for reqrep: http://code.google.com/p/haproxy-docs/wiki/reqrep -Bryan On Thu, Dec 27, 2012 at 8:44 AM, Alexandru Florescu a...@pagepeeker.comwrote: Hi, I have an old style URL that looks like this: http://api.domain.com/some_path and a new style URL that looks like this

add-header and set-header bad header with nginx

2012-12-27 Thread David BERARD
Hi, I start to evaluate the new add-header/set-header option, I encountered issues. I use nginx as web server behind HAProxy, and nginx reply 400 bad request at every request. The header set with add-header/set-header is malformed, I have a null character before the end of the line, for exemple

Re: add-header and set-header bad header with nginx

2012-12-27 Thread Willy Tarreau
Hi David, On Fri, Dec 28, 2012 at 01:46:32AM +0100, David BERARD wrote: Hi, I start to evaluate the new add-header/set-header option, I encountered issues. I use nginx as web server behind HAProxy, and nginx reply 400 bad request at every request. The header set with

Re: add-header and set-header bad header with nginx

2012-12-27 Thread David BERARD
Hi Willy, 2012/12/28 Willy Tarreau w...@1wt.eu: Hi David, On Fri, Dec 28, 2012 at 01:46:32AM +0100, David BERARD wrote: Hi, I start to evaluate the new add-header/set-header option, I encountered issues. I use nginx as web server behind HAProxy, and nginx reply 400 bad request at every

Re: add-header and set-header bad header with nginx

2012-12-27 Thread Willy Tarreau
On Fri, Dec 28, 2012 at 03:03:39AM +0100, David BERARD wrote: Hi Willy, 2012/12/28 Willy Tarreau w...@1wt.eu: Hi David, On Fri, Dec 28, 2012 at 01:46:32AM +0100, David BERARD wrote: Hi, I start to evaluate the new add-header/set-header option, I encountered issues. I use nginx

Re: haproxy segfault issue

2012-12-27 Thread Willy Tarreau
Hi, On Fri, Dec 28, 2012 at 12:59:55PM +0900, seri0...@naver.com wrote: Hi!! I've installed haproxy latest snapshot(df97447088ec931320fca6370cc360cb19a82a59) In Stat UI, when I clicked Disable and Apply, segfault happened as below.. kernel: haproxy[9978]: segfault at 2272ff8 ip