Interview Prep/Linux/User Lifecycle, Auditing & Time Sync

What is chrony and how do you configure it?

BeginnerProductionUser Lifecycle, Auditing & Time Sync
Answer

chrony is the default NTP implementation on RHEL and many modern distros; it syncs fast after boot and handles intermittent connectivity and VMs well.

# /etc/chrony.conf
server 169.254.169.123 prefer iburst minpoll 4 maxpoll 4   # AWS Time Sync
pool 2.pool.ntp.org iburst
makestep 1.0 3
rtcsync
sudo systemctl enable --now chronyd     # 'chrony' on Debian/Ubuntu
All Linux questions Roadmap: Linux

More on User Lifecycle, Auditing & Time Sync