What Is a Site Reliability Engineer? Should You Become One?
Tags: engineer, sre, coding
Published: 2019-09-24 14:20:11

<!-- wp:paragraph -->
<p>Although site reliability engineering has been around for a while, it has only recently gained fame in general software circles. But there are still a lot of questions as to what a site reliability engineer (SRE) is and does.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Much of what we know comes from the book <em>Site Reliability Engineering</em> from Google. And we'll refer to that book a few times in this post.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>SREs have been compared to operations groups, system admins, and more.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>But the comparison falls short in encompassing their role in today's modern software environment.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>SREs cover more responsibilities than operations. And though they usually have a background in system administration, they also bring software development skills to the role.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>SREs combine all these skills and ensure that complex distributed systems run smoothly.</strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>So how do they do all this?</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Read further to find out what SREs are, in practice, and how they accomplish this through the responsibilities they fulfill.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":2195,"align":"center","width":345,"height":345} -->
<div class="wp-block-image"><figure class="aligncenter is-resized"><img src="https://library.scalyr.com/2019/01/22215455/Computer_with_wrench_and_Scalyr_colors_signifying__site_reliability_engineer-300x300.png" alt="" class="wp-image-2195" width="345" height="345"/></figure></div>
<!-- /wp:image -->

<!-- wp:more -->
<!--more-->
<!-- /wp:more -->

<!-- wp:heading -->
<h2>What Is A Site Reliability Engineer?</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Let's start our post with a definition. What is a site reliability engineer?</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>For starters, the concept of<a href="https://www.scalyr.com/blog/what-is-sre/"> site reliability engineering</a> was first introduced by <a href="https://landing.google.com/sre/books/">a book</a> of same name, written by a team of engineers from Google.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Wikipedia defines site reliability engineering like this:</p>
<!-- /wp:paragraph -->

<!-- wp:quote -->
<blockquote class="wp-block-quote"><p>Site Reliability Engineering (SRE) is a discipline that incorporates aspects of software engineering and applies them to infrastructure and operations problems.</p></blockquote>
<!-- /wp:quote -->

<!-- wp:paragraph -->
<p>In a nutshell, we can say that <strong>a SRE is a professional with solid background in coding/automation, that uses that experience to solve problems in infrastructure and operations.</strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Wait a minute...doesn't that sound a little bit familiar? What is the difference between SRE and DevOps?</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>First of all, you shouldn't think of DevOps as a role.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Rather, consider it more of a cultural aspect of the team. It can’t and shouldn't be assigned to a person, but rather performed as a team.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>SRE, on the other hand, is the practice of creating and maintaining a service with high availability.</strong> The professional that assumes this role should be a software developer.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>What Does a Site Reliability Engineer Do?</h2>
<!-- /wp:heading -->

<!-- wp:heading {"level":3} -->
<h3>Automate All the Things</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>One difference between the SRE role and the traditional operations team involves automation.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>In the past, operations folks would keep things running by executing scripts, pushing buttons, and carrying out other manual endeavors. However, in the SRE world, there's a heavy emphasis on automation.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Where did this drive come from? The engineering aspect of the SRE role.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>When you put software developers in a position where the same functions repeat day in and day out, they'll be driven to automate. That's what software developers do best.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":617,"align":"center","width":402,"height":402} -->
<div class="wp-block-image"><figure class="aligncenter is-resized"><img src="https://library.scalyr.com/2018/07/19175223/iStock-542714868-1024x1024.png" alt="" class="wp-image-617" width="402" height="402"/></figure></div>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>And automation doesn't stop at automating a software build and some acceptance tests. Their automation includes CI/CD and infrastructure creation and patching, as well as monitoring, alerting, and automating responses to certain incidents.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>In Google's SRE book, this is also referred to as eliminating toil:</p>
<!-- /wp:paragraph -->

<!-- wp:quote -->
<blockquote class="wp-block-quote"><p>Toil is the kind of work tied to running a production service that tends to be manual, repetitive, automatable, tactical, devoid of enduring value, and that scales linearly as a service grows.</p><p>—<em>Site Reliability Engineering</em></p></blockquote>
<!-- /wp:quote -->

<!-- wp:paragraph -->
<p>But why do we focus so much on reducing toil?</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Not only does reducing toil make the processes repeatable and automated, but it also increases the amount of time SREs have to build tools and investigate infrastructure changes that further improve site reliability.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>In summary, the less toil there is, the more time and resources are dedicated to making sure your software ecosystem runs reliably and the faster you can deliver business value.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3>Monitor Distributed Systems</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>With the popularity of distributed systems, there's a greater need for increased monitoring.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>It's not enough that your application is up and running. We also need to ensure that infrastructure works properly and that all our other internal dependencies are accessible and functioning.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Additionally, business functions of the application should have proper monitoring to validate they're working properly.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>For this portion of the job, SREs can use a product like Scalyr to monitor and alert on any potential issues. This allows them to monitor the system in real time as well as track long-term trends that may indicate reduced reliability.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3>Provide On-Call Support</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Similar to traditional operations roles, SREs spend time rotating on-call responsibilities.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>In addition to monitoring infrastructure and their own services, they also make themselves accessible to development teams for consultation and troubleshooting.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>What does on call look like?</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Typically SREs rotate the on-call role based on a schedule that allows other SREs to focus on engineering while also not causing burnout for the on-call engineer. On-call rotations vary from a couple days in a row to a week or more.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>When a high-priority page triggers, the engineer will investigate and diagnose the issue. The SRE might also pull in additional engineers or software developers to resolve the issue.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Depending on the system's SLA, they may all need to work together to solve the issue in a matter of minutes. For low-priority issues, the SRE typically handles them during business hours.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>And that's great news for the engineers who don't like to jump out of bed at 3 a.m. for every little thing that happens.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":1705,"align":"center","width":300,"height":300} -->
<div class="wp-block-image"><figure class="aligncenter is-resized"><img src="https://library.scalyr.com/2018/08/09184011/Log4j_With_Scalyr_Colors.png" alt="Log4j" class="wp-image-1705" width="300" height="300"/><figcaption>Log4j</figcaption></figure></div>
<!-- /wp:image -->

<!-- wp:heading {"level":3} -->
<h3>Manage Incidents</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>An important part of the SRE role involves managing incidents.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Now you may say this is no different than the on-call responsibility. You find a problem and then fix it. How hard could it be?</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Well, for managing incidents, SREs need to employ additional professional skills to make sure everything goes smoothly.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>When an outage occurs, for example, there could be dozens of ways to diagnose and attempt to resolve the issue.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Therefore, to manage the incident properly, someone must monitor and facilitate the actions of all involved. And that requires clearly defined roles.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Though not all companies include these Google-recommended incident roles, we should at least consider them. These roles include the following:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>An incident commander who maintains a high-level view of everything occurring.</li><li>The engineers who execute processes or modifications to the infrastructure or systems.</li><li>A communication role for relaying the right message to customers and management.</li><li>A planning role in charge of planning any meetings, handoffs, and logistical needs.</li><li>Without clearly defined roles for our SREs, we could have SREs that step on each other's toes as they try different solutions without up-front coordination and communication.</li></ul>
<!-- /wp:list -->

<!-- wp:heading {"level":3} -->
<h3>Facilitate Postmortems</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Now that we've lived through an incident and resolved it in the sections above, we're ready for the postmortem.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Typically, an SRE facilitates or participates in these postmortems.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>A postmortem brings together all relevant parties for analysis of the incident. The goal is to analyze what occurred during the incident and find the root cause. The participants also determine how the incident can be prevented or fixed in the future.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Some of the items that come out of a postmortem are listed below:</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>Stories to improve reliability or monitoring.</li><li>Additional documentation to assist with future incidents.</li><li>Further investigations or testing to prove out any hypothesis related to the incident.</li></ul>
<!-- /wp:list -->

<!-- wp:heading {"level":3} -->
<h3>Track Outages</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Another responsibility of the SRE requires tracking outages. This eventually helps in identifying long-term trends and assists with creating reasonable SLOs and SLAs.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>One use of tracking includes monitoring low-priority incidents. These incidents may not cause real issues for consumers, but looking at the long-term trends and timing can help isolate and resolve pesky bugs that don't seem to have a root cause.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3>Work With SRE and Development Teams</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>In addition to supporting development teams during on call, SREs also provide consulting and troubleshooting.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>This assists both other SRE teams and software development teams that struggle with operational or reliability issues.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":5240} -->
<figure class="wp-block-image"><img src="https://library.scalyr.com/2019/08/30154258/Will-drive-changes.png" alt="" class="wp-image-5240"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>In this scenario, the SRE will assess current issues and determine which can be improved with automation or engineering effort. The SRE may also suggest solutions to reliability problems.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>And perhaps most importantly, the SRE will drive changes to team processes. These changes will ensure that site reliability engineering enhances the team's ability to deliver value.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3>Create Service Level Indicators and Objectives</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>When you hear that a service has attained or is striving toward an uptime of 99.99 percent, you're talking about service level objectives (SLO). Service level indicators (SLI) measure these objectives.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>In other words, the SLI is an agreement on how the SLO will be measured.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>SREs assist with these by providing data for historical service performance. They also help provide realistic objectives for the future and might advise on proper SLAs for customers.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>The SRE then works to make sure your application meets, though does not exceed, the stated SLO.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Now you may think that it's odd to not work to exceed an SLO. However, it would be a waste of resources to make something more reliable than it needs to be.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>And SREs balance the needs of the customer with the goals of the services provided.</p>
<!-- /wp:paragraph -->

<!-- wp:heading {"level":3} -->
<h3>Responsibilities May Vary</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>In this post, we've discussed various activities that site reliability engineers participate in. Although these activities are done by many SREs, they aren't set in stone.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":749,"align":"center","width":350,"height":350} -->
<div class="wp-block-image"><figure class="aligncenter is-resized"><img src="https://library.scalyr.com/2018/07/19175348/HTTP-Monitor-What-Is-It-and-Why-Do-You-Need-It.png" alt="" class="wp-image-749" width="350" height="350"/></figure></div>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Companies do vary their SRE roles and responsibilities based on need. In general, companies that are at different points in the SRE journey may have different needs.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>For example, a newer company may need SRE support in getting general outages under control. And most energy goes toward that base level of reliability.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>However, other companies that are further along in the journey may have eliminated company-wide outages. They may spend more time on improving or validating service metrics that are business related.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>For example, your pizza shop application may need new monitoring on its pizza recommendations once the site's general availability is stable and reliable.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Should You Become a SRE?</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>You should consider becoming a SRE if you have a solid foundation in automation.</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>Are you are a systems engineer who wants to improve your coding skills?</li><li>Are you are a developer who wants to learn how to manage large-scale systems?</li></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>If the answer for any of the questions above was "Yes," then this role is for you.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>There is no better way to stay in touch with the most recent developments in the DevOps world. You'd also be able to increase your knowledge and skills in areas that are currently in high-demand.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Conclusion</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>As we discussed, SREs spend time on both technical and process-oriented responsibilities.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>They do more than an operation or system administration team. They employ their engineering skills to automate and reduce the manual intervention necessary for administration tasks.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Additionally, they work with other engineering teams to provide proper monitoring, incident response, and management.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Over time, these functions improve the reliability and maintenance costs of your distributed systems.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>And finally, they spread the culture of site reliability engineering through your organization so that all teams learn to make decisions with reliability in mind.</p>
<!-- /wp:paragraph -->