Upgrade Kernel Linux Latest Long Time Support
This upgrade is for Centos, AlmaLinux and RockyLinux
*** At your own risk. Know what you are doing. No support available ***
dnf update and reboot (Make sure get downtime approval for Production)
Install repository from http://elrepo.org/tiki/HomePage
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
Install repository Centos 8, AlmaLinux 8 and RockyLinux 8
dnf install https://www.elrepo.org/elrepo-release-8.el8.elrepo.noarch.rpm
Refer website for different version of Centos, AlmaLinux and RockyLinux
To enable Long Time Support LTS http://elrepo.org/tiki/kernel-lt
dnf --enablerepo=elrepo-kernel install kernel-lt
edit fail /etc/default/grub and update or add with this preferences
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
save the changes and run this commands
grub2-set-default 0
grub2-mkconfig -o /boot/grub2/grub.cfg
reboot and select kernel 5.4 or later LTS from Grub menu, or you just wait for login prompt or SSH.
Check with command
uname -a
Linux LinuxMy 5.4.210-1.el8.elrepo.x86_64 #1 SMP Tue Aug 9 17:41:36 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux
This setting to improved network connection for Congestion control
https://blog.cloudflare.com/http-2-prioritization-with-nginx/
edit and add into /etc/sysctl.conf
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr