The leap second added on Saturday afternoon left some Linux servers stuck at full load until someone reset the clock or restarted them. Most small business sites were fine. Know who watches yours on weekends.

A long weekend that started oddly

Late on Saturday afternoon, as the Canada Day long weekend got under way, some servers around the world began running their processors flat out for no visible reason. A few well-known websites went offline for a while.

Most small business websites carried on as usual, and many owners are only hearing about it today, back at work after the holiday.

The cause was a single extra second added to the world's clocks. It is worth understanding, mainly for what it shows about who would notice if your own server stopped answering on a holiday.

What a leap second is

Official time is kept by atomic clocks, which are extremely steady. The earth's spin is not quite as steady, and over the years it falls slightly behind them.

To keep clock time in step with the sun, an international timekeeping body occasionally adds one second at the very end of June or December.

This one was announced in January, and it was the first since the end of 2008.

The extra second came at midnight by the world's reference clock, which in BC fell late on Saturday afternoon. Clocks that follow the rule counted that minute as 61 seconds long.

Why some servers stumbled

Servers keep their clocks right by checking with time servers over the internet, and those passed on notice of the extra second in advance. Most systems handled it without fuss.

On some Linux servers, a fault in how the system dealt with the repeated second left certain programs waking up over and over instead of resting. The processor ran at full speed doing nothing useful.

Database servers and programs written in Java were among those caught, and some servers froze outright. Resetting the clock or restarting the server cleared the problem, once someone knew to do it.

What it looked like

On an affected server, the symptoms appeared without any change in visitors or any update to the site:

In large data centres, so many machines working flat out at the same moment drew more power and ran hotter than usual.

Why most small business sites were fine

The fault needed a particular combination: certain versions of Linux, running certain programs, at the moment the second was added. Many servers did not have it.

Most small business sites live on shared hosting, where the host's staff look after the servers. Where those servers were affected, staff on duty reset the clocks or restarted them, often before customers noticed.

Servers running other systems were not touched at all, and sites that serve plain pages without a database had far less to go wrong.

The question it raises

The useful lesson is not about leap seconds. It is about what happens when a server stops working properly late on a holiday Saturday.

On shared hosting, the host notices and acts.

On a virtual or dedicated server the business manages itself, often set up by a developer who has since moved on, the first alert may be a customer phoning about a broken order form.

A worked example

An ice supplier in Parksville delivers bagged and block ice to campgrounds, stores, caterers and summer events. Its website takes orders for delivery and shows the week's routes.

The ordering system runs on a virtual server that a former developer set up, with no one assigned to watch it. The Canada Day weekend is the busiest of the year.

On Saturday evening the confirmation emails for new orders stopped. A campground manager phoned the after-hours number to ask whether her order had arrived, and the order page would not load.

The server's processor was running at full load with almost no visitors. The hosting company restarted it on request, and the orders placed overnight were confirmed by phone the next morning.

This week the supplier is moving the system to a managed plan, so the host applies updates and watches the server around the clock, holidays included.

Since Monday, an outside check has tested the order page every few minutes, ready to text two people if it stops answering. A frozen server would reach a person within minutes, not through a customer's call.

Monitoring that someone reads

An outside check visits the site every few minutes from elsewhere on the internet and raises an alert when a page fails to load. It catches frozen servers, expired domains and broken databases alike.

Point it at a page that uses the database, such as the order form or a product page, not just the home page. A server can still deliver a plain page while everything behind it is stuck.

Send alerts to more than one person, by text as well as email, and test them. An alert that goes to a former employee's inbox is the same as no alert.

The counter-case

For a brochure site on shared hosting, a few hours offline on a holiday Saturday may cost very little. The host was already watching, and most visitors who found it slow could try again later.

Such a site does not need elaborate monitoring. A basic outside check and a clear answer about the host's weekend cover are enough.

Any site that takes orders, bookings or payments is different. For those, knowing who watches the server, and how quickly they act, is part of running the business.

After the extra second

  1. Find out what your site runs on: shared hosting or a server of its own.
  2. Ask the host whether your server was affected this weekend.
  3. Confirm who applies updates to the server's system.
  4. Ask who watches on weekends and holidays.
  5. Set up an outside check on a page that uses the database.
  6. Send alerts to two people, by text and email.
  7. Test the alert with whoever manages the site.

Step four is the answer this weekend was really asking for. A server that freezes on a Saturday evening is a small problem when someone is watching, and a long one when the first sign is a customer's call.

Another question to put to the host while you are talking, prompted by last month's switch to the new internet addressing system, comes from World IPv6 Launch Day and your website.


Frequently asked questions

What is a leap second?

An extra second added now and then to official time, at the end of June or December, to keep clocks in step with the earth's slightly irregular spin.

What went wrong on some servers?

A fault in how some Linux systems handled the repeated second left certain programs waking constantly instead of waiting, so the processor ran at full speed doing nothing useful.

Was my website affected?

Probably not, if it is on shared hosting, since the host's staff dealt with affected servers. If you run your own server, ask whoever manages it to check.

How was the problem fixed?

Resetting the server clock or restarting the server cleared it. Whoever manages the server should also apply the system updates that address the underlying fault.

What is an outside check?

A service that visits your site every few minutes from elsewhere on the internet and alerts you by text or email when a page stops loading.

Do small brochure sites need monitoring?

A basic outside check is worthwhile, but elaborate monitoring is not. Sites that take orders, bookings or payments need someone watching the server, weekends and holidays included.

West Coast Media Solutions Inc. provides web design, web development, hosting, digital marketing, and business consulting to organisations across Canada, drawing on more than twenty-five years in the field.

Not sure who watches your server?

Call us with your host's name and plan, and we will find out who watches your server and set up a check.

Start a Conversation