database_reliability_engineering.pdf

(9559 KB) Pobierz
Database
Reliability
Engineering
DESIGNING AND OPERATING
RESILIENT DATABASE SYSTEMS
Laine Campbell & Charity Majors
Database Reliability Engineering
Designing and Operating Resilient
Database Systems
Laine Campbell and Charity Majors
Beijing
Boston Farnham Sebastopol
Tokyo
Database Reliability Engineering
by Laine Campbell and Charity Majors
Copyright © 2018 Laine Campbell and Charity Majors. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://oreilly.com/safari). For more information, contact our corporate/insti‐
tutional sales department: 800-998-9938 or
corporate@oreilly.com.
Editors:
Courtney Allen and Virginia Wilson
Production Editor:
Melanie Yarbrough
Copyeditor:
Bob Russell, Octal Publishing, Inc.
Proofreader:
Matthew Burgoyne
November 2017:
First Edition
Indexer:
Ellen Troutman-Zaig
Interior Designer:
David Futato
Cover Designer:
Karen Montgomery
Illustrator:
Rebecca Demarest
Revision History for the First Edition
2017-10-26:
First Release
See
http://oreilly.com/catalog/errata.csp?isbn=9781491925942
for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.
Database Reliability Engineering,
the
cover image, and related trade dress are trademarks of O’Reilly Media, Inc.
While the publisher and the authors have used good faith efforts to ensure that the information and
instructions contained in this work are accurate, the publisher and the authors disclaim all responsibility
for errors or omissions, including without limitation responsibility for damages resulting from the use of
or reliance on this work. Use of the information and instructions contained in this work is at your own
risk. If any code samples or other technology this work contains or describes is subject to open source
licenses or the intellectual property rights of others, it is your responsibility to ensure that your use
thereof complies with such licenses and/or rights.
978-1-491-92594-2
[LSI]
Table of Contents
Foreword. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
1.
Introducing Database Reliability Engineering. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Guiding Principles of the DBRE
Protect the Data
Self-Service for Scale
Elimination of Toil
Databases Are Not Special Snowflakes
Eliminate the Barriers Between Software and Operations
Operations Core Overview
Hierarchy of Needs
Survival and Safety
Love and Belonging
Esteem
Self-actualization
Wrapping Up
Why Do I Need Service-Level Objectives?
Service-Level Indicators
Latency
Availability
Throughput
Durability
Cost or Efficiency
Defining Service Objectives
2
2
3
4
5
5
6
7
7
8
9
10
11
13
15
15
16
16
16
16
17
iii
2.
Service-Level Management. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Zgłoś jeśli naruszono regulamin