Usage of cpu-map and nbproc


I have a 32 vCPU machine, and I have a question.

The use of nbproc are not recommended, but I would like to use all of my cpu cores.

So, if I configure like this:

nbproc 1
cpu-map all 1-32

I’ll have just one process, but I will be able to use all those processors? Or to do so, I need to use nbproc together with cpu-map?


you should be use this way :

nbproc 32

cpu-map 1 0
cpu-map 2 1
cpu-map 32  31

Hello hos7ein!

But use all isn’t the same?

no! you must be First assign each haproxy instance to processes and use “bind-process” on frontend or backend.