ETA: For those wanting to know the root cause, see the comments.
So, MySQL seemed to be faring just fine during and after the leap second. There were no big problems or catastrophic failures. However, we noticed that MySQL (and Java) servers* had a huge spike in CPU – which was odd, because nothing out of the ordinary was running. We were able to fix the problem quite easily. Here’s the graph, and the fix:

Note that the CPU spikes starting at 17:00 Pacific, which is midnight UTC. We fixed it around 19:35 Pacific.
The fix is quite simple – simply set the date. Alternatively, you can restart the machine, which also works. Restarting MySQL (or Java, or whatever) does NOT fix the problem. We put the following into puppet to run on all our machines:
$ cat files/bin/leap-second.sh
#!/bin/bash
# this is a quick-fix to the 6/30/12 leap second bug
if [ ! -f /tmp/leapsecond_2012_06_30 ]
then
/etc/init.d/ntpd stop; date -s "`date`" && /bin/touch /tmp/leapsecond_2012_06_30
fi
We ran this in puppet, which we set to run the command on the next puppet run, and puppet would also restart ntp (the way we have it configured; your mileage may vary).
* and a bunch of our IT guys have personal, at-home minecraft servers, which were also similarly affected.
Robert Coli
wrote on
:
Sheeri
wrote on
::
Robert Coli
wrote on
:
Robert Coli
wrote on
:
k
wrote on
:
wesmorgan1
wrote on
::
Ross
wrote on
::
Pingback from 闰秒导致系统CPU利用率暴涨 | 坚果云博客 on ::
Adminblogger
wrote on
:
Jason Drage
wrote on
::
nathan
wrote on
:
Sam Pullara
wrote on
:
bburton
wrote on
:
John Stultz
wrote on
:
nathan
wrote on
:
Jayfar
wrote on
:
Tero Marttila
wrote on
:
Justin Dolske
wrote on
:
Pingback from High cpu load on CloudStack management servers after leap second 30/6/2012 on ::
Pingback from MySQL and the Leap Second, High CPU and the Fix | Mozilla IT | ちゅどん道中記 on ::
Pingback from Plötzliche hohe MySQL CPU Auslastung ohne aktive Queries » Debian Root on ::
Pingback from Blogme » Blog Archive » MySQL and the Leap Second, High CPU and the Fix | Mozilla IT on ::
Pingback from Me Blog − MySQL and the Leap Second, High CPU and the Fix | Mozilla IT on ::
Pingback from Leap Second Problem auf Debian und anderen › NETWAYS Blog on ::
Pingback from (Linux) Leap second message Issue 2012 | 나만의 세상~! on ::
Pingback from High MySQL CPU Load Today? Quick Fix « Coffee on the Keyboard on ::
Pingback from Перевод мировых атомных часов на одну секунду привёл к массовому зависанию серверных приложений | AllUNIX.ru — Всероссийский портал о UN on ::
Pingback from Quick Links related to linux leap second issue (especially for Java users) | DonaldOJDK Blog on ::
Pingback from Elementary! MySQL did it, in the CPU, with the the leap second! | Martin Falatic’s Techno Blog on ::
Alex Kavanagh
wrote on
:
Pingback from Перевод мировых атомных часов на одну секунду привёл к массовому зависанию серверных приложений : Записки начинающего линуксоида on ::
Pingback from Verlängertes Wochenende kann Linux einfrieren | virtualfiles.net on ::
Sven T
wrote on
:
Pingback from うるう病にかかっていた件 at reisa Sekai on ::
Pingback from Anonymous on ::
Pingback from Happy Leap Second! « Just Urbanism on ::
Pingback from Перевод мировых атомных часов на одну секунду привёл к массовому зависанию серверных приложений | conon print Перевод мировых атомных часов на on ::
Pingback from Linux, BSD un citas lietas - Atvērtajās ziņās | Globālas problēmas atompulksteņa sinhronizācijas dēļ on ::
Pingback from Schaltsekunde: Linux kann einfrieren | virtualfiles.net on ::
Pingback from Leap second hits Qantas air bookings, while Reddit and Mozilla stutter | AKTUAL TECHNO NEWS on ::
Pingback from Leap second hits Qantas air bookings, while Reddit and Mozilla stutter | Old News on ::
Pingback from Leap second hits Qantas air bookings, while Reddit and Mozilla stutter on ::
Pingback from Leap second hits Qantas air bookings, while Reddit and Mozilla stutter | Technology News on ::
Pingback from Leap second: Linux can freeze on ::
Trackback from What problems did adding a leap second on June 30, 2012 cause?... on ::
Pingback from “Leap second” | ~/blog on ::
Pingback from What does the leap-second bug look like? » Aaron at the Internet Archive on ::
Ben
wrote on
:
Pingback from Leap second bug found to be Linux issue, not Cassandra. | DataStax on ::
Pingback from Leap second og CentOS 6 | KP sin huskeblogg on ::
Sapd
wrote on
:
Pingback from The 2012 Leap Second on Linux | Open Query blog on ::
Pingback from Dodatkowa sekunda spowodowała problemy na Linuksie | OSWorld.pl on ::
Cédric
wrote on
::
Pingback from Electrical Storms, Leap-Seconds, and the Ops Weekend from Hell - FullContact on ::
Pingback from Leap Second, Public Cloud and a Lesson in Enterprise Resiliency | Secure Lagos on ::
Pingback from The 2012 Leap Second on Linux | ForLinux Blog on ::
Trackback from ... [Trackback]... on ::