RE: haproxy with keepalived

2012-04-02 Thread Jens Dueholm Christensen (JEDC)
(once again I apologize for top-posting) Would you mind listing what you change (and if possible a reason)? I've grown up with *BSD-style environments (started out on NetBSD 1.2 back in the 90's on non-x86 hardware), and I keep beeing amazed by Linux. While some vendors and distros are doing

Using haproxy for tcp-port forwarding/mapping

2012-04-02 Thread Timh Bergström
Hi, I'm looking for an easy way to setup simple tcp port-forwarding with haproxy alongside normal load-balancing. Thing is, the incoming ports are random within 5900-6000 so I need to forward the same incoming port to the backend(s). I tried doing this with a listen directive and with

Re: Using haproxy for tcp-port forwarding/mapping

2012-04-02 Thread Malcolm Turnbull
Timh, If you don't specify the destination port on the backend servers then it defaults to using the port the traffic requested. 2012/4/2 Timh Bergström timh.bergst...@quickvz.com: Hi, I'm looking for an easy way to setup simple tcp port-forwarding with haproxy alongside normal

Re: Using haproxy for tcp-port forwarding/mapping

2012-04-02 Thread Timh Bergström
Thanks, I wonder why it doesn't work for me then, how do you solve server checking when no backend or server port is configured? The vnc servers is created on the fly so theyre not always running. //T On Monday, April 2, 2012, Malcolm Turnbull wrote: Timh, If you don't specify the

balance uri archaic options

2012-04-02 Thread Sameh Ghane
Hello, I am a new happy haproxy user. Unfortunately, despite the powerful configuration system and regular expressions support, the balance uri directive is still using a very rigid way of splitting a URI (length from start + splitting on slash only) to feed it to the hashing engine. Is there

Re: balance uri archaic options

2012-04-02 Thread Jonathan Matthews
On 2 April 2012 17:25, Sameh Ghane sameh+s...@anthologeek.net wrote: Is there anything I missed ? Like setting a specific request header which would be the result of a regexp on the URI, and balancing on that header ? I don't understand what you've written. Could you say it again, but

Re: balance uri archaic options

2012-04-02 Thread Sameh Ghane
Le (On) Mon, Apr 02, 2012 at 06:32:31PM +0100, Jonathan Matthews ecrivit (wrote): On 2 April 2012 17:25, Sameh Ghane sameh+s...@anthologeek.net wrote: Is there anything I missed ? Like setting a specific request header which would be the result of a regexp on the URI, and balancing on

Re: Using haproxy for tcp-port forwarding/mapping

2012-04-02 Thread Baptiste
Hi, You have a port parameter to tell on which port the health check have to be performed. cheers 2012/4/2 Timh Bergström timh.bergst...@quickvz.com: Thanks, I wonder why it doesn't work for me then, how do you solve server checking when no backend or server port is configured? The vnc

Re: [PATCH] MEDIUM: stats: Add `show events` command.

2012-04-02 Thread Aman Gupta
OK just to be sure, you should *really* make your changes on 1.5-dev, not 1.4. 1.4 is in deep maintenance mode and I don't intend to merge such changes there, as every time I did I caused some regressions. I'm in process of porting my patch to 1.5. I don't particularly want to run 1.5 in

Re: balance uri archaic options

2012-04-02 Thread Jonathan Matthews
On 2 April 2012 19:28, Sameh Ghane sa...@anthologeek.net wrote: Le (On) Mon, Apr 02, 2012 at 06:32:31PM +0100, Jonathan Matthews ecrivit (wrote): On 2 April 2012 17:25, Sameh Ghane sameh+s...@anthologeek.net wrote: Is there anything I missed ? Like setting a specific request header which

[PATCH 1/4] MINOR: Add release callback to si_applet

2012-04-02 Thread Aman Gupta
--- include/types/stream_interface.h |1 + src/dumpstats.c |2 ++ src/peers.c |3 +-- src/stream_interface.c |2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/types/stream_interface.h

[PATCH 2/4] CLEANUP: Fix some minor typos

2012-04-02 Thread Aman Gupta
--- src/dumpstats.c |4 ++-- src/proto_tcp.c |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dumpstats.c b/src/dumpstats.c index 44117d9..74ad966 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -824,7 +824,7 @@ static int stats_sock_parse_request(struct

[PATCH 3/4] MINOR: Add TO/FROM_SET flags to struct stream_interface

2012-04-02 Thread Aman Gupta
--- include/types/stream_interface.h |2 ++ src/frontend.c |1 + src/proto_tcp.c |1 + 3 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/types/stream_interface.h b/include/types/stream_interface.h index d59e3fb..16af806 100644

[PATCH 4/4] MAJOR: Add `debug sess` command to unix socket stats interface

2012-04-02 Thread Aman Gupta
--- doc/configuration.txt| 22 include/proto/dumpstats.h|5 + include/types/stream_interface.h |5 + src/dumpstats.c | 242 +- src/session.c|9 ++ 5 files changed, 280 insertions(+), 3

Re: balance uri archaic options

2012-04-02 Thread Baptiste
Hi, May I ask you why you want absolutely not hash this part? I clearly don't understand, and I don't see any disadvantage of hashing a full URI. Maybe passing the argument you want to hash in the query string, then use the balance param algorithm may help. cheers On Mon, Apr 2, 2012 at 8:28