Re: Haproxy scripted checks

2009-07-09 Thread Willy Tarreau
Hi Craig, On Thu, Jul 09, 2009 at 11:14:56PM +0200, Craig wrote: > Hi Willy, hi list, > > I've thought about haproxy checks a bit lately. > Here is my approach: don't do these checks in C. > > It's > a) not fun to code string/checks for every protocol in C > b) to time-inefficient > c) not flexi

Re: haproxy include config

2009-07-09 Thread Willy Tarreau
Hi Holger, On Thu, Jul 09, 2009 at 11:12:09PM +0200, Holger Just wrote: > Would it be difficult to extent your patch to load all files > (potentially named *.cfg or something like that) in a directory? You > could check each argument if it's a file or a directory and include its > containing files

Re: haproxy include config

2009-07-09 Thread Holger Just
On 09.07.2009 7:15 Uhr, Willy Tarreau wrote: > As I said in earlier mail, I have implemented the "multiple file" loading > in 1.4-dev : > > > http://haproxy.1wt.eu/git?p=haproxy.git;a=commit;h=5d01a63b7862235fdd3119cb29d5a0cfd04edb91 > > If many people are interested, I know it will be quite e

Re: haproxy include config

2009-07-09 Thread Craig
Hi, The code is available at: [...] If many people are interested, I know it will be quite easy to backport it to 1.3, and I can merge it into 1.3.19 once I have a few other things to put with it. What's your opinion ? I'd like to see it backported. Best regards, Craig

Re: nginx 400 status code sometimes reported as 502 in haproxy

2009-07-09 Thread Willy Tarreau
On Thu, Jul 09, 2009 at 04:47:23PM +0200, Jean-Baptiste Quenot wrote: > I could reproduce the issue in a test setup. Haproxy is running on > port 80 and nginx on port 83. The client sends a very long cookie > header value (4104 bytes). I used "tcpdump -s 0 -i lo -w dump port > 83", loaded the dum

Re: Tracking down IP address problem

2009-07-09 Thread Joseph Hardeman
You can run ip addr sh eth0 to see if it is on that interface on your system but not labeled so that ifconfig would show it. But if you try to ping it from another system on your network, do you get any response? I don't see anything off hand wrong in your interfaces config below. Joe To

Tracking down IP address problem

2009-07-09 Thread Tom Potwin
Hi all I've been trying to track down a problem I'm having assigning IP address. I have one DOMU with a Ubuntu web server running on it. I have two NIC's eth0 and eth1. The assigned IP for the DOMU on eth0 is 192.168.31.202, and I need to add more IP's to it. I add them to my /etc/network/interfa

Re: nginx 400 status code sometimes reported as 502 in haproxy

2009-07-09 Thread Willy Tarreau
On Thu, Jul 09, 2009 at 01:47:06PM +0200, Jean-Baptiste Quenot wrote: > Hi Willy, > > I'm successfully using the stats socket for monitoring. But when I > did a "show errors" nothing was printed at all. I tried using socat > with "show stat" and it works, but "show errors" after getting a 502" >

Re: Selective logging

2009-07-09 Thread Jean-Baptiste Quenot
2009/7/7 Alex Forrow : > > We have been using HAProxy very successfully on a busy website for a while > now, sending all logs via syslog to a separate server. > > A single frontend is used to serve all public requests, and currently logs > everything. We would like to just log requests for dynamic

Re: nginx 400 status code sometimes reported as 502 in haproxy

2009-07-09 Thread Jean-Baptiste Quenot
2009/7/9 Willy Tarreau : > > On Mon, Jul 06, 2009 at 12:31:07PM +0200, Jean-Baptiste Quenot wrote: >> Hi there, >> >> In my setup an incoming HTTP requests follows the chain Varnish -> >> Haproxy -> Nginx.  Haproxy is configured to have Nginx as one of the >> backends. >> I have an interesting prob