Skip to Content
SRE サイトリライアビリティエンジニアリング ―Googleの信頼性を支えるエンジニアリングチーム
book

SRE サイトリライアビリティエンジニアリング ―Googleの信頼性を支えるエンジニアリングチーム

by Betsy Beyer, Chris Jones, Jennifer Petoff, Niall Richard Murphy, 澤田 武男, 関根 達夫, 細川 一茂, 矢吹 大輔, Sky株式会社 玉川 竜司
August 2017
Intermediate to advanced
590 pages
8h 40m
Japanese
O'Reilly Japan, Inc.
Content preview from SRE サイトリライアビリティエンジニアリング ―Googleの信頼性を支えるエンジニアリングチーム

17章信頼性のためのテスト

執筆:Alex Perry、Max Luebbe

編集:Diane Bates

まだ動かしたことがないのであれば、それは動かないものとみなすべきだ。

——よみ人しらず

SREの主要な役割の一つは、担当するシステムの信頼度の数値化です。SREは旧来のソフトウェアテストの手法を規模を拡大して適用することによって、これを行います†1。信頼度は過去の信頼性と将来の信頼性の両方から計測できます。前者は時系列のモニタリングシステムの挙動データを分析することで、後者は過去のシステムの挙動に関するデータから予測することで数値化できます。とはいえ以下の条件のうち少なくとも1つが満たされなければ、これらの予測は十分有用であるとは言えません。

  • 対象期間において、そのサイトに対するソフトウェアのリリースがなく、サーバー群にも変更がないこと。これはすなわちその期間、そのサイトがまったく変更されていないということで、将来の挙動が過去の挙動に近いものになるということを意味します。
  • サイトに対するすべての変更が完全に明らかになっていること。これは、それぞれの変更によって生じる不確実性を許し、その分析をするのに必要です。

テストとは、変更が生じたときにある領域における等価性を示すための仕組みです†2。変更前後の双方で同じテストが通ったら、許容しなければならない不確実性が分析によって減ったということです。徹底したテストは、対象のサイトの将来の信頼性を十分詳細に予測しやすくなるので、実際に役立ちます。

実施しなければならないテストの量はシステムに求められる信頼性によります。テストがカバーするコードベースの割合が高まるにつれて、変更によって信頼性に不安が生じたり、信頼性が低下する可能性が減ります。テストのカバレッジが十分であるということは、信頼性が許容できる範囲において、より多くの変更を加えることができることを意味します。ただしあまりに大量の変更を短期間に投入しすぎれば、予想される信頼性が許容限界に近づきます。そうなった場合には、新しいモニタリングデータが蓄積されるまで変更を止める方が良いでしょう。蓄積されたデータはテストのカバレッジを補完してくれるものであり、変更された実行パスに対して主張された信頼性を裏付けてくれます。サービスを利用するクライアントがランダムに分散しているなら ...

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

SREをはじめよう ―個人と組織による信頼性獲得への第一歩

SREをはじめよう ―個人と組織による信頼性獲得への第一歩

David N. Blank-Edelman, 山口 能迪

Publisher Resources

ISBN: 9784873117911Other