26 Disabling systemd services #
For Telco workloads, it is important to disable or configure properly some of the services running on the nodes to avoid any impact on the workload performance running on the nodes (latency).
rebootmgris a service which allows to configure a strategy for reboot when the system has pending updates. For Telco workloads, it is really important to disable or configure properly therebootmgrservice to avoid the reboot of the nodes in case of updates scheduled by the system, to avoid any impact on the services running on the nodes.
Verify the strategy being used by running:
cat /etc/rebootmgr.conf
[rebootmgr]
window-start=03:30
window-duration=1h30m
strategy=best-effort
lock-group=defaultand you could disable it by running:
sed -i 's/strategy=best-effort/strategy=off/g' /etc/rebootmgr.confor using the rebootmgrctl command:
rebootmgrctl strategy offThis configuration to set the rebootmgr strategy can be automated using the directed network provisioning workflow. For more information, check the Automated Provisioning documentation (Part VII, “Fully automated directed network provisioning”).
transactional-updateis a service that allows automatic updates controlled by the system. For Telco workloads, it is important to disable the automatic updates to avoid any impact on the services running on the nodes.
To disable the automatic updates, you can run:
systemctl --now disable transactional-update.timer
systemctl --now disable transactional-update-cleanup.timerfstrimis a service that allows to trim the filesystems automatically every week. For Telco workloads, it is important to disable the automatic trim to avoid any impact on the services running on the nodes.
To disable the automatic trim, you can run:
systemctl --now disable fstrim.timer