Re: Getting size of response

2014-08-27 Thread Nick Jennings
, Patrick Hemmer hapr...@stormcloud9.net wrote: From: Nick Jennings n...@silverbucket.net Sent: 2014-08-26 19:55:34 EDT To: haproxy haproxy@formilux.org Subject: Getting size of response Hi all, is there a way to get the size of a response as it's being sent out through haproxy during

Getting size of response

2014-08-26 Thread Nick Jennings
Hi all, is there a way to get the size of a response as it's being sent out through haproxy during logging? The node.js app (restify) is sending gzip'd responses but not including a Content-Length due to some bug. I was wondering if I could get the size with haproxy and side-step the whole issue.

Measuring HTTP traffic basic on URIs and custom headers

2014-08-25 Thread Nick Jennings
http://stackoverflow.com/questions/25496683/measuring-http-traffic-basic-on-uris-and-custom-headers?noredirect=1# Hi all, I'm currently working on an API service and one of the requirements is that we measure the amount of data used by each user of the system, and track how many times they use

Re: Rule to serve /docs via. nginx not working with trailing slash

2014-04-29 Thread Nick Jennings
:) On 04/24/2014 12:54 PM, Nick Jennings wrote: ... However when I try to use: http://example.com/docs(note: no trailing slash) I get a long wait, nothing in the nginx logs, and then eventually the URL in the browser is rewritten to: example.com:8090/docs http://example.com

Rule to serve /docs via. nginx not working with trailing slash

2014-04-24 Thread Nick Jennings
Hi All, I've got a pretty simple setup at the moment. A node.js application (REST API) which is listening on port localhost 8080, and a collection of static html files which I'd like to be served from nginx listening on localhost port 8090. --- frontend public bind *:80 acl is_api

Re: 1.5-dev19 crashes

2013-09-01 Thread Nick Jennings
it crashes again. Cheers Nick On Sat, Aug 31, 2013 at 8:36 AM, Willy Tarreau w...@1wt.eu wrote: Hi, On Thu, Aug 29, 2013 at 01:35:49PM +0200, Nick Jennings wrote: On Thu, Aug 29, 2013 at 4:40 AM, Amyas am...@yasmolive.com wrote: Nick Jennings nick@... writes: I'm running

Re: 1.5-dev19 crashes

2013-08-28 Thread Nick Jennings
Hi Everyone, apologies for not replying sooner, I had my filtering a bit too overbearing and didn't notice the replies. In answer to your question, no actually I had never noticed any crashes of haproxy before build19. Unfortunately I just experienced a crash using the git checkout, it was the

Re: 1.5-dev19 crashes

2013-08-28 Thread Nick Jennings
On Thu, Aug 29, 2013 at 2:41 AM, Amyas am...@yasmolive.com wrote: Nick Jennings nick@... writes: Nor can I set the core dump pattern:# echo /tmp/core-%e-%s-%u-%g-%p-%t /proc/sys/kernel/core_pattern bash: echo: write error: Operation not permitted (running as root) What distro

1.5-dev19 crashes

2013-08-19 Thread Nick Jennings
Hello, I've been running 1.5-dev releases for about 6 months now, and have been running dev19 since it was released in June. It seems to be crashing on me more than the previous builds. I ran it in debug mode and logged to a file, so hopefully this can help to track down the issue. Here's the

Re: 1.5-dev19 crashes

2013-08-19 Thread Nick Jennings
? Usually, the second option is prefered, so if you chose the first one, could you please update it using git then let us know if this version still crashes. Baptiste On Mon, Aug 19, 2013 at 2:31 PM, Nick Jennings n...@silverbucket.net wrote: Hello, I've been running 1.5-dev releases

reqrep force a trailing slash

2013-05-20 Thread Nick Jennings
Hi All, When someone visit www.example.com/foobar I'd like to force a trailing slash. Here's what I've got so far, but it doesn't seem to be working, and I've tried a number of variations to no avail. reqrep ^([^\ ]*)\ /foobar(.*) \1\ /foobar/\2 If someone goes to example.com/foobar/stuff

Re: tuning maxconn and nbproc

2013-03-24 Thread Nick Jennings
Hi Lukas, thanks for your reply. I have a couple followup questions regarding maxconn below. On Sun, Mar 24, 2013 at 7:06 AM, Lukas Tribus luky...@hotmail.com wrote: Hi Nick, For maxconn, in defaults. I read a lot of places that this value depends on the ulimit value of the system, but it's

tuning maxconn and nbproc

2013-03-23 Thread Nick Jennings
Hi All, I have a few basic questions about maxconn and nbproc. For maxconn, in defaults. I read a lot of places that this value depends on the ulimit value of the system, but it's not clear in what way they are related. Should it match the value of the systems ulimit? or should it be a multiple

Re: how hard is haproxy to administor?

2013-02-26 Thread Nick Jennings
HAProxy, despite the name :), is extremely simple to set up and manage, once you understand the basics. I'd recommend giving it a shot, you can always switch to Amazon EC2, do you have to make your decision before you try either? I got SSL up and running a few months ago with the 1.5 dev branch