Re: Haproxy multiple backend addresses ports

2013-04-13 Thread Willy Tarreau
On Sat, Apr 13, 2013 at 07:50:13AM +0200, Marco Corte wrote: Il 13/04/2013 01:01, Vicky Perdana: Hi, I am a newbie to haproxy and was wondering if someone can confirm that the following config is valid? Effectively I would like to load balanced two servers on multiple ports. snippet

Re: Haproxy and multipart/form-data

2013-04-13 Thread Willy Tarreau
Hi, On Fri, Apr 12, 2013 at 09:04:00PM -0700, Hong Quach wrote: I'm having trouble getting haproxy to route multipart requests. Any help would be appreciated. The idea is to route all file uploads to a different server from the main. However, it doesn't seem to ever match the multipart in

Re: HAProxy crashing on start

2013-04-13 Thread Baptiste
Ah brilliant ! I was investigating an issue where the table synchronization only synchronise 24 characters between 2 HAProxy hosts... I guess this fix also fix my bug ;) Baptiste On Fri, Apr 12, 2013 at 12:54 AM, Willy Tarreau w...@1wt.eu wrote: On Thu, Apr 11, 2013 at 03:44:33PM -0700,

Re: HAProxy crashing on start

2013-04-13 Thread Willy Tarreau
On Sat, Apr 13, 2013 at 09:27:29AM +0200, Baptiste wrote: Ah brilliant ! I was investigating an issue where the table synchronization only synchronise 24 characters between 2 HAProxy hosts... I guess this fix also fix my bug ;) Ah yes now I remember you talking to me about this. Indeed

Re: Balancing SIP

2013-04-13 Thread Emeric BRUN
On Apr 12, 2013, at 11:26 AM, Jonathan Matthews wrote: Does anyone have anything they could share about using HAProxy for load-balancing SIP? Positive /or/ negative, of course! :-) HAProxy doesn't support UDP traffic, so SIP won't work very well. Maybe look at LVS, or one of the

Re: clear table doesn't clear all items in stick table

2013-04-13 Thread Willy Tarreau
Hi Will, On Fri, Apr 12, 2013 at 06:42:27AM -0700, Will Glass-Husain wrote: Hi -- sorry -- should have said. This is haproxy 1.5dev18. OK thanks for this report. Indeed I introduced a bug in dev12 10 months ago, the type of change you begin in the evening and not totally complete... Because

Re: clear table doesn't clear all items in stick table

2013-04-13 Thread Willy Tarreau
On Sat, Apr 13, 2013 at 09:34:21AM +0200, Willy Tarreau wrote: Hi Will, On Fri, Apr 12, 2013 at 06:42:27AM -0700, Will Glass-Husain wrote: Hi -- sorry -- should have said. This is haproxy 1.5dev18. OK thanks for this report. Indeed I introduced a bug in dev12 10 months ago, the type of

Re: Haproxy and multipart/form-data

2013-04-13 Thread Hong Quach
Hi Willy, Thanks for the response. I just tried adding mode http and option http-server-close to defaults, and an extra mode http in the frontend section. Still no go. I'm testing it on Google Chrome by submitting a basic file upload form. Do you happen to have an acl configuration to match

Re: Haproxy and multipart/form-data

2013-04-13 Thread Willy Tarreau
On Sat, Apr 13, 2013 at 01:06:54AM -0700, Hong Quach wrote: Hi Willy, Thanks for the response. I just tried adding mode http and option http-server-close to defaults, and an extra mode http in the frontend section. Still no go. I'm testing it on Google Chrome by submitting a basic file

SmartOS-specific EAGAIN RSTs?

2013-04-13 Thread Joan Touzet
I'm observing strange behaviour where an haproxy configuration that works fine on all my Linux hosts fails on SmartOS (OpenSolaris derived). haproxy is talking to a python gunicorn backend running on the same host, bound to localhost:7077; the haproxy configuration looks something like: backend

Re: SmartOS-specific EAGAIN RSTs?

2013-04-13 Thread Willy Tarreau
Hi Joan, On Sat, Apr 13, 2013 at 07:04:27AM -0400, Joan Touzet wrote: I'm observing strange behaviour where an haproxy configuration that works fine on all my Linux hosts fails on SmartOS (OpenSolaris derived). haproxy is talking to a python gunicorn backend running on the same host, bound to

Re: SmartOS-specific EAGAIN RSTs?

2013-04-13 Thread Joan Touzet
Hi Willy, thanks for the prompt response! On Sat, Apr 13, 2013 at 7:20 AM, Willy Tarreau w...@1wt.eu wrote: You see these SD flags ? They mean that *for haproxy*, the server aborted the connection, so haproxy considered it had to abort in turn the connection to the client. Yeah, my first

Re: SmartOS-specific EAGAIN RSTs?

2013-04-13 Thread Willy Tarreau
On Sat, Apr 13, 2013 at 07:35:49AM -0400, Joan Touzet wrote: Now reading your truss output, it doesn't seem like haproxy received an abort at all. Do you have the more complete trace showing the poll() call and it return values around the last few recv() calls ? Sure thing, here's the log

Re: SmartOS-specific EAGAIN RSTs?

2013-04-13 Thread Joan Touzet
On Sat, Apr 13, 2013 at 7:58 AM, Willy Tarreau w...@1wt.eu wrote: I'm running 1.5dev18. This is a brand new application I'm rolling out behind haproxy/SSL, so I've not deployed against other haproxy versions - I just know that I don't see this with 1.5dev18 on Linux, but I do on SmartOS. I

Re: SmartOS-specific EAGAIN RSTs?

2013-04-13 Thread Willy Tarreau
On Sat, Apr 13, 2013 at 08:39:14AM -0400, Joan Touzet wrote: On Sat, Apr 13, 2013 at 7:58 AM, Willy Tarreau w...@1wt.eu wrote: I'm running 1.5dev18. This is a brand new application I'm rolling out behind haproxy/SSL, so I've not deployed against other haproxy versions - I just know that I

Fwd: Can't get client side certificate to work (repost)

2013-04-13 Thread Baptiste
-- Forwarded message -- From: Baptiste bed...@gmail.com Date: Sat, Apr 13, 2013 at 4:23 PM Subject: Re: Can't get client side certificate to work (repost) To: Lukas Tribus luky...@hotmail.com Cc: Thomas Dudziak tom...@gmail.com, haproxy@formilux.org haproxy@formilux.org Hi

Re: Haproxy and multipart/form-data

2013-04-13 Thread Hong Quach
Hello again, Here is the full config and relevant section of the log: https://gist.github.com/kiafaldorius/5379517 Let me know if you prefer I throw snippets in the email or whether to link to a pastie/gist site like above. I know it's a simple setup and I know the balancing via acl works

RE: Haproxy and multipart/form-data

2013-04-13 Thread Lukas Tribus
Hi Hong! Here is the full config and relevant section of the log: https://gist.github.com/kiafaldorius/5379517 Could you try this exact configuration: acl multipart hdr_beg(Content-Type) -i multipart/form-data Regards, Lukas

Re: Haproxy and multipart/form-data

2013-04-13 Thread Hong Quach
Hi Lukas, Huh, that one seems to work! That's strange...I know I tried it with hdr_beg(Content-Type) multipart and it didn't work. Now I feel a little dumb, but at least it works =] Thanks Lukas and Willy! On Sat, Apr 13, 2013 at 11:52 AM, Lukas Tribus luky...@hotmail.com wrote: Hi Hong!

RE: Haproxy and multipart/form-data

2013-04-13 Thread Lukas Tribus
Hi! Huh, that one seems to work! That's strange...I know I tried it with hdr_beg(Content-Type) multipart and it didn't work. Now I feel a little dumb, but at least it works =] Which should work. But probably you tested this before you switched everything to http mode and without

Re: Haproxy and multipart/form-data

2013-04-13 Thread Willy Tarreau
On Sat, Apr 13, 2013 at 12:00:42PM -0700, Hong Quach wrote: Hi Lukas, Huh, that one seems to work! That's strange...I know I tried it with hdr_beg(Content-Type) multipart and it didn't work. Because you did not yet have http-server-close by then I suppose. Now I feel a little dumb, but at

Re: Haproxy and multipart/form-data

2013-04-13 Thread Willy Tarreau
On Sat, Apr 13, 2013 at 09:06:07PM +0200, Lukas Tribus wrote: probably you tested this before you switched everything to http mode and without http-server-close? Should read '*with* http-server-close?' Indeed my sentence was unclear, I meant the test was done without, not switching to http

Re: Two HAProxy instances with a shared IP

2013-04-13 Thread James Bensley
Hi Phil, I have just been through this exact exercise. I have just posted my results to the Pound Proxy mailing list (so sorry to anyone that is a subscriber there, here is comes again!). This is the post I just sent, keepalived is so simple and I have it working with Pound and HAProxy; Hi All,

Re: HAProxy crashing on start

2013-04-13 Thread Will Glass-Husain
Thanks very much. I just wanted to confirm I've tried this out. I downloaded from the nightly snapshot 1.5-dev18-20130413, and sticky table synchronization works great. Really a very nice product. Thanks for everybody's efforts and also the rapid responses on the email list. WILL On Sat, Apr

suggestion - include files

2013-04-13 Thread Will Glass-Husain
Hi, I recently converted over an Apache front end to haproxy. My Apache server was mainly composed of proxies and rewrites to various internal servers, so haproxy was a great alternative. One feature I miss from Apache is the ability to include files (e.g. setting up a folder and including

Re: SmartOS-specific EAGAIN RSTs?

2013-04-13 Thread Joan Touzet
Cheers, I've contacted you off list with a packet dump. On Sat, Apr 13, 2013 at 9:02 AM, Willy Tarreau w...@1wt.eu wrote: On Sat, Apr 13, 2013 at 08:39:14AM -0400, Joan Touzet wrote: On Sat, Apr 13, 2013 at 7:58 AM, Willy Tarreau w...@1wt.eu wrote: I'm running 1.5dev18. This is a brand new