Interview Prep/Linux/Migrations, performance and fleet operations

Your servers' clocks drift and logs from different hosts don't line up. How do you set up time sync properly?

IntermediateScenarioMigrations, performance and fleet operations
Answer

Situation read → chrony with reliable sources.

What I'd do → /etc/chrony.conf:

server 169.254.169.123 prefer iburst     # AWS Time Sync (or your internal NTP)
pool 2.pool.ntp.org iburst
makestep 1.0 3
rtcsync

systemctl enable --now chronyd, then check chronyc tracking and chronyc sources -v. Set every server to UTC: timedatectl set-timezone UTC.

Why → Consistent time matters for log correlation, TLS, Kerberos and distributed databases.

Interview tip → UTC on servers, local time only in dashboards.

All Linux questions Roadmap: Linux

More on Migrations, performance and fleet operations