Hello all,

I'm faced with a couple of things that I want to change in haproxy 1.4.8. First I'll start with what I want to achieve by recompiling haproxy: I want to increase the sending buffer to 32kb and the logging size to 32kb as well. I have to deal with huge GET requests , that is the reason behind this change , so I want to send and also be able to log those big requests. The default for these two values is: for the sending buffer is 8kb and the logging buffer is at 1kb.

In order to achieve these 2 things this is what I changed at compile time:

  1. for the buffer size :  (in include/common/defaults.h) define
     BUFSIZE         65536      , taking into consideration that
     MAXREWRITE is defined as BUFSIZE/2 I figure that the value above
     will change the buffer size to 32kb. I am aware that there is a
     config file parameter type of increasing the buffer size as well
     but since I was recompiling I thought of changing in the buffer
     size in the source code as well.
  2. for the increased logging buffer this is what I've changed
        1.   in include/common/defaults.h
              1. define REQURI_LEN    32768
        2. in include/types/log.h
              1. define MAX_SYSLOG_LEN          32768

(kudos to vr and flashn for helping me figure out what defines to change in the source code)

However even after recompiling with these changes in place the proxy still has the sending buffer set to 8kb and the logging buffer set to 1kb.
    Which other defines would I need to change ?

The hardware that is running haproxy is a proliant dl380 g5 : 2 cpus Intel Xeon E5440 @ 2.83GHz 4 cores each, 16GB ram, ubuntu 10.04 x64.

Regards,
Stefan

Reply via email to