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

21章過負荷への対応

執筆:Alejandro Forero Cuervo

編集:Sarah Chavis

ロードバランシングのポリシーの目標は過負荷を避けることです。しかし、ロードバランシングのポリシーがいかに効率的であったとしても、いつかはシステムのどこかが過負荷になるときがきます。過負荷の状況をうまく扱うことは、信頼性のあるサービスを稼働させるために欠かせないことです。

過負荷を扱う方法の一つは、レスポンスの品質を下げることです。すなわち、通常のレスポンスに比べて精度が低い、あるいは含まれるデータ量が少なく、計算しやすいレスポンスを返すのです。以下はその例です。

  • 検索クエリに対し、コーパス全体を検索して最善の結果を提供する代わりに、候補の集合の小さな部分だけを検索する。
  • 本来のストレージにアクセスせず、完全に最新ではない可能性がある計算結果のローカルコピーを使うことで負荷を抑える。

とはいえ、極端な過負荷状態の下では、品質を下げたレスポンスを計算して返すことさえできないかもしれません。そうなってしまった場合、おそらく即座にとれる選択肢はエラーを返すこと以外にないでしょう。この場合の緩和策の一つは、トラフィックのバランスをデータセンター間で調整し、処理できないほどのトラフィックを受けるデータセンターがないようにすることです。例えば、あるデータセンターが100個のバックエンドタスクを実行しており、それぞれのタスクが処理できるリクエスト数が最大で毎秒500であるなら、ロードバランシングのアルゴリズムはそのデータセンターに毎秒50,000以上のクエリは送信させません。しかし次節で述べるように、この制約でさえも、大規模な環境での運用において過負荷を避けるには不十分であることが分かります。最終的に一番良いのは、リソースの制限に応じてうまく動作できるようにクライアントやバックエンドを構築することなのです。それはすなわち、可能な場合にはリダイレクトを行い、品質を下げた結果を返し、他に方法がなければリソースエラーを透過的に扱えるようにすることです。 ...

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