Skip to Content
Web Operations
book

Web Operations

by John Allspaw, Jesse Robbins
June 2010
Intermediate to advanced
338 pages
10h 33m
English
O'Reilly Media, Inc.
Content preview from Web Operations

Chapter 5. Infrastructure As Code

Adam Jacob

YOU'RE SITTING AT HOME, WATCHING A MOVIE AND EATING POPCORN, with your feet up and the family gathered around you. The phone rings—it's your on-call system administrator.

"The datacenter has been hit by a tornado—it ripped right through our cage. What do we do?"

Once you get over the obvious answer,[1] you start running down the list:

  1. Pause the movie.

  2. Sign up for an account with a cloud computing provider, to replace the raw computing, network, and storage resources you have lost.

  3. Start uploading/downloading the off-site backups of your customer and application data to the new infrastructure.

  4. Provision enough servers to bring the company back online, assigning an appropriate role to each new server resource ("web server," "database server," "monitoring server," etc.).

  5. Change your DNS to point to your new infrastructure, with a "we got hit by a tornado" page.

  6. Restore the customer and application data.

  7. Remove the "we got hit by a tornado" page.

  8. Finish the movie.

One hour and forty-five minutes later, you've gone from business-ending natural disaster to finishing your family movie night. How did you do it? You built the original infrastructure as code: a series of interconnected services, relying on each other to bring each component of the system into the proper running state. All you had to do was apply that code to new resources and restore the application data, and you knew you would get the entire business back up and running from scratch.

This ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Back-end Performance

Back-end Performance

Bruno Skvorc, Christopher Pitt, Tonino Jankov, Reza Lavaryan, Daniel Berman
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9781449377465Errata Page