Skip to Content
Google SRE工作手册
book

Google SRE工作手册

by Betsy Beyer, Niall Richard Murphy, David K. Rensin, Kent Kawahara, Stephen Thorne
September 2020
Intermediate to advanced
526 pages
8h 23m
Chinese
China Electric Power Press Ltd.
Content preview from Google SRE工作手册
370
16
也是业务走向成功不可或缺的。你可以使用
SLO
和错误预算的概念来衡量发布对可
靠性的影响,而不是倡导不做变更。你的目标应该是:在实现用户期望的可靠性目
标的同时,尽快发布软件。下一节讨论如何使用金丝雀发布流程实现这些目标。
拆分变更速率不同的组件
你的服务由许多变化速率各异的组件构成:二进制文件或代码,以及各种版本
JVM
、内
/
操作系统、库等环境因素,服务配置或功能开关,功能
/
实验配置,
以及用户配置。如果你只有一种方式部署变更,那么实际上这些组件的变更就
很难独立进行。
通过功能开关或实验框架
[
Gertrude
http://bit.ly/2H9ofW9
)、
Feature
http://
bit.ly/2LNpu0B
)和
PlanOut
http://bit.ly/2kIx3JO
]
,可以让你能把功能的启
用和二进制发布分离。如果一个二进制文件的发行版包含了多项功能,则可以
通过变更实验配置来逐一启用这些功能。这样,你既不用将所有那些变更都打
包在一起进行一次大规模变更,也不必为每个功能而进行单独的发布。更重要
的是,如果只有一些新功能无法按预期运行,那么就可以选择性的禁用掉那些
功能,直到下一个构建
/
发布周期到来的时候,才部署新的二进制文件。
你可以将功能开关
/
实验的原则应用于任何类型的服务变更,而不只是软件发布。
什么是金丝雀发布?
“金丝雀发布”这个术语参考自采矿业,指的是矿工将金丝雀带入煤矿,用它来确
定矿井下的空气是否对人类安全
(
http://bit.ly/2kIwYWw)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python数据分析(第2版)

Python数据分析(第2版)

Posts & Telecom Press, Armando Fandango
Google系统架构解密: 构建安全可靠的系统

Google系统架构解密: 构建安全可靠的系统

Heather Adkins, Betsy Beyer, Paul Blankinship, Piotr Lewandowski, Ana Oprea, Adam Stubblefield
编写整洁的Python代码(第2版)

编写整洁的Python代码(第2版)

Posts & Telecom Press, Mariano Anaya

Publisher Resources

ISBN: 9787519845858