Hi CJ,

> Hello, 
> 
> I am looking for some really solid information on using the tcp 
> splicing features present in recent HAProxy and Linux builds. Most of 
> the information I'm finding with Google is from 2009/2010.

An important information is how your traffic pattern looks like,
and what your box is capable of in terms of CPU power.

For example, are you trying to forward 10Gbps, 20 or 40? Or are
you on a low powered device? Also, the NIC is very important.



> - Which kernel options are required (it appears that patching is no 
> longer required)

Linux 3.5 is needed for real zero copy splicing, you probably may want to
use a stable tree like 3.10 (if you compile on your own, otherwise the latest
Ubuntu LTS release should work perfectly fine).



> - What needs to be configured in the HAProxy config file 

A few suggestions:
- make sure haproxy is compiled with the linux2628 target (./haproxy -vv)
- don't use gzip or ssl offloading on the haproxy box (let the backend handle
  this)
- as for the configuration, check the docs about:
  "option splice-auto", "option splice-request" and "option splice-response".



> - Any performance tuning tips for either component on a box that will 
> have heavy traffic

Use nbproc = 1 and pin interrupts and the haproxy process to the same CPU,
but a different core, so that they can share the CPU cache.

Make sure that your NIC is doing TSO.




Regards,

Lukas

                                          

Reply via email to