bytes_sent?

2013-05-15 Thread Joel Krauska
The HTTP Log Format tracks bytes_read, which appears to be the number of bytes in the HTTP response send from the backend to the requesting client. https://code.google.com/p/haproxy-docs/wiki/HTTPLogFormat I feel also that bytes_sent may be an interesting field to track. For example: An Image

Re: Simple health check return... -- without backend needed?

2013-01-18 Thread Joel Krauska
On Fri, Jan 18, 2013 at 1:44 AM, Jonathan Matthews cont...@jpluscplusm.comwrote: On 18 January 2013 02:26, Joel Krauska jkrau...@gmail.com wrote: monitor-uri looks like it would only work as a path match. I need to match a Host header. Could you elaborate a bit on why you're trying to do

Simple health check return... -- without backend needed?

2013-01-17 Thread Joel Krauska
Is there a simple way to have haproxy send a simple response for a given URL? Matching somewhat the functionality of Nginx's empty_gif module? http://wiki.nginx.org/HttpEmptyGifModule I don't need to send an actual empty gif, but just a simple 200 and OK would be fine. Use case would be to have

Re: Simple health check return... -- without backend needed?

2013-01-17 Thread Joel Krauska
On Thu, Jan 17, 2013 at 3:27 PM, Jonathan Matthews cont...@jpluscplusm.comwrote: On 17 January 2013 23:02, Joel Krauska jkrau...@gmail.com wrote: Is there a simple way to have haproxy send a simple response for a given URL? Matching somewhat the functionality of Nginx's empty_gif module

Re: Backends Referencing other Backends?

2012-10-24 Thread Joel Krauska
The reasons I would want them are in the original email, but here are some more details. 1. -- Gathering of unique stats without having to define a pool twice This would be stellar for adhoc debug. (how much traffic matches this ACL??), but also useful for general traffic classification. 2.

Backends Referencing other Backends?

2012-10-23 Thread Joel Krauska
Hello fellow Haproxy users. Here are some thoughts and example ideas about backend definitions and seeing if anyone has thought of these features or if they're even possible today. Cheers, Joel Krauska 1. 'Stats only backend' I'd like to keep stats for a certain matching condition

Re: request per second statistics

2012-10-02 Thread Joel Krauska
I use something like this: (it has a few things that are specific to my implementation) #!/usr/bin/python import os import csv import urllib2 import pprint import time datadir = '/home/rrdcollect/haproxy-stats/rrds' hostlist = ['a.network.com'] haproxycreds = ['url','user','pass'] key_values =

Delay Frontend Binding?

2011-12-16 Thread Joel Krauska
Is it possible to delay the FrontEnd binding until the back ends have had time to do health checks and rise? Scenario: I use multiple HAProxy nodes with multiple A records. eg: foo.example.com resolves to a.b.c.d and a.b.c.z If the first machine goes down, most browsers happily move along to a

Re: HA for HAProxy in Amazon Cloud

2011-11-18 Thread Joel Krauska
I use two load balancer instances and setup DNS to have two A records. I map each A record to a virtual IP. It's OK for one of those A records to go down. Browsers will move on an try the next one. (test it and be sure, but I've seen it work all the time) 'dig' a few of the major internet

Expire Cookies ??

2011-03-31 Thread Joel Krauska
It would be nice to be able to set an expiration timer on server persistence cookies set by HAProxy. A'la: http://en.wikipedia.org/wiki/HTTP_cookie#Expires_and_Max-Age From what I can tell HAProxy is not setting an expires window for cookies. Is this a feature that I just can't find in the

Apache Compatible HAProxy Log Formatting?

2011-03-09 Thread Joel Krauska
Has anyone worked out a way to get HAProxy to output logging in an Apache Combined Log Format? Most log analysis tools out there already speak Apache log format and I was hoping to avoid writing a parser for what is essentially mostly the same information. Anyone got a work around for this

Re: Apache Compatible HAProxy Log Formatting?

2011-03-09 Thread Joel Krauska
On 3/9/11 12:51 AM, Hervé COMMOWICK wrote: On Wed, 09 Mar 2011 00:40:12 -0800 Joel Krauskajkrau...@gmail.com wrote: Has anyone worked out a way to get HAProxy to output logging in an Apache Combined Log Format? Most log analysis tools out there already speak Apache log format and I was

Re: Apache Compatible HAProxy Log Formatting?

2011-03-09 Thread Joel Krauska
On 3/9/11 1:03 AM, Graeme Donaldson wrote: 2011/3/9 Hervé COMMOWICKhcommow...@exceliance.fr: http://haproxy.1wt.eu/download/1.4/doc/configuration.txt option httplog [ clf ] Enable logging of HTTP request, session state and timers May be used in sections : defaults | frontend | listen |

Re: Configuration API?

2011-02-07 Thread Joel Krauska
On 2/7/11 1:01 PM, Willy Tarreau wrote: On Mon, Feb 07, 2011 at 09:45:21AM +0100, Bedis 9 wrote: Do you have an example of what purpose it would serve ? I'm asking because it's not very easy to implement with table-based algorithms, since the size of the table is determined by the GCD of all

Configuration API?

2011-02-04 Thread Joel Krauska
Has there ever been effort in building out a configuration API for HAProxy? It would be nice to be able to tweak configs externally to do things. (simpler things now, but obviously being able to tweak /ANY/ config parameter might be nice down the road) My wish list: - put a server in backup

Re: Configuration API?

2011-02-04 Thread Joel Krauska
.1wt.eu/download/1.4/doc/configuration.txt -JohnF On 11-02-04 03:40 PM, Joel Krauska wrote: Has there ever been effort in building out a configuration API for HAProxy? It would be nice to be able to tweak configs externally to do things. (simpler things now, but obviously being able to tweak /ANY

Re: Load Balancing with haproxy makes my application slower?

2011-01-29 Thread Joel Krauska
Sean, I think it would be helpful to further explain your testing scenario. How do you simulate concurrent users? What is RSTav? Usersps is sessions per second?? I think most folks use Apache Bench http://httpd.apache.org/docs/2.0/programs/ab.html as a fairly common industry standard for

Re: Custom field addition to Statistics Report webpage?

2011-01-26 Thread Joel Krauska
On 1/25/11 10:48 PM, Willy Tarreau wrote: Hi Joel, On Tue, Jan 25, 2011 at 01:29:11PM -0800, Joel Krauska wrote: I'm not sure if people have asked for this, but I would love a custom field/column in the Stats Report web page. Specifically, I would like to be able to see my backend server

Re: Custom field addition to Statistics Report webpage?

2011-01-26 Thread Joel Krauska
On 1/26/11 2:06 AM, Willy Tarreau wrote: On Wed, Jan 26, 2011 at 12:56:54AM -0800, Joel Krauska wrote: On 1/25/11 10:48 PM, Willy Tarreau wrote: Hi Joel, On Tue, Jan 25, 2011 at 01:29:11PM -0800, Joel Krauska wrote: I'm not sure if people have asked for this, but I would love a custom field

Re: Custom field addition to Statistics Report webpage?

2011-01-26 Thread Joel Krauska
On 1/26/11 4:30 PM, Willy Tarreau wrote: On Wed, Jan 26, 2011 at 03:00:00PM -0800, Joel Krauska wrote: Ok, so I've modified our HTTP responses to include the version. OK. I've noticed that it's only displayed as a tooltip (pop up box when you mouse-over the TD). td class=ac title=Layer7

Custom field addition to Statistics Report webpage?

2011-01-25 Thread Joel Krauska
I'm not sure if people have asked for this, but I would love a custom field/column in the Stats Report web page. Specifically, I would like to be able to see my backend server version. This is a custom text string which I could provide a health-check-like URL to populate. Then the HAProxy stats