Usage of cpu-map and nbproc


#1

Hello!

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?

Thanks!!


#2

hi
you should be use this way :

nbproc 32

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

#3

Hello hos7ein!

But use all isn’t the same?


#4

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

https://cbonte.github.io/haproxy-dconv/1.5/configuration.html#bind-process
https://cbonte.github.io/haproxy-dconv/1.5/configuration.html#nbproc