Page MenuHomePhabricator

Set CPU affinity for haproxykafka process
Closed, ResolvedPublic

Description

Some optimization were made when haproxykafka was running in screen to test it, namely about setting CPU affinity with taskset.
This should be now reported in the systemd unit file using the CPUAffinity option as listed in https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html

Note to myself: checkout the facts used in the haproxy profile to get a list of nodes to use in the systemd template

Event Timeline

The CPUAffinity property has been set manually on cp4037 and cp3066 using /etc/systemd/system/haproxykafka.service.d/override.conf to understand if that's a possible improvement factor. If this shows benefits it can be brought by puppet relatively easily

Mentioned in SAL (#wikimedia-operations) [2025-02-17T16:57:36Z] <fabfur> removed systemd override for haproxykafka on cp4037 (T378758)

Removed override from cp4037 (on cp3066 this has been already removed on 05/11/2024)

Metrics showed no benefits from this settings