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の信頼性を支えるエンジニアリングチーム

付録Bプロダクションサービスのためのベストプラクティス

執筆:Ben Treynor Sloss

編集:Betsy Beyer

B.1 処理の適切な中止

設定入力はサニタイズして検証し、ありえないような入力に対しては以前の状態のまま動作を続け、かつ問題のある入力を受け取ったことをアラートとして発しましょう。問題のある入力は、多くの場合以下のいずれかに分類されます。

不正確なデータ
構文を検証し、可能であれば意味も検証しましょう。データが空だったり、一部分だけだったり、切り捨てられてしまっていたりしないかどうかチェックしましょう(例えば、仮に設定が以前のバージョンよりもN%以上小さければアラートを発するといったように)。
遅れたデータ
この場合、使用中のデータがタイムアウトして無効になることもあります。データが有効期限切れになる前に十分余裕を持って早めにアラートを発するようにしましょう。

許容しすぎたり単純すぎたりすることがあるかもしれませんが、設定読み込みに失敗する際には今の動作がそのままになるようにしましょう。一般的に、新しい設定が壊れているかもしれない時は、システムは元の設定のまま動作し続けて人間の確認を待つ方が安全です。

事例

2005年に、GoogleのグローバルなDNSロードバランシング及びレイテンシバランシングのシステムが、ファイルのパーミッションに問題があったために空のDNSエントリを受け取りました。システムはこの空のファイルを受け付けてしまい、Googleの全サービスで6分間NXDOMAINが返されてしまいました。これを受けて、現在そのシステムではgoogle.comの仮想IPの存在確認を含む、新しい設定に対するいくつもの健全性チェックを行うようになっており、受け取った新しいファイルが入力チェックをパスするまではそれまでのDNSエントリを返し続けます。 ...

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