Growing a High-Performance DevOps Culture
Tags: devops, culture
Published: 2019-12-10 15:56:24

Culture is one of those things where we all know what it is but can't explain it. Well, according to <a href="https://en.wikipedia.org/wiki/Culture">Wikipedia</a>, culture is "the social behavior and norms found in human societies." But in simple words, it's all about people: how they interact, how they behave, how they talk, and what they practice. And culture is the foundation of a successful implementation of DevOps.

<a href="https://www.linkedin.com/in/johnwillisatlanta/">John Willis</a>, an established speaker and writer on the subject of DevOps, coined the term <a href="http://itrevolution.com/devops-culture-part-1/">CAMS</a> (culture, automation, measurement, sharing) at a talk where he explained that DevOps culture is about breaking down silos. But what I find most striking about his discussion of culture, as summarized in the <a href="http://devopsdictionary.com/wiki/CAMS">DevOps Dictionary</a>, is the observation that "fostering a <strong>safe environment for innovation and productivity</strong> is a key challenge for leadership and directly opposes our tribal managerial instincts." So the starting point for your DevOps journey is good leadership. After that, it's just about how to grow your team to become a high-performing one.

A high-performing team in DevOps, according to <a href="https://puppet.com/resources/whitepaper/state-of-devops-report">recent research</a>, is one that
<ul>
 	<li>Does deployments often, meaning several times a day.</li>
 	<li>Delivers a change with a fast lead time (minutes) after it's been pushed to a shared repository.</li>
 	<li>Has a short (again, minutes) mean time to recover (MTTR).</li>
 	<li>Has a small change failure rate (described <a href="https://devops.com/metrics-devops/">here</a>).</li>
</ul>
So how do you grow a high-performance&nbsp;DevOps culture? You create a culture that will produce a team that delivers on time with confidence in a predictable manner. Here are the things that will help you get there.

<img class="aligncenter  wp-image-795" src="https://library.scalyr.com/2018/07/19175418/High-performance-gauge-with-Scalyr-colors.png" alt="" width="416" height="229">

<!--more-->
<h2>Increase Deployment Frequency</h2>
Increasing deployment frequency could be seen as a contradiction to delivering in a reliable manner. But working in small batches isn't anything new. <a href="https://en.wikipedia.org/wiki/Scrum_(software_development)">Scrum</a> and <a href="https://en.wikipedia.org/wiki/Extreme_programming">Extreme Programming</a>&nbsp;are two management systems for software development that emphasize delivering in short cycles. While deployment frequency varies from one user to the next, people who practice Scrum typically deploy biweekly. And sure, that may seem fast if you're new to agile. But there are some companies that would find it laughable to call two weeks a "short cycle."

High performers are known for doing several deployments per day. The average high-performance team does four daily deployments, and some do way more than that. Etsy does eighty, and Amazon and Netflix deploy thousands of times every day, according to <a href="https://puppet.com/resources/whitepaper/state-of-devops-report">this study</a>. That seems crazy, but doing so increases delivery throughput and lets organizations get feedback all the time. Customers or stakeholders don't have to wait for the sprint to finish. As soon as development has finished coding and verified that the change adds value (and doesn't break anything), there's no reason to keep waiting to deploy.

Working in small batches is more than a practice. It's a mindset. It requires that all members of the organization—developers, operators, businesspeople, and most importantly, leaders—think about it all the time. The result will be that you'll increase customer collaboration because they'll have something to try every day.

When you incubate an idea for too long, it becomes obsolete and useless. Deliver, and do it often.
<h2>Find Countermeasures to Increase Speed</h2>
How will you know if something's working or not if you don't measure it?

Measuring plays a big role in building a high-performance team. It's important that you identify what's stopping you from delivering on time. High performers have all sort of metrics in place to help them do that.

One very important metric is lead time. Lead time is how long it takes to implement a change in a production environment after the code has been committed in version control. Basically, it's how much time it takes to deploy and test code changes. This is important because it won't matter how fast the developer codes; a change could take weeks to be delivered.

Do you know what's causing big lead times in your workflow? You might not.<img class="size-full wp-image-796 alignright" src="https://library.scalyr.com/2018/07/19175418/Pull-Quote-How-will-you-know-if-somethings-working-or-not-if-you-dont-measure-it.png" alt="" width="318" height="255">

For example, you might be working with long-lived feature branches. Are you measuring the time it takes to merge the feature into the master branch? If you're spending too much time on this task that doesn't have much value, it's time to find a countermeasure.

According to lean training company&nbsp;<a href="http://www.velaction.com/countermeasures/">Velaction</a>, countermeasures&nbsp;are "the actions taken to reduce or eliminate the root causes of problems that are preventing you from reaching your goals." So a good countermeasure in the above example is to use trunk-base development. You'll always commit to the master branch, reducing the issue of having to spend too much time fixing merge conflicts.

After you've applied a countermeasure, you might need to apply another one somewhere else. But it will be hard to identify which if you're not measuring everything you're doing.

Having a culture of continuous learning in your organization will help you become better across the board. You won't stop improving once you've made the transition from doing deployments once a month to two weeks. You'll continue working to identify what's preventing you from doing daily deployments. And deployments are just one example. What about code coverage? Manual testing? Immutable infrastructure? The list goes on. But the idea is that you'll always have a chance to improve what remains.
<h2>Stop Pointing Fingers</h2>
There's nothing more harmful in a culture than pointing fingers when something goes wrong. No one that provoked a downtime said, "I'm bored. Let's bring the system down, just for fun." (Well, unless they're hackers.) And if colleagues make someone feel guilty after causing a downtime, will that person admit fault the next time? Not likely.

Failure is inevitable, so organizations should embrace it. It's better to find mechanisms to reduce the time it takes to recover from failure&nbsp;than to try to avoid mistakes. One way to avoid failure is to do deployments less frequently, but that stops innovation.

What you need in your organization is a <strong>blameless culture</strong>.

<img class="size-full wp-image-797 alignleft" src="https://library.scalyr.com/2018/07/19175418/Pull-quote-Let-your-people-learn-from-their-mistakes.png" alt="" width="271" height="230">This is a culture that accepts that we all make mistakes sometimes. Being able to say, "I screwed up. I'm sorry. Can someone help me fix it?" will help your organization focus on a solution rather than the problem. And if there's no stigma associated with guilt, the team can be honest about who else contributed to the problem.

&nbsp;

It's important to build trust in your team. Making mistakes shouldn't be a punishable offense. Instead, you should anticipate failure and then fail on purpose. Netflix does it all the time—they bring servers down just to test their fault-tolerant architecture.

Now, telling management that you want to intentionally cause problems doesn't sound good. But what if you did it in an environment other than production? What if it only affected certain users? These are ways that you can enable experimentation and build trust in the team.

Let your people learn from their mistakes. Find ways to prevent those things from happening again. When something bad happens, it's not about one person. Stop pointing fingers so everyone accepts responsibility for their mistakes. A healthy organization embraces failure and learns from it.
<h2>Enable Production-Like Environments</h2>
High performers have a low failure rate. Deployments don't usually fail because high-performing teams deploy in small batches, they have practices in place that reduce lead time, and most importantly, they have a way to recover quickly in case of any failure.

How is that possible?

Well, one option is to have a production-like environment. It lets everyone experiment with what it's like to work on a production server. And it lets the team practice deployments as if they were doing it in a production environment.

For example, if you're using Jenkins as your CI tool, you can make sure every developer has their own copy of Jenkins installed locally. Why? Having it running locally on their machines will let developers test their code before integrating it into the source control. The flow will be like this: do some changes, pull the latest changes from the repository, fix any conflicts, simulate the integration locally, and if it works, push the changes. By doing this, the practice of continuous integration will have the team always ready to deliver.

Work on building a culture <strong>that's always ready</strong> by practicing before going live. This includes building, packing, testing, deploying, rolling back...you name it. You'll avoid any surprises when going live, and that will reduce your failure rate, increasing the trust in the team.
<h2>Do It Again, but Better Every Time</h2>
You'll start seeing the benefits of everything I described here once you've made it a habit. After all, practice makes perfect. People might not see the value of these initiatives right away, but don't get frustrated. Just keep pushing until everyone gets it.

Fostering a safe environment for innovation and productivity should be the main goal in every DevOps implementation. Building trust in the team brings enormous benefits because members will have a feeling of ownership when doing things.

When you reward certain behaviors, you see that behavior more often. So make sure everything you reward contributes to building a high-performance culture.