Hello,
I have a haproxy-1.5.11 with a single frontend passing requests to a single backend in TCP mode (sample config).
Application establishes several long-living tcp connections and sends a lot of small requests over them.
In my test case I have 2 simultaneous TCP connections producing about 3 MB/sec, 20 kpps input (as shown by netstat on backend machine) and approximately the same output.
haproxy process consumes about 20% of CPU core (I have a machine with 2 Intel Xeon E5-2650 v2 @ 2.60GHz).
In my understanding such CPU usage is rather high for the relatively low load.
I tried both FreeBSD and Linux and see similar results (I am interested in FreeBSD though).
Anything obvious I can tune?
Thanks.
I have a haproxy-1.5.11 with a single frontend passing requests to a single backend in TCP mode (sample config).
Application establishes several long-living tcp connections and sends a lot of small requests over them.
In my test case I have 2 simultaneous TCP connections producing about 3 MB/sec, 20 kpps input (as shown by netstat on backend machine) and approximately the same output.
haproxy process consumes about 20% of CPU core (I have a machine with 2 Intel Xeon E5-2650 v2 @ 2.60GHz).
In my understanding such CPU usage is rather high for the relatively low load.
I tried both FreeBSD and Linux and see similar results (I am interested in FreeBSD though).
Anything obvious I can tune?
Thanks.