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

How do you handle leap seconds and time smearing?

AdvancedProductionUser Lifecycle, Auditing & Time Sync
Answer

A leap second inserts 23:59:60, which historically triggered kernel and application bugs. Cloud providers (AWS, Google) smear it, adjusting clocks gradually over hours, so their NTP servers never show the leap. Never mix smeared and non-smeared NTP sources in the same fleet, or hosts disagree by up to a second during the smear window. With chrony, leapsecmode slew and maxslewrate let you smear locally. The CGPM has resolved to stop leap seconds by 2035, but configs still matter until then.

All Linux questions Roadmap: Linux

More on User Lifecycle, Auditing & Time Sync