ha/service-mgmt
Jim Gauld 348021f752 Configure systemd CPUShares for sm and sm-api services
sm service and sm-api service CPUShares are reduced to 512 out of 1024
since they exhibit severe CPU hog behaviour for extended periods
particularly during host configuration.

NOTE: CPUQuota may not be used for these services because they require
more than number of Platform CPUs during host configuration.

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 sm and sm-api
  Example:
    systemctl show sm.service | grep -e CPUShares
    systemctl show sm-api.service | grep -e CPUShares

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

Change-Id: If72dd952aec5331db8146caefe8441b96475211d
Signed-off-by: Jim Gauld <James.Gauld@windriver.com>
2024-11-15 03:16:25 -05:00
..
2024-08-07 16:03:09 +00:00
2018-05-31 07:36:26 -07:00