{"id":991,"date":"2012-07-04T10:09:20","date_gmt":"2012-07-04T08:09:20","guid":{"rendered":"http:\/\/blog.giga-hosting.biz\/?p=991"},"modified":"2012-07-04T10:09:20","modified_gmt":"2012-07-04T08:09:20","slug":"a-second-that-could-make-a-difference-and-bring-your-server-down-the-buggy-lil-leap-second-bug","status":"publish","type":"post","link":"https:\/\/contabo.com\/blog\/a-second-that-could-make-a-difference-and-bring-your-server-down-the-buggy-lil-leap-second-bug\/","title":{"rendered":"A Second that could make a difference and bring your server down!!!  \u2013 The buggy lil &#8216;leap second bug&#8217;"},"content":{"rendered":"<p>The weekend was pretty disastrous for websites around the Internet. First, storms in United States knocked out power in Amazon&#8217;s data centres, and with it, around 1% of American websites. This included popular websites like Foursquare, Instagram, Pinterest and Netflix. Then, just as websites were hobbling back to life, the &#8220;leap second&#8221; bug struck.<\/p>\n<p>Timekeepers had announced plans to add an extra second to June 30, to compensate for Earth&#8217;s movement around the Sun. This &#8220;leap second&#8221; is added to the International Atomic Time (TAI) to ensure that Earth&#8217;s clocks stay in-sync with &#8220;solar-time&#8221;. So far so good, where do the websites come in?<\/p>\n<p>Many computers use Network Time Protocol (NTP) to keep their clocks synchronised with the International Atomic Time. When the atomic time keepers added a second at 23:59:59 on Saturday, just like they said they would, all hell broke lose. Servers, especially those running on some versions of Java and Linux, choked on the &#8220;leap second&#8221;, bringing down with them some of the most popular websites in the world.<\/p>\n<p>According to <a title=\"BuzzFeed\" href=\"http:\/\/www.buzzfeed.com\/summeranne\/y2k-20-how-a-second-brought-down-half-the-intern\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">BuzzFeed<\/a>, Reddit, Gawker media sites, StumbleUpon, Yelp, FourSquare, LinkedIn, and Meetup were among the websites affected by the &#8220;leap second bug&#8221;. All websites mentioned have since patched their servers and are back running normally.<\/p>\n<p>It is a little surprising to note there are still pieces of code struggling with the &#8220;leap second&#8221; phenomenon, since this is nothing new. Saturday was the 25th instance of a &#8220;leap second&#8221; being added to a day, with the last one on 31st December 2008. Companies like <a title=\"Google\" href=\"http:\/\/googleblog.blogspot.in\/2011\/09\/time-technology-and-leaping-seconds.html\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Google<\/a> and <a title=\"Opera\" href=\"http:\/\/my.opera.com\/marcomarongiu\/blog\/2012\/06\/01\/an-humble-attempt-to-work-around-the-leap-second\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Opera<\/a> have in the past explained their strategies to workaround any potential &#8220;leap second bugs&#8221;, so there&#8217;s no excuse for major software vendors to be caught unawares.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The weekend was pretty disastrous for websites around the Internet. First, storms in United States knocked out power in Amazon&#8217;s data centres, and with it, around 1% of American websites. This included popular websites like Foursquare, Instagram, Pinterest and Netflix. Then, just as websites were hobbling back to life, the &#8220;leap second&#8221; bug struck. Timekeepers [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[970],"tags":[],"ppma_author":[1485],"class_list":["post-991","post","type-post","status-publish","format-standard","hentry","category-neuigkeiten"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Katharina","author_link":"https:\/\/contabo.com\/blog\/author\/katharina\/"},"uagb_comment_info":0,"uagb_excerpt":"The weekend was pretty disastrous for websites around the Internet. First, storms in United States knocked out power in Amazon&#8217;s data centres, and with it, around 1% of American websites. This included popular websites like Foursquare, Instagram, Pinterest and Netflix. Then, just as websites were hobbling back to life, the &#8220;leap second&#8221; bug struck. Timekeepers&hellip;","authors":[{"term_id":1485,"user_id":9,"is_guest":0,"slug":"katharina","display_name":"Katharina","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/daf61421c4a0e04662aa081500feff1499c9c1b932a9bd4f75387e2c0153f907?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/comments?post=991"}],"version-history":[{"count":0,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/991\/revisions"}],"wp:attachment":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media?parent=991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/categories?post=991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/tags?post=991"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}