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.
More on Migrations, performance and fleet operations
You must migrate 2 TB of application data from an old server to a new one with less than 5 minutes of downtime. How?IntermediateThe new server has different UIDs for the same users than the old one. What breaks during migration and how do you handle it?IntermediateA server is "slow" according to users. What is your first 60 seconds of investigation?BeginnerYour team must capacity-plan for a server whose disk grows 4% per week. How do you predict when it fills?IntermediateYou need to replace a physical server with a VM without changing its IP or hostname. Plan the cutover.IntermediateMemory usage on a server shows 95% used but the app is fine. A manager is worried. How do you explain and verify?Beginner