Re: HAProxy 1.5 possible bug

2014-03-06 Thread Igor
On Thu, Mar 6, 2014 at 3:50 PM, Willy Tarreau w...@1wt.eu wrote: We've been thinking about implementing a simple async resolver in combination with health checks to at least automatically update server addresses at EC2 and similar horrible environments where a reboot can change your server's

RE: possible crashes on linux with recent glibc

2014-03-06 Thread Lukas Tribus
Hi Willy, Your description corresponds with my configuration (using select() with glibc 2.15 on ubuntu crashing with some load). On the terminal I see (which is what confuses a bit): *** buffer overflow detected ***: ./haproxy terminated and the backtrace looks like this: (gdb)

Re: possible crashes on linux with recent glibc

2014-03-06 Thread Willy Tarreau
Hi Lukas, On Thu, Mar 06, 2014 at 09:54:44AM +0100, Lukas Tribus wrote: Hi Willy, Your description corresponds with my configuration (using select() with glibc 2.15 on ubuntu crashing with some load). On the terminal I see (which is what confuses a bit): *** buffer overflow

ereq count on a FRONTEND for a group

2014-03-06 Thread Dave
Hello, What could be causing ereq counts to go up on the frontend stats field of a normal listen group? I've got an issue where 502's are randomly being generated for a site when the servers are online, and the only errors in the stats are a constantly climbing amount of request errors on the

Current solutions to the soft-restart-healthcheck-spread problem?

2014-03-06 Thread Jonathan Matthews
Hi all - [ tl;dr How do you stop haproxy using failed backend servers immediately after reload? Haproxy devs, please consider implementing a consider-servers-initially-DOWN option! ] I wonder if people could outline how they're dealing with the combination of these two haproxy behaviours: 1) On

balance leastconn does not honor weight?

2014-03-06 Thread Dmitry Sivachenko
Hello! I am using haproxy-1.5.22. In a single backend I have servers with different weight configured: 16, 24, 32 (proportional to the number of CPU cores). Most of the time they respond very fast. When I use balance leastconn, I see in the stats web interface that they all receive

Environment variables in port part of bind?

2014-03-06 Thread adam
From the docs, it appears that HAProxy does not support environment variables in the port portion of the bind parameter. Is this correct? If it is correct, is there a reason for this choice, or is it just that no one has asked for the feature before? Adam

Re: Equivalent Weblogic and BigIP

2014-03-06 Thread Jorge Severino
I will tomorrow test with users. I replicated answer with. Indirect preserve httponly El 06/03/2014 18:34, PiBa-NL piba.nl@gmail.com escribió: not sure if this would fix your issue. but seems at least you should change the used name of the cookie from JSESSIONID to BIGipServervipf5-PRD

Re: rewrite URI help

2014-03-06 Thread Bryan Talbot
On Thu, Mar 6, 2014 at 1:42 PM, Steve Phillips stw...@gmail.com wrote: Haven't gotten a response on this...trying again...any help appreciated. Trying to reverse proxy all requests to /slideshare slideSHARE to www.slideshare.net/api/2/get_slideshow my front-end config: acl

Re: Fwd: rewrite URI help

2014-03-06 Thread Cyril Bonté
Hi, Le 06/03/2014 22:42, Steve Phillips a écrit : Haven't gotten a response on this...trying again...any help appreciated. Patrick Hemmer already replied to the list yesterday (but without including your email address). Trying to reverse proxy all requests to /slideshare to

Re: Fwd: rewrite URI help

2014-03-06 Thread Steve Phillips
I can't look at the backend server as it is slideshare.net. To answer your question Cyril...requests coming to the front-end will be of the form: haproxy host/slideshare... I want to rewrite all instances of /slideshare - /api/2/get_slideshow and then reverse proxy the result to

Re: Fwd: rewrite URI help

2014-03-06 Thread Cyril Bonté
Le 06/03/2014 23:47, Steve Phillips a écrit : I can't look at the backend server as it is slideshare.net http://slideshare.net. You can introduce a debug proxy in your configuration to log what happens after the reqrep. To answer your question Cyril...requests coming to the front-end will

Re: Fwd: rewrite URI help

2014-03-06 Thread Steve Phillips
Yes, using the latest 1.5-dev version. Was going to paste my config but no need. The set-header option solved the problem. Thank you again Cyril. I guess I owe you several beers when you visit San Francisco:) Steve On Thu, Mar 6, 2014 at 3:10 PM, Cyril Bonté cyril.bo...@free.fr wrote: Le

Possibly redundant code

2014-03-06 Thread Sasha Pachev
I am looking at this code in src/proto_http.c in the development tree: case HTTP_REQ_ACT_ADD_HDR: chunk_printf(trash, %s: , rule-arg.hdr_add.name); memcpy(trash.str, rule-arg.hdr_add.name, rule-arg.hdr_add.name_len); trash.len = rule-arg.hdr_add.name_len; trash.str[trash.len++] = ':';

Proxying https to https

2014-03-06 Thread Mike Goff
Hi, I’m trying to figure out how to do the equivalent of this working nginx sample configuration using HAProxy 1.5-dev22: server { listen 443 ssl default; ssl_certificate /etc/nginx/certs/cloud.appcelerator.com.combined.crt; ssl_certificate_key /etc/nginx/certs/cloud.appcelerator.com.key;

Re: Proxying https to https

2014-03-06 Thread Nenad Merdanovic
Hello Mike, On 03/07/2014 01:55 AM, Mike Goff wrote: Hi, I’m trying to figure out how to do the equivalent of this working nginx sample configuration using HAProxy 1.5-dev22: [...] frontend proxy-secure bind :443 ssl crt /etc/haproxy/cloud.appcelerator.com.pem reqadd

Re: Environment variables in port part of bind?

2014-03-06 Thread Willy Tarreau
On Thu, Mar 06, 2014 at 02:08:07PM -0600, a...@fsf.net wrote: From the docs, it appears that HAProxy does not support environment variables in the port portion of the bind parameter. Is this correct? If it is correct, is there a reason for this choice, or is it just that no one has asked for the

Re: Current solutions to the soft-restart-healthcheck-spread problem?

2014-03-06 Thread Willy Tarreau
Hi Jonathan, On Thu, Mar 06, 2014 at 03:15:25PM +, Jonathan Matthews wrote: Hi all - [ tl;dr How do you stop haproxy using failed backend servers immediately after reload? Haproxy devs, please consider implementing a consider-servers-initially-DOWN option! ] I wonder if people could

Stats for total queued backend requests

2014-03-06 Thread Laurent Dormoy
Hi, I have a hard time collecting statistics for queued backend requests. It usually happens during a couple of seconds and cannot be efficiently tracked by a monitoring system collecting data at regular intervals. Is it possible to add to the stats page/csv a counter for total queued requests