Re: Feature submission offering: HTTP Host rewrite on LB server selection.

2011-12-03 Thread Willy Tarreau
Hi Mark, sorry, I missed your mail. On Wed, Nov 23, 2011 at 02:42:58PM -0500, Mark Lamourine wrote: I have had a request here to add a feature to haproxy. I don't know if it would be generally useful or even if there might be a better or more general method to do it. Well, to be fair,

Re: Executing Script between Failover

2011-12-03 Thread Willy Tarreau
Hi Prasad, On Thu, Nov 24, 2011 at 05:13:37PM +0530, Prasad Wani wrote: Thanks for the quick reply. But Yes for the timing I am doing the same. Written the script to get the status of server. I though if I can do it with haproxy. No, haproxy cannot execute anything as it chroots itself and

Re: halog manpage

2011-12-03 Thread Willy Tarreau
On Mon, Nov 28, 2011 at 10:30:27PM +0100, Baptiste wrote: Hi Joe, For halog, the best reference is the source code itself ;) The variable names are verbose enough to understand what it does. To be fair, it's in my TODO to write a blog page to explain what halog does and how usefull it can

Re: HTTP Log format unconstant

2011-12-03 Thread Willy Tarreau
Hello Damien, On Tue, Nov 29, 2011 at 10:30:52AM +0100, Damien Hardy wrote: Hello haproxy-list, We are working on near real time web statistics architecture based on the haproxy access logs. (a first shoot of a flume plugin is available here :

Re: cookie domain set based on request

2011-12-03 Thread Willy Tarreau
Hi Allan, On Tue, Nov 29, 2011 at 08:41:48PM -0500, Allan Wind wrote: On 2011-11-29 22:58:05, Baptiste wrote: what you want to do is not doable. I mean taking a piece of the host header and inserting it into the Set-Cookie header. Thanks. How have you currently setup your persistence

Re: HAProxy stuck on TCP Retransmission

2011-12-03 Thread Willy Tarreau
Hi Simon, On Wed, Nov 30, 2011 at 03:10:23AM +, Simon Schmid wrote: I have a HAProxy + NodeJS + Rails Setup, I use the NodeJS Server for file upload purposes. The problem I'm facing is that if I'm uploading files through haproxy to nodejs and a TCP (Fast) Retransmission occurs the TX

Re: reqrep not working

2011-12-03 Thread Willy Tarreau
On Thu, Dec 01, 2011 at 09:30:31AM -0800, Bryan Talbot wrote: You can do it but both replacements need their own statement: one for the URI and one for the Host header. There's an AWFUL trick for doing it. Please, I really said AWFUL. The rewrite rules accept \r\n. So if you do something like

Re: Change Last-Modified response

2011-12-03 Thread Willy Tarreau
Hi Francesco, On Fri, Dec 02, 2011 at 12:34:53PM +0100, Francesco Latini wrote: Hi all, I have a problem with the HTTP Header Manipulation. I have added a Cache-Control response and deleted a Server response with HAproxy keywords rspadd and rspdel. There is a way to modify a Last-Modified

Re: Change Last-Modified response

2011-12-03 Thread Francesco Latini
Hi Willy, Il giorno 03/dic/2011 23:00, Willy Tarreau w...@1wt.eu ha scritto: Hi Francesco, On Fri, Dec 02, 2011 at 12:34:53PM +0100, Francesco Latini wrote: Hi all, I have a problem with the HTTP Header Manipulation. I have added a Cache-Control response and deleted a Server response

Re: Change Last-Modified response

2011-12-03 Thread Willy Tarreau
On Sat, Dec 03, 2011 at 11:15:31PM +0100, Francesco Latini wrote: Hi Willy, Il giorno 03/dic/2011 23:00, Willy Tarreau w...@1wt.eu ha scritto: Hi Francesco, On Fri, Dec 02, 2011 at 12:34:53PM +0100, Francesco Latini wrote: Hi all, I have a problem with the HTTP Header Manipulation.

Re: Change Last-Modified response

2011-12-03 Thread Francesco Latini
On Dec 3, 2011 11:28 PM, Willy Tarreau w...@1wt.eu wrote: On Sat, Dec 03, 2011 at 11:15:31PM +0100, Francesco Latini wrote: Hi Willy, Il giorno 03/dic/2011 23:00, Willy Tarreau w...@1wt.eu ha scritto: Hi Francesco, On Fri, Dec 02, 2011 at 12:34:53PM +0100, Francesco Latini wrote:

Re: MySQL Connection Error

2011-12-03 Thread Prasad Wani
Hi Willy, I thought the same that it might be because i am exceeding the connection. But In MySQL max_connection=200 only. Also although there Error in App (communication link failure) i am able to do mysql -u username -ppassword -h 192.168.0.100. from any host which are allowed to connect mysql

Re: MySQL Connection Error

2011-12-03 Thread Willy Tarreau
On Sun, Dec 04, 2011 at 11:26:00AM +0530, Prasad Wani wrote: Hi Willy, I thought the same that it might be because i am exceeding the connection. But In MySQL max_connection=200 only. OK. Also although there Error in App (communication link failure) i am able to do mysql -u username

Re: hashing + roundrobin algorithm

2011-12-03 Thread Rerngvit Yanggratoke
Thank you for the suggestion. Consistent hashing sounds promising. The number of files I would have to redistributed is limited if some servers failures. On Sun, Nov 27, 2011 at 10:42 PM, Allan Wind allan_w...@lifeintegrity.comwrote: On 2011-11-26 01:30:41, Rerngvit Yanggratoke wrote:

Re: Re: hashing + roundrobin algorithm

2011-12-03 Thread Rerngvit Yanggratoke
Thank you, this is interesting idea. You are using HAProxy for all layers and simply change LB configurations, right? 2011/11/29 wsq003 wsq...@sina.com ** Backend proxies may be multiple layers, then every layer can have its own LB param. Logically this is a tree-like structure, every real

Re: Re: hashing + roundrobin algorithm

2011-12-03 Thread Rerngvit Yanggratoke
Thanks for sharing the code. 2011/11/30 wsq003 wsq...@sina.com ** My modification is based on version 1.4.16. ===in struct server add following=== char vgroup_name[100]; struct proxy *vgroup; //if

Re: hashing + roundrobin algorithm

2011-12-03 Thread Rerngvit Yanggratoke
John, thanks for your idea. I thought about redirection as well. Nonetheless, for the legacy software, I could not change anything at the moment. They are simply not under my control. On Sun, Nov 27, 2011 at 11:01 PM, John Marrett jo...@zioncluster.ca wrote: Rerngvit, However, I couldn't