Configure systemd CPUShares/CPUQuota for fm-api.service

fm-api.service CPUShares is reduced to 512 out of 1024 since
it exhibits severe CPU hog behaviour for extended periods.

This is part of an overall set of adjustments are required for systemd
cgroups CPUShares, CPUQuota, and AllowedCPUs for key system services.
This will improve latency of Kubernetes critical components, and
throttles lesser important services.

Partial-Bug: 2084714

TEST PLAN:
AIO-SX, AIO-DX, Standard, Storage, DC:
- PASS: Fresh install
- PASS: verify systemd parameters for fm-api

Example:
  systemctl show fm-api.service | grep -e CPUShares

AIO-SX, AIO-DX:
- PASS: BnR
- PASS: K8S orchestrated Upgrade 1.24 - 1.29

Change-Id: I5581036d325cb9ed615324ebf6eff2b9820b051c
Signed-off-by: Jim Gauld <James.Gauld@windriver.com>
This commit is contained in:
Jim Gauld 2024-11-15 03:09:48 -05:00
parent 5b7df8de5a
commit ca1a8465d0

View File

@ -11,5 +11,8 @@ ExecStart=/etc/init.d/fm-api start
ExecStop=/etc/init.d/fm-api stop
PIDFile=/var/run/fm-api.pid
# cgroup engineering
CPUShares=512
[Install]
WantedBy=multi-user.target