U
U
un1t2016-06-03 22:05:11
System administration
un1t, 2016-06-03 22:05:11

How to specify in HAProxy that it uses all processors?

For example, I have 4 processors, the following is written in the config:

global
    nbproc 4
    cpu-map all 4
    stats bind-process 4

I use cloud infrastructure and the number of processors in a virtual machine can be changed, including using autoscaling.
I would not want to manually edit the configs every time.
Can I somehow tell HAProxy to use all available processors?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2016-06-04
@un1t

It seems that nothing means haproxy.
You can modify the haproxy launch script by adding the functionality of determining the number of processors and making edits to the config. Or be content with a certain sufficient number of processors for haproxy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question