octavia/elements/cpu-pinning
Tom Weininger c1ebe18e2a Add cpu-pinning element
The new "cpu-pinning" element optimizes the amphora image for better
vertical scaling. When an amphora flavor with multiple vCPUs is
configured it will configure the kernel to isolate (isolcpus)
all vCPUs except the first one.
Furthermore, it uninstalls irqbalance and sets the IRQ affinity to the
first CPU. That way the other CPUs are free to be used by HAProxy
exclusively. A new customized TuneD profile applies some more tweaks
for improving network latency.

This new feature is disabled by default in diskimage-create.sh.

Story: 2010236
Task: 46042
Change-Id: I1a0591de79be867483a044705e866b2368b2a567
2022-12-08 11:59:32 +01:00
..
environment.d Add cpu-pinning element 2022-12-08 11:59:32 +01:00
post-install.d Add cpu-pinning element 2022-12-08 11:59:32 +01:00
static/etc/tuned Add cpu-pinning element 2022-12-08 11:59:32 +01:00
README.rst Add cpu-pinning element 2022-12-08 11:59:32 +01:00
element-deps Add cpu-pinning element 2022-12-08 11:59:32 +01:00
package-installs.yaml Add cpu-pinning element 2022-12-08 11:59:32 +01:00
svc-map Add cpu-pinning element 2022-12-08 11:59:32 +01:00

README.rst

Element to enable optimizations for vertical scaling

This element configures the Linux kernel to isolate all but the first vCPU of the system, so that they are used by HAProxy threads exclusively. It also installs and activates a customized TuneD profile that should further tweak vertical scaling performance.