Re: Adding a unique id header to each request?

2012-12-11 Thread Roy Smith
problem by retreating back to lucid. We don't know if it's an nginx issue, or a problem with the underlying SSL library. I'm curious if you've seen anything similar? On Dec 11, 2012, at 5:54 PM, Willy Tarreau wrote: > Hi Roy, > > On Tue, Dec 11, 2012 at 05:08:17PM

Re: Adding a unique id header to each request?

2012-12-11 Thread Roy Smith
be it provides whay you want (and makes your patch useless). > > cheers > > > On Tue, Dec 11, 2012 at 10:39 PM, Roy Smith wrote: >> Hi Willy, >> >> I've just finished patching haproxy-1.5-dev14 to use my unique-id header >> code, which we discusse

Re: Adding a unique id header to each request?

2012-12-11 Thread Roy Smith
k we've given it a fair workout. The feature has proven invaluable for debugging problems in the site, as it lets us easily correlate lines in our haproxy, nginx, and application log files. I'm sure many other haproxy users would find it equally useful. --- Roy Smith r...@panix.com

Re: How does http_find_header() work?

2011-04-01 Thread Roy Smith
On Apr 1, 2011, at 2:11 AM, Willy Tarreau wrote: > On Thu, Mar 31, 2011 at 08:10:04AM -0400, Roy Smith wrote: >> I didn't really write a specification, but I think a critical part of the >> spec >> would be that the only guarantee about the id string is that it's

Re: How does http_find_header() work?

2011-03-31 Thread Roy Smith
ndering about > the id format. If all the "fields" correspond to something meaningful, > like host_id, pid, timestamp, etcetera, would it make sense to have > them in a more human readable format? > > Regards, > Bart > > On Thu, Mar 31, 2011 at 4:30 AM, Roy Sm

Re: How does http_find_header() work?

2011-03-31 Thread Roy Smith
be stripped (using reqidel) and still have the new one added > properly. > > -Bryan > > > On Wed, Mar 30, 2011 at 7:30 PM, Roy Smith wrote: >> Willy, >> >> This turned out to be surprisingly straight-forward. Patch attached >> (against the 1.4.11 sources)

Re: How does http_find_header() work?

2011-03-30 Thread Roy Smith
Willy, This turned out to be surprisingly straight-forward. Patch attached (against the 1.4.11 sources). To enable generation of the X-Unique-Id headers, you add "unique-id" to a listen stanza in the config file. This doesn't make any sense unless you're in http mode (although my code doesn'

Re: How does http_find_header() work?

2011-03-28 Thread Roy Smith
On Mon, 2011-03-28 at 07:22 +0200, Willy Tarreau wrote: > On Sun, Mar 27, 2011 at 09:28:15PM -0400, Roy Smith wrote: > > Thanks! Looks like "capture request header" does exactly what I want. > > > > Well, mostly. This gets me logging if the header exists. Now I

Re: How does http_find_header() work?

2011-03-27 Thread Roy Smith
string to the session struct and use it for your needs. -- Roy Smith roy.sm...@s7labs.com

How does http_find_header() work?

2011-03-27 Thread Roy Smith
eol = sol + idx->v[cur_idx].len; Is there something I need to be doing to initialize the sol element of the request? -- Roy Smith roy.sm...@s7labs.com

Parsing haproxy log files (python)

2011-03-18 Thread Roy Smith
Before I reinvent the wheel, has anybody already written code to parse haproxy log messages with Python?

Re: Adding a unique id header to each request?

2011-01-27 Thread Roy Smith
e the first one strip existing tags, and all the later ones keep them, since that would be the one added by the first one in the chain. On Jan 27, 2011, at 5:44 PM, Willy Tarreau wrote: > Hi Roy, > > On Thu, Jan 27, 2011 at 02:51:37PM -0500, Roy Smith wrote: >>> Try to

Re: Adding a unique id header to each request?

2011-01-27 Thread Roy Smith
On Jan 26, 2011, at 1:09 AM, Willy Tarreau wrote: > Hi Roy, > > On Sun, Jan 23, 2011 at 10:04:57AM -0500, Roy Smith wrote: >> Cool. What can I do to help? > > Could you try to identify precisely how it would be used at your site ? > Try to think about these cases : >

Re: Adding a unique id header to each request?

2011-01-23 Thread Roy Smith
Cool. What can I do to help? On Jan 23, 2011, at 12:51 AM, Willy Tarreau wrote: > Hi Roy, > > On Sat, Jan 22, 2011 at 05:26:12PM -0500, Roy Smith wrote: >> Is there a way to have haproxy generate (and log) a unique ID for every >> incoming request, and add that ID as

Adding a unique id header to each request?

2011-01-22 Thread Roy Smith
The idea here is to be able to correlate log entries from all the various moving pieces that are involved in responding to a request. -- Roy Smith r...@panix.com

Re: Can't get server check to work with virtual hosts

2010-08-17 Thread Roy Smith
n wrote: > Hi Roy > > You simply need to send an HTTP 1.1 request with a Host: header in the http > check, like this: > > option httpchk GET /index.html\r\nHost: vhost.example.com > > Graeme. > > On 17 August 2010 23:19, Roy Smith wrote: > I'm running &

Can't get server check to work with virtual hosts

2010-08-17 Thread Roy Smith
I'm running "HA-Proxy version 1.3.22" on Ubuntu Linux. I've got apache set up with two virtual hosts, and I want to use haproxy to round-robin between them. Ultimately, these virtual hosts will be on different machines, but for my testing environment, they're on the same box. I've got a confi