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工作手册
金丝雀发布
375
远,这就表明金丝雀部署是“糟糕的”。作为对策,我们就应该暂停并回滚部署,
或者联系相关人员解决问题。如果错误率是相近的,我们就可以照常进行部署。如
16-4
的情况所示,我们的金丝雀部署显然是很糟糕的,我们应该回滚它。
错误率
每秒
HTTP 500
错误码百分比
候选发布版
线上版
时间
16
-
4
:按应用版本的 HTTP 响应代码,候选版本导致了绝大多数错误,而线上版本在稳定
状态下会产生少量错误(请注意:图表使用以
10
为底的对数刻度)
实施金丝雀
我们既然已经理解了这个相对简单的金丝雀部署的实现方式,下面让我们继续更深
一步,探究一个成功的金丝雀流程都需要哪些参数。
SLO
和错误预算的风险降至最低
2
章讨论了怎样通过
SLO
反映出服务对可用性的业务需求。这些要求也同样适用
于金丝雀实施。金丝雀流程所生产的风险非常有限,仅可能影响到一小部分错误预算,
这取决于时间跨度和金丝雀群体数量。
376
16
全局部署可能会面临快速耗尽
SLO
的风险。在上述那个简单的示例应用中,如果我
们全局部署候选版本,我们将会承担
20%
请求失败的风险。如果将金丝雀群体改为
5%
,那么这
5%
的流量会面临
20%
的出错率,这样导致的总错误率为
1%
(见图
16-
3
)。我们可以通过这种策略来节省错误预算,对预算潜在的影响与暴露给缺陷的流 ...
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