Book Image

Becoming a Rockstar SRE

By : Jeremy Proffitt, Rod Anami
Book Image

Becoming a Rockstar SRE

By: Jeremy Proffitt, Rod Anami

Overview of this book

Site reliability engineering is all about continuous improvement, finding the balance between business and product demands while working within technological limitations to drive higher revenue. But quantifying and understanding reliability, handling resources, and meeting developer requirements can sometimes be overwhelming. With a focus on reliability from an infrastructure and coding perspective, Becoming a Rockstar SRE brings forth the site reliability engineer (SRE) persona using real-world examples. This book will acquaint you the role of an SRE, followed by the why and how of site reliability engineering. It walks you through the jobs of an SRE, from the automation of CI/CD pipelines and reducing toil to reliability best practices. You’ll learn what creates bad code and how to circumvent it with reliable design and patterns. The book also guides you through interacting and negotiating with businesses and vendors on various technical matters and exploring observability, outages, and why and how to craft an excellent runbook. Finally, you’ll learn how to elevate your site reliability engineering career, including certifications and interview tips and questions. By the end of this book, you’ll be able to identify and measure reliability, reduce downtime, troubleshoot outages, and enhance productivity to become a true rockstar SRE!
Table of Contents (27 chapters)
1
Part 1 - Understanding the Basics of Who, What, and Why
5
Part 2 - Implementing Observability for Site Reliability Engineering
10
Part 3 - Applying Architecture for Reliability
16
Part 4 - Mastering the Outage Moments
20
Part 5 - Looking into Future Trends and Preparing for SRE Interviews

Mixing good and bad – tricks to wrapping bad code and making it resilient

As a rockstar SRE, I’ll be the first to admit, I’ve put my fair share of duct tape in place to hold production systems up. You may think the job of SRE means we build out perfection, only do what is absolutely right or put together solutions that fix the root cause of issues – but you would be wrong. Our job, first and foremost, is to reduce revenue impact and protect the customer experience.

Alerting that fires actions

One of the simplest ways to provide corrective action is to build alerts that find the issue – then call scripts or actions to remediate it. The best example of this is actually built into most container base orchestrations, including Kubernetes. The infamous liveliness check Kubernetes makes to a container simply kills the container and spins up a new one when it fails. In short, if it doesn’t respond when you poke it with a stick, it’s dead...