Re: HAProxy sometimes selects wrong acl

2012-10-16 Thread Willy Tarreau
On Mon, Oct 15, 2012 at 02:35:57PM +0200, Milan Babuskov wrote: On Mon, Oct 15, 2012 at 1:25 PM, Willy Tarreau w...@1wt.eu wrote: I'll try Windows version of Safari to see if I could reproduce the problem. Well, Safari 5.1.2 on Windows works without any problems both with and without

Re: [PATCH] DOC: fix minor typo on http-send-name-header

2012-10-16 Thread Willy Tarreau
On Mon, Oct 15, 2012 at 07:44:24PM +0200, Cyril Bonté wrote: The server keyword documentation had a reference on http-send-server-name instead of http-send-name-header. Applied, thanks Cyril. Willy

Re: Possibility to tweak style sheet?

2012-10-16 Thread Willy Tarreau
On Tue, Oct 16, 2012 at 08:41:02AM +0300, Balcoes wrote: Hi. Is there a possibility to tweak the style sheet HAProxy uses? I have 5 load balancers each serving 10+ servers. Every HAProxy instance is shown in it's own browser frame. As it is now the dark red title (css pxname) is confusing as

Re: HaProxy + Squid in transparent mode

2012-10-16 Thread Willy Tarreau
Hi David, (warning, your mail agent sends ctrl-M at the end of each line, looks a bit broken). On Mon, Oct 15, 2012 at 04:56:47PM +0200, David Touzeau wrote: Dear^M ^M  ^M I have seen in Haproxy that you can use it in transparent mode.^M ^M I would like to use it in order to load balance

Enable/disable connections to a node at run time

2012-10-16 Thread Javi Legido
Hi. After successfully disable a backend node for maintenance at run time, I see new connections coming. I would like below behaviour: 1. Mark node as down for maintenance 2. Currently active connections to this node to finish 3. DO NOT allow new connections comming Is this possible with

Re: Enable/disable connections to a node at run time

2012-10-16 Thread Baptiste
Hi, Are your mysql using persistent connections? cheers

Re: Enable/disable connections to a node at run time

2012-10-16 Thread Javi Legido
Hi Baptiste. After looking at the output of 'netstat -puta' on the mysql server I think yes, they are. There's a way then to force the draining of connections on run time? Regards 2012/10/16 Baptiste bed...@gmail.com: Hi, Are your mysql using persistent connections? cheers

Re: Enable/disable connections to a node at run time

2012-10-16 Thread Willy Tarreau
On Tue, Oct 16, 2012 at 04:00:46AM -0400, Javi Legido wrote: Hi Baptiste. After looking at the output of 'netstat -puta' on the mysql server I think yes, they are. There's a way then to force the draining of connections on run time? Then it only depends on two factors : - the ability

Re: Enable/disable connections to a node at run time

2012-10-16 Thread Javi Legido
Thanks for the reply. I'll test both solutions. Javier 2012/10/16 Willy Tarreau w...@1wt.eu: On Tue, Oct 16, 2012 at 04:00:46AM -0400, Javi Legido wrote: Hi Baptiste. After looking at the output of 'netstat -puta' on the mysql server I think yes, they are. There's a way then to force the

Re: Enable/disable connections to a node at run time

2012-10-16 Thread Javi Legido
- the session inactivity which will trigger haproxy's timeout resulting in killing the connection You can also kill the connection by yourself from the stats socket by issuing shutdown session server XXX. I don't find a way neither in the config nor in the run time commands through

Multiple Frontends for Load Balancing Multiple Applications

2012-10-16 Thread Manish Kathuria
Is it possible to use the same instance of HAProxy for multiple services by configuring multiple frontend and backend sections ? I have a Linux system which has been assigned multiple IP addresses (primary and aliases) on the WAN interface and has HAProxy running on it. Can I use the same

Re: Multiple Frontends for Load Balancing Multiple Applications

2012-10-16 Thread Baptiste
Hi, There is no issues at all doing this :) You should have give it a try before posting, you would have the response faster :) cheers On Tue, Oct 16, 2012 at 3:45 PM, Manish Kathuria mkathu...@techstrong.in wrote: Is it possible to use the same instance of HAProxy for multiple services by

RE: Possibility to tweak style sheet?

2012-10-16 Thread Balcoes
Hi. The option to be able to use an external style sheet would be ideal. The config file could contain a directive indicating whether or not you would like to use an external style sheet. I would imagine that it would not be too difficult to implement, would it? Best regards, BA -Original

Ensuring the status page is up to date

2012-10-16 Thread Balcoes
Hi. I had the following problem: the browser couldn't update the status page because of the connection problem between the browser and HAProxy. Instead the browser showed the last page it had managed to fetch. This can be problematic as a quick glance tells you that everything is OK and you don't

Re: Possibility to tweak style sheet?

2012-10-16 Thread Willy Tarreau
On Tue, Oct 16, 2012 at 05:05:03PM +0300, Balcoes wrote: Hi. The option to be able to use an external style sheet would be ideal. The config file could contain a directive indicating whether or not you would like to use an external style sheet. I would imagine that it would not be too

Re: Possibility to tweak style sheet?

2012-10-16 Thread Baptiste
If you do that, it would be good to add a stats css-file to tell HAProxy to load CSS from a local file at startup... This avoid you to have a webserver running only for serving a CSS (or using HAProxy with a dedicated listen to match the URL and serve the file as well) cheers On Tue, Oct

Re: Possibility to tweak style sheet?

2012-10-16 Thread Willy Tarreau
On Tue, Oct 16, 2012 at 11:33:44PM +0200, Baptiste wrote: If you do that, it would be good to add a stats css-file to tell HAProxy to load CSS from a local file at startup... This avoid you to have a webserver running only for serving a CSS (or using HAProxy with a dedicated listen to match