Neutron-LBaaS v2: mapping HAproxy process to cpu core
Bug #1650270 reported by
Bartek Żurawski
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
octavia |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
HAproxy in default configuration is spawned on one CPU core. This could be changed by adding 'nbproc' option which provide possibility to chose how many cores should be used by HAproxy and which frontend/backend should use more than one core. That kind of configuration will provide better performance to load balancer.
Changed in neutron: | |
assignee: | nobody → Bartek Żurawski (bartekzurawski1) |
affects: | neutron → octavia |
tags: | added: lbaas |
Changed in octavia: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
Changed in octavia: | |
status: | Triaged → In Progress |
To post a comment you must log in.
Hi Bartek,
With each release of haproxy we evaluate the improvements in the multi-process capabilities of HAProxy.
Enabling nbproc > 1 brings with it a number of caveats and features that are no longer available.
Examples include issues with the stats sockets/collection, issues with stick tables for session persistence, and issues doing non-disruptive configuration reload.
Currently, for HAProxy 1.6, nbproc > 1 is still highly discouraged as mentioned here in the documentation: cbonte. github. io/haproxy- dconv/1. 6/configuration .html#3. 1-nbproc
http://
So, based on advice we have received from folks at HAProxy technologies, we have been reluctant to enable multi-process mode by default.
We do understand some environments may benefit from using this setting. It is pretty straight forward to locally modify our jinja templates to enable multi-process mode for your deployment.