Re: Haproxy response 502 but backend send 200

2011-07-14 Thread Willy Tarreau
Hi Alexey, On Wed, Jul 13, 2011 at 09:50:25PM +0400, Alexey Vlasov wrote: On Wed, Jul 13, 2011 at 07:57:05AM +0200, Willy Tarreau wrote: I've got such a scheme on the shared hosting: +- apache_pool1 | apache_fe - haproxy -|-

Re: https from source to destination

2011-07-14 Thread Brane F. Gračnar
On Thursday 14 of July 2011 05:10:44 James Bardin wrote: Some IT contracts suck. ;) Yes, they do :) I guess your only option is nginx, which supports https upstreams. You can nginx use nginx_http_upstream_fair (http://wiki.nginx.org/HttpUpstreamFairModule) module to achieve fair load

李小云�l票咨询:��话 136 6039 2988 ��系人:李先生w

2011-07-14 Thread jsm940niji2x
你好:1 烟1花1飞腾的1�r1候,火1焰1掉入1海1中。1�z1忘就和1记1得1一1��1,是1送给1彼1此1最1好1的�o念1。爱1,1��1来都1不算1是1归宿1。1也1不1是我1们彼1此的1救渡。 为了1更好��1省1贵1公1司的1�X财1支1出1. 1 本1公1司1可代1开1发1票1为1您,1��1�N1、1 �n��1、1抵1 1扣 1做1账 等1。 信1息1不1宜1写1明1 1请1见谅1! 如有1需要,1如有1不1明1详情��1来1��话 1 联系1人1:李先1生 1 电1��:111361 161013191

HAProxy - 504 Gateway Timeout error.

2011-07-14 Thread gidot
Thanks Willy, I managed to fix the problem with the log. It's due to my entry in /etc/ syslogd.conf. This thread http://www.serverphorums.com/read.php? 10,127228,127867 helped me out :). Here is the excerpt of my haproxy.log. Hope someone can enlighten me if there's anything obvious from this

Re: Load balancing Amazon RDs with HAProxy 1.4 gets the HAProxy macined blockes in a few seconds while using option mysql-check user

2011-07-14 Thread Siju George
On Wed, Jul 13, 2011 at 6:23 PM, Cyril Bonté cyril.bo...@free.fr wrote: This syntax was not supported in haproxy 1.4.8, it appeared in 1.4.9 with a full handshake and a QUIT command to cleanly close the connection.

Re: Load balancing Amazon RDs with HAProxy 1.4 gets the HAProxy macined blockes in a few seconds while using option mysql-check user

2011-07-14 Thread Siju George
Also Forgot to add 1) MySQL Client on HaProxy can connect to Amazon RDS. mysql-client-5.15.1.54-1ubuntu4 root@lb1:/var/software/hap15/haproxy-1.4.15# mysql -h .rds.amazonaws.com -u haproxy

Re: https from source to destination

2011-07-14 Thread James Bardin
On Thu, Jul 14, 2011 at 4:44 AM, Brane F. Gračnar brane.grac...@najdi.si wrote: I guess your only option is nginx, which supports https upstreams. I mentioned this earlier, but you can use stunnel in client mode to connect to a remote https server. It's unfortunate that nginx doesn't yet

Re: HAProxy - 504 Gateway Timeout error.

2011-07-14 Thread Willy Tarreau
Hi, On Thu, Jul 14, 2011 at 10:21:56AM +, gidot wrote: Thanks Willy, I managed to fix the problem with the log. It's due to my entry in /etc/ syslogd.conf. This thread http://www.serverphorums.com/read.php? 10,127228,127867 helped me out :). Here is the excerpt of my haproxy.log.

Re: Load balancing Amazon RDs with HAProxy 1.4 gets the HAProxy macined blockes in a few seconds while using option mysql-check user

2011-07-14 Thread Willy Tarreau
Hi Siju, On Thu, Jul 14, 2011 at 04:26:43PM +0530, Siju George wrote: Also Forgot to add 1) MySQL Client on HaProxy can connect to Amazon RDS. mysql-client-5.15.1.54-1ubuntu4

[PATCH 2/6] [MINOR] Consistently free expr on error in cfg_parse_listen()

2011-07-14 Thread Simon Horman
It seems to me that without this change cfg_parse_listen() may leak memory. --- src/cfgparse.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/cfgparse.c b/src/cfgparse.c index 145d21f..6e38962 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -2918,6 +2918,7 @@

[PATCH 3/6] [MINOR] Free rdp_cookie_name on denint()

2011-07-14 Thread Simon Horman
The motivation for this is that when soft-restart is merged it will be come more important to free all relevant memory in deinit() Discovered using valgrind. --- src/haproxy.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/haproxy.c b/src/haproxy.c index

[PATCH 0/6] Free memory on exit

2011-07-14 Thread Simon Horman
The motivation for this is that when soft-restart is merged it will be come more important to free all relevant memory in deinit(

[PATCH 1/6] [MINOR] Consistently use error in tcp_parse_tcp_req()

2011-07-14 Thread Simon Horman
It seems to me that without this change tcp_parse_tcp_req() may leak memory. --- src/proto_tcp.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/proto_tcp.c b/src/proto_tcp.c index cdaf150..3b6d39d 100644 --- a/src/proto_tcp.c +++ b/src/proto_tcp.c @@ -1213,7 +1213,7

[PATCH 5/6] [MINOR] Free stick table pool on denint()

2011-07-14 Thread Simon Horman
The motivation for this is that when soft-restart is merged it will be come more important to free all relevant memory in deinit() Discovered using valgrind. --- src/haproxy.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/haproxy.c b/src/haproxy.c index

[PATCH 6/6] [MINOR] Free stick rules on denint()

2011-07-14 Thread Simon Horman
The motivation for this is that when soft-restart is merged it will be come more important to free all relevant memory in deinit() Discovered using valgrind. --- src/haproxy.c | 67 +--- 1 files changed, 54 insertions(+), 13 deletions(-)