Multi process or multi treaded

What is the preference these days? Shall I go with multiprocess or multithreaded configuration or a mix of both?

I expect 500K connection in an SSL termination/Loadbalancing configuration.


Multi process mode has been deprecated a long time ago and completely removed in 2.5. So you don’t have a choice, actually. It’s multi threading.

Thanks @lukastribus , is there any high level guidance in terms of how many threads per CPU are needed or it is case by case?

Not more than one thread per CPU core.

Depending on how much time you want to invest in low level NIC, kernel and haproxy settings, you could pin haproxy and network interrupts to specific cores on the same NUMA node, but you only want to do that if it is really necessary.

Checkout this thread after post 16:

1 Like