Share E-Book

DevOps For Dummies® (Emily Freeman)(Z-Library)

Author

Rating 3.5 AI initial rating

Log in to rate

DevOps
Language Other

No Description

Format PDF
Size 4.9 MB
(First 20 pages)

Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Page 1
(This page has no text content)
Page 2
DevOps by Emily Freeman foreword by Nicole Forsgren
Page 3
DevOps For Dummies® Published by: John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030-5774, www.wiley.com Copyright © 2019 by John Wiley & Sons, Inc., Hoboken, New Jersey Media and software compilation copyright © 2017 by John Wiley & Sons, Inc. All rights reserved. Published simultaneously in Canada No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without the prior written permission of the Publisher. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions. Trademarks: Wiley, For Dummies, the Dummies Man logo, Dummies.com, Making Everything Easier, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and may not be used without written permission. All other trademarks are the property of their respective owners. John Wiley & Sons, Inc. is not associated with any product or vendor mentioned in this book. LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE.  NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES OR PROMOTIONAL MATERIALS. THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR EVERY SITUATION. THIS WORK IS SOLD WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR OTHER PROFESSIONAL SERVICES. IF PROFESSIONAL ASSISTANCE IS REQUIRED, THE SERVICES OF A COMPETENT PROFESSIONAL PERSON SHOULD BE SOUGHT.  NEITHER THE PUBLISHER NOR THE AUTHOR SHALL BE LIABLE FOR DAMAGES ARISING HEREFROM. THE FACT THAT AN ORGANIZATION OR WEBSITE IS REFERRED TO IN THIS WORK AS A CITATION AND/OR A POTENTIAL SOURCE OF FURTHER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES THE INFORMATION THE ORGANIZATION OR WEBSITE MAY PROVIDE OR RECOMMENDATIONS IT MAY MAKE. FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEBSITES LISTED IN THIS WORK MAY HAVE CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND WHEN IT IS READ. For general information on our other products and services, please contact our Customer Care Department within the U.S. at 877-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002. For technical support, please visit https://hub.wiley.com/community/support/dummies. Wiley publishes in a variety of print and electronic formats and by print-on-demand. Some material included with standard print versions of this book may not be included in e-books or in print-on-demand. If this book refers to media such as a CD or DVD that is not included in the version you purchased, you may download this material at http://booksupport.wiley.com. For more information about Wiley products, visit www.wiley.com. Library of Congress Control Number: 2019945514 ISBN: 978-1-119-55222-2 ISBN 978-1-119-55223-9 (ebk); ISBN 978-1-119-55224-6 (ebk) Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1
Page 4
Contents at a Glance Foreword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Part 1: Demystifying DevOps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 CHAPTER 1: Introducing DevOps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 CHAPTER 2: Designing Your Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 CHAPTER 3: Identifying Waste . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 CHAPTER 4: Persuading Colleagues to Try DevOps . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 CHAPTER 5: Measuring Your Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Part 2: Establishing a Pipeline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 CHAPTER 6: Embracing the New Development Life Cycle . . . . . . . . . . . . . . . . . . . . . . . 71 CHAPTER 7: Planning Ahead . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 CHAPTER 8: Designing Features from a DevOps Perspective . . . . . . . . . . . . . . . . . . . . 95 CHAPTER 9: Developing Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 CHAPTER 10: Automating Tests Prior to Release . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 CHAPTER 11: Deploying a Product . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 Part 3: Connecting the Circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 CHAPTER 12: Implementing Rapid Iteration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 CHAPTER 13: Creating Feedback Loops around the Customer . . . . . . . . . . . . . . . . . . 175 CHAPTER 14: DevOps Isn’t a Team (Except When It Is) . . . . . . . . . . . . . . . . . . . . . . . . . . 189 CHAPTER 15: Empowering Engineers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 Part 4: Practicing Kaizen, the Art of Continuous Improvement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 CHAPTER 16: Embracing Failure Successfully . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219 CHAPTER 17: Preparing for Incidents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229 CHAPTER 18: Conducting Post-Incident Reviews . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251 Part 5: Tooling Your DevOps Practice . . . . . . . . . . . . . . . . . . . . . . . . 261 CHAPTER 19: Adopting New Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263 CHAPTER 20: Managing Distributed Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275 CHAPTER 21: Migrating to the Cloud . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295 DevOps
Page 5
Part 6: The Part of Tens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307 CHAPTER 22: Top Ten (Plus) Reasons That DevOps Matters . . . . . . . . . . . . . . . . . . . . . 309 CHAPTER 23: Top Ten DevOps Pitfalls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
Page 6
Table of Contents vii Table of Contents FOREWORD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 About This Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 Foolish Assumptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 Icons Used in This Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 Beyond the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 Where to Go from Here . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 PART 1: DEMYSTIFYING DEVOPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 CHAPTER 1: Introducing DevOps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 What Is DevOps? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 DevOps evolved from Agile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 DevOps focuses on people . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8 Company culture is the foundation of DevOps . . . . . . . . . . . . . . . . . . 9 You learn by observing your process and collecting data . . . . . . . . . 9 Persuasion is key to DevOps adoption . . . . . . . . . . . . . . . . . . . . . . . .10 Small, incremental changes are priceless . . . . . . . . . . . . . . . . . . . . .10 Benefitting from DevOps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 Keeping CALMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 Solving the problem of conflicting interests . . . . . . . . . . . . . . . . . . .13 CHAPTER 2: Designing Your Organization . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Assessing Your Culture’s Health . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16 Integrating DevOps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 Establishing DevOps Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 Encourage teamwork . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 Reduce silos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 Practice systems thinking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20 Embrace failure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20 Communicate, communicate, communicate . . . . . . . . . . . . . . . . . . .20 Accept feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 Automate processes (when appropriate) . . . . . . . . . . . . . . . . . . . . .21 Modeling Company Culture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22 Avoiding the worst of tech culture . . . . . . . . . . . . . . . . . . . . . . . . . . .23 Crafting your vision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 Incentivizing Your Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26 Evaluations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27 Rewards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
Page 7
viii DevOps For Dummies CHAPTER 3: Identifying Waste . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Digging into the Seven Types of Waste . . . . . . . . . . . . . . . . . . . . . . . . . .32 Unnecessary process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 Waiting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 Motion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 Costs of defects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 Overproduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 Transportation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34 Inventory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34 Understanding waste in DevOps . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34 Rooting Out Waste . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36 Discovering bottlenecks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .36 Focusing on impact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39 CHAPTER 4: Persuading Colleagues to Try DevOps . . . . . . . . . . . . . . . 43 Fearing Change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44 Persuading Those around You to Shift to DevOps . . . . . . . . . . . . . . . . .45 Earning executive support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48 Creating a groundswell in the engineering group . . . . . . . . . . . . . .49 Managing the middle managers . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50 Persuading the stubborn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50 Understanding the Adoption Curve . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51 Pushing for change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54 Responding to pushback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 Navigating the chasm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56 Asking “Why?” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56 CHAPTER 5: Measuring Your Organization . . . . . . . . . . . . . . . . . . . . . . . . . 59 Measuring Your Progress . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59 Quantifying DevOps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .61 Collecting the data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 Developing internal case studies . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 PART 2: ESTABLISHING A PIPELINE . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 CHAPTER 6: Embracing the New Development Life Cycle . . . . . . . 71 Inviting Everyone to the Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72 Changing Processes: From a Line to a Circuit . . . . . . . . . . . . . . . . . . . . .73 Shifting Ops “Left”: Thinking about Infrastructure . . . . . . . . . . . . . . . . .77 Shifting deployments left, too . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .78 Mimicking production through staging . . . . . . . . . . . . . . . . . . . . . . .78
Page 8
Table of Contents ix CHAPTER 7: Planning Ahead . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 Moving beyond the Agile Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .80 Forecasting Challenges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .81 Identifying project challenges and constraints . . . . . . . . . . . . . . . . .82 Gathering Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84 Designing an MVP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .85 Discovering the problem for your MVP to solve . . . . . . . . . . . . . . . .86 Identifying your customer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86 Scrutinizing the competition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87 Prioritizing features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87 Designing the user experience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88 Testing your hypothesis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89 To beta or not to beta? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90 Determining Your Customer by Designing a Persona . . . . . . . . . . . . . .91 What is a persona? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .91 Designing a persona . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .92 CHAPTER 8: Designing Features from a DevOps Perspective . . . 95 Constructing Your Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .96 Designing for DevOps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99 Designing software for change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99 Improving software constantly . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100 Documenting your software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101 Architecting Code for the Six Capabilities of DevOps . . . . . . . . . . . . .102 Maintainability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .103 Scalability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .103 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .105 Usability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .106 Reliability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .107 Flexibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108 Documenting Design Decisions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .108 Avoiding Architecture Pitfalls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .109 CHAPTER 9: Developing Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 Communicating about Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .111 Engineering for Error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114 Writing Maintainable Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114 Testing code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .115 Debugging code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .115 Logging code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116 Writing immutable code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117 Creating readable code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117
Page 9
x DevOps For Dummies Programming Patterns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117 Object-oriented programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117 Functional programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .118 Choosing a Language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .119 Avoiding Anti-Patterns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .119 DevOpsing Development . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .121 Writing clean code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .121 Understanding the business . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .122 Listening to others . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .122 Focusing on the right things . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .122 Getting comfortable with being uncomfortable . . . . . . . . . . . . . . .123 Establishing Good Practices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .124 Organizing your source code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .124 Writing tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .124 Documenting features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .125 Having peers review your code . . . . . . . . . . . . . . . . . . . . . . . . . . . . .126 CHAPTER 10: Automating Tests Prior to Release . . . . . . . . . . . . . . . . . . 129 Testing Isn’t Optional . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .129 Automating Your Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .130 Testing in Different Environments . . . . . . . . . . . . . . . . . . . . . . . . . . . . .131 Local environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .132 Development environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .133 Testing environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .133 Staging environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .134 Production environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .135 Going beyond the Unit Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .135 Unit tests: It’s alive! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .136 Integration tests: Do all the pieces work together? . . . . . . . . . . . .136 Regression tests: After changes, does the code behave the same? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .137 Visual tests: Does everything look the same? . . . . . . . . . . . . . . . . .137 Performance testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .137 Continuous Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .138 CHAPTER 11: Deploying a Product . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 Releasing Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .139 Integrating and Delivering Continuously . . . . . . . . . . . . . . . . . . . . . . . .140 Benefitting from CI/CD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .141 Implementing CI/CD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .141 Managing Deployments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .143 Automating the right way . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .143 Versioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .144
Page 10
Table of Contents xi Mitigating Failure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .146 Rolling back . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .146 Fixing forward . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .147 Democratizing Deployments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .147 Choosing a Deployment Style . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .148 Blue-green: Not just for lakes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .149 Schrodinger’s canary: The deploy’s not dead (or is it?) . . . . . . . . .150 Rolling the dice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .152 Toggling with feature flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .153 Monitoring Your Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .154 Understanding telemetry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .154 Recording behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .155 SLAs, SLIs, and SLOs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .156 PART 3: CONNECTING THE CIRCUIT . . . . . . . . . . . . . . . . . . . . . . . . . 159 CHAPTER 12: Implementing Rapid Iteration . . . . . . . . . . . . . . . . . . . . . . . 161 Prioritizing the Important . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .162 Important and urgent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .163 Important, not urgent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .164 Urgent, not important . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .166 Neither important nor urgent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .167 Increasing Velocity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .167 Improving Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .171 Eliminating perfection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .172 Designing small teams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .172 Tracking your work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .173 Reducing friction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .173 Humanizing alerting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .174 CHAPTER 13: Creating Feedback Loops around the Customer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175 Creating a Customer Feedback Process . . . . . . . . . . . . . . . . . . . . . . . . .176 Creating a Feedback Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .177 Receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .177 Analyze . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .178 Communicate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .179 Change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .179 Collecting Feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .180 Satisfaction surveys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .180 Case studies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .181 Dogfooding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .182 Asking for Continual Feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .184 Net promoter score (NPS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .185 Finding a rhythm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .185
Page 11
xii DevOps For Dummies CHAPTER 14: DevOps Isn’t a Team (Except When It Is) . . . . . . . . . . . 189 Forming DevOps Teams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .189 Aligning functional teams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .190 Dedicating a DevOps team . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .191 Creating cross-functional product teams . . . . . . . . . . . . . . . . . . . .192 Interviewing Quickly (But Not Too Quickly) . . . . . . . . . . . . . . . . . . . . . .194 Deciding on a Job Title . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .195 Recruiting Never Ends . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .197 Finding the right folks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .198 Passing along great candidates . . . . . . . . . . . . . . . . . . . . . . . . . . . . .199 Evaluating Technical Ability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .199 Whiteboarding revisited . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .199 Offering take-home tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .200 Reviewing code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .201 Firing Fast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .202 The jerk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .202 The martyr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .203 The underperformer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .204 CHAPTER 15: Empowering Engineers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 Scaling Engineering Teams with DevOps . . . . . . . . . . . . . . . . . . . . . . . .205 Three stages of a company . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .206 Motivating Engineers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .210 Researching motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .211 DevOpsing motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .212 Avoiding reliance on extrinsic rewards . . . . . . . . . . . . . . . . . . . . . .212 Autonomy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .213 Mastery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .213 Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .214 Making work fun . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .214 Allowing people to choose their teams . . . . . . . . . . . . . . . . . . . . . .215 Measuring Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .215 PART 4: PRACTICING KAIZEN, THE ART OF CONTINUOUS IMPROVEMENT . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 CHAPTER 16: Embracing Failure Successfully . . . . . . . . . . . . . . . . . . . . . . 219 Failing Fast in Tech . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .220 Failing safely . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .220 Containing failure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .221 Accepting human error (and keeping it blameless) . . . . . . . . . . . .222 Failing Well . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .222 Maintaining a growth mindset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .223 Creating the freedom to fail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .224
Page 12
Table of Contents xiii CHAPTER 17: Preparing for Incidents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229 Combating “Human Error” with Automation . . . . . . . . . . . . . . . . . . . . .230 Focusing on systems: Automating realistically . . . . . . . . . . . . . . . .231 Using automation tools to avoid code integration problems . . . .233 Handling deployments and infrastructure . . . . . . . . . . . . . . . . . . .234 Limiting overengineering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .235 Humanizing On-Call Rotation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .237 When on-call duties become inhumane . . . . . . . . . . . . . . . . . . . . .237 Humane on-call expectations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .238 Managing Incidents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .239 Making consistency a goal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .240 Adopting standardized processes . . . . . . . . . . . . . . . . . . . . . . . . . . .241 Establishing a realistic budget . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .242 Making it easy to respond to incidents . . . . . . . . . . . . . . . . . . . . . .243 Responding to an unplanned disruption . . . . . . . . . . . . . . . . . . . . .244 Empirically Measuring Progress . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .248 Mean time to repair (MTTR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .248 Mean time between failures (MTBF) . . . . . . . . . . . . . . . . . . . . . . . . .248 Cost per incident (CPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .249 CHAPTER 18: Conducting Post-Incident Reviews . . . . . . . . . . . . . . . . . . 251 Going beyond Root Cause Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . .252 Stepping through an Incident . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .253 Succeeding at Post-Incident Reviews . . . . . . . . . . . . . . . . . . . . . . . . . . .254 Scheduling it immediately . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .254 Including everyone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .255 Keeping it blameless . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .255 Reviewing the timeline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .255 Asking tough questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .256 Acknowledging hindsight bias . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .258 Taking notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .258 Making a plan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .259 PART 5: TOOLING YOUR DEVOPS PRACTICE . . . . . . . . . . . . . . . 261 CHAPTER 19: Adopting New Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263 Integrating with Open Source Software . . . . . . . . . . . . . . . . . . . . . . . . .264 Opening community innovation . . . . . . . . . . . . . . . . . . . . . . . . . . . .264 Licensing open source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .265 Deciding on open source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .266 Transitioning to New Languages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .268 Compiling and interpreting languages . . . . . . . . . . . . . . . . . . . . . . .268 Parallelizing and multithreading . . . . . . . . . . . . . . . . . . . . . . . . . . . .269
Page 13
xiv DevOps For Dummies Programming functionally . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .270 Managing memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .272 Choosing languages wisely . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .272 CHAPTER 20: Managing Distributed Systems . . . . . . . . . . . . . . . . . . . . . . 275 Working with Monoliths and Microservices . . . . . . . . . . . . . . . . . . . . .276 Choosing a monolithic architecture first . . . . . . . . . . . . . . . . . . . . .277 Evolving to microservices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .278 Designing Great APIs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .280 What’s in an API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .280 Focusing on consistent design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .281 Containers: Much More than Virtual Machines . . . . . . . . . . . . . . . . . .284 Understanding containers and images . . . . . . . . . . . . . . . . . . . . . .285 Deploying microservices to containers . . . . . . . . . . . . . . . . . . . . . .285 Comparing orchestrators: Harmonize the hive . . . . . . . . . . . . . . .287 Configuring containers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .289 Monitoring containers: Keeping them alive until you kill them . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .290 Securing containers: These boxes need a lock . . . . . . . . . . . . . . . .292 CHAPTER 21: Migrating to the Cloud . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295 Automating DevOps in the Cloud . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .295 Taking your DevOps culture to the cloud . . . . . . . . . . . . . . . . . . . .296 Learning through adoption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .296 Benefitting from cloud services . . . . . . . . . . . . . . . . . . . . . . . . . . . . .297 Cumulus, Cirrus, and Steel: Types of Clouds . . . . . . . . . . . . . . . . . . . . .298 Public cloud . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .298 Private cloud . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .299 Hybrid cloud . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .299 Cloud as a Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .300 Infrastructure as a Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .300 Platform as a Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .301 Software as a Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .301 Choosing the Best Cloud Service Provider . . . . . . . . . . . . . . . . . . . . . . .302 Amazon Web Services (AWS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .303 Microsoft Azure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .303 Google Cloud Platform (GCP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .303 Finding Tools and Services in the Cloud . . . . . . . . . . . . . . . . . . . . . . . . .304 PART 6: THE PART OF TENS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307 CHAPTER 22: Top Ten (Plus) Reasons That DevOps Matters . . . . . 309 Accepting Constant Change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .309 Embracing the Cloud . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .310 Hiring the Best . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .310
Page 14
Table of Contents xv Staying Competitive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .311 Solving Human Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .311 Challenging Employees . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .312 Bridging Gaps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .312 Failing Well . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .313 Continuously Improving . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .313 Automating Toil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .314 Accelerating Delivery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .314 CHAPTER 23: Top Ten DevOps Pitfalls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315 Deprioritizing Culture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .315 Leaving Others Behind . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .316 Forgetting to Align Incentives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .317 Keeping Quiet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .317 Forgetting to Measure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .318 Micromanaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .318 Changing Too Much, Too Fast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .319 Choosing Tools Poorly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .320 Fearing Failure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .320 Being Too Rigid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .321 INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
Page 15
Foreword xvii Foreword W hat is DevOps? This question is one of the most common questions I get in my work — and I hear it from experts and novices alike. I’ve worked in technology for almost two decades and have been a DevOps researcher, strategist, and expert who has guided hundreds of technology leaders and engineers to make their software better, allowing them to deliver value to their customers faster and safer. Yet, many of us in this field still hear this question. Unfortunately, a single, universally accepted definition of DevOps doesn’t exist — much to everyone’s chagrin. But if we’re honest, it probably doesn’t matter; after all, having one clear definition codified in the Agile Manifesto didn’t help the Agile community much, either. With DevOps For Dummies, Emily Freeman has written a book about DevOps that you can read from cover to cover as a book, or use as a reference, or jump around in for a choose-your-own adventure exploration through DevOps concepts. It’s a brilliant way to structure the content because DevOps covers some development, some operations, and a whole lot of culture — plus a whole lot more. In this book, Emily has done a great job of digging into important concepts for teams imple- menting this new way of work, whether you’re greenfield or brownfield or have no idea of what the words greenfield or brownfield mean. Emily brings clear eyes and a fresh voice to the topic, crafting insightful narra- tives and breaking down concepts into clear writing. By coming into technology mid-career, she brings an understanding and comprehension that others who were “born” into the tech sometimes take for granted. Her writing communicates these (sometimes hidden) details effortlessly, walking the reader through the landscape with ease and wit. Some of my favorite sections are those on developing code so that it’s clear and maintainable (check out Chapter  9, especially the part about peer review) and empowering teams to help you scale. I have too many favorite chapters and sec- tions to list, so I urge you to find your own favorites and not to run out of sticky notes and highlighters!
Page 16
xviii DevOps For Dummies I wish you the best of luck on your DevOps journey. Remember that where you start doesn’t matter; what matters is that you keep going and keep improving. — Nicole Forsgren, Research & Strategy at Google Cloud and co-founder and CEO of DevOps Research and Assessment (DORA)
Page 17
Introduction 1 Introduction I believe that the greatest challenges facing the tech industry aren’t technical; they’re human. Think about it: Hardware and computing are more powerful than they ever have been. Automated tools remove the drudgery of rote work. Robust frameworks and libraries build shortcuts and functionality into applica- tions for you. You can do more, faster, than ever before. The problem that organizations face now is that of the social dynamics of humans on engineering teams. Specifically, those dynamics are the natural friction that arises from misaligned incentives and poorly communicated goals; the frustration in attempting to explain a concept or approach to someone who has a different expertise than you; and the fear people feel when they think about looking stupid in front of their colleagues or being automated out of a job. DevOps addresses all these issues, and this book explains how. About This Book I’ve designed this book to be a resource that someone who has never heard of DevOps — or doesn’t know what it actually means — can walk through to gain a broad understanding of DevOps and how it fits into the software development life cycle (SDLC)  — that is, the entire process of how software is developed and released. Although SDLC has traditionally used the word development, I prefer delivery because it removes the possible elevation of developers over other disciplines. I’ve ordered the information in this book to be both approachable chronologically as well as selectively. You can read it straight through and allow each section to build on the last or you can hop around to your heart’s content. I use the following conventions throughout the book: » Web addresses and programming code appear in monofont. If you’re reading a digital version of this book on a device connected to the Internet, you can click or tap the web address to visit that website, like this: www.dummies.com.
Page 18
2 DevOps For Dummies » New terms that I define appear in italics. » This book uses they (and its derivatives) as a gender-neutral, singular pronoun throughout. Foolish Assumptions When I first started writing this book, I struggled to identify my main audience. Developers? Operations people? Executives? It was important to me to make DevOps approachable and real. Too often, people talk about DevOps only in the context of greenfield projects and companies with nearly endless resources. I wanted to pull back the shine and get to the substance of DevOps as a discipline — one that helps engineers do their job better and faster. I also wanted to ensure that I met the reader where they were and spoke to people who had never heard of DevOps as much as I spoke to the engineers who are well on their way to advanced DevOps practices. In the end, I focused on anyone who needs to deliver business priorities as much as retain engineering talent. They need realistic solutions to real-world problems. They see the benefits of automation but also need to ensure security and compliance with regulatory bodies. Regardless of whether you fit that exact profile, I hope that you can glean what you need from this book and that it may play a small part in your success as you evolve and improve your engineering practice. Icons Used in This Book The Tip icon marks tips (duh!) and shortcuts that you can use to make imple- menting DevOps practices easier. Remember icons mark the information that’s especially important to know. To siphon off the most important information in each chapter, just skim through these icons. The Technical Stuff icon marks information of a highly technical nature that you can normally skip over.
Page 19
Introduction 3 The Warning icon tells you to watch out! It marks important information that may save you headaches and unnecessary conflict. Beyond the Book This section describes where readers can find book content that exists outside the book itself. A For Dummies technical book may include the following, although only rarely does a book include all these items: » Cheat Sheet: You can find the Cheat Sheet for this book by searching its title at www.dummies.com. » Updates: If this book has any updates, you can find them on this book’s page at www.dummies.com. Where to Go from Here I’ve written this book in such a way that you can skip around if you so choose. If you’re a developer, you may find that you know most of the information in Part 2, which covers the development pipeline (though I suggest skimming it to catch a few new ideas!). If you’re an operations engineer, you may feel more confident in some of the more infrastructure-focused chapters. A DevOps transformation is no small feat, nor is it an overnight process. It will take hours of planning, honest conversations, brainstorming, reflection, and technical changes. Don’t rush through the process. Simply learning and thinking about your everyday work from a different perspective is a healthy way of waking up your mind. The journey is just as valuable as the outcome.
Page 20
1Demystifying DevOps
The above is a preview of the first 20 pages. Register to read the complete e-book.

Recommended for You

Loading recommended books...
Failed to load, please try again later

Tip the Site

Scan the WeChat Pay or Alipay code to tip. No login required.

WeChat Pay
Alipay
← Back to List