Skip to Content
詳説 データベース ―ストレージエンジンと分散データシステムの仕組み
book

詳説 データベース ―ストレージエンジンと分散データシステムの仕組み

by Alex Petrov, 小林 隆浩, 成田 昇司
July 2021
Beginner to intermediate
392 pages
6h 19m
Japanese
O'Reilly Japan, Inc.
Content preview from 詳説 データベース ―ストレージエンジンと分散データシステムの仕組み

12章アンチエントロピーと情報散布

本書でこれまでに議論した通信パターンの大半は、ピアツーピアか一対多、つまりコーディネータとレプリカのいずれかでした。システム全体に渡ってデータレコードを確実に伝播するには、伝播元のノードが利用可能で、他のノードと通信ができる必要があります。しかし、これらの通信パターンでは、スループットは単一のマシンに制限されます。

高速で信頼性の高い伝播は、データレコードにはあまり適用できないかもしれませんが、メンバーシップ情報(ノードの参加と離脱)、ノードの状態、障害、スキーマの変更などのクラスタ全体に渡るメタデータにとっては、より重要です。この情報が含まれるメッセージは、一般的に頻度が少なく小さいものですが、可能な限り、高速で確実に伝播される必要があります。

このような更新をクラスタ内のすべてのノードに伝播するには、一般的に以下3つのアプローチのいずれかを利用します[DEMERS87]。これらの通信パターンの概要を図に示すと、図12-1のようになります。

  • a)1つのプロセスから、その他すべてのプロセスへブロードキャストで通知します。
  • b)定期的なピアツーピアの情報交換。ピア同士は互いに接続し、メッセージを交換します。
  • c)連携ブロードキャスト。メッセージを受信したプロセスがブロードキャストする立場となり、より高速で確実な情報の拡散に貢献します。
    ブロードキャスト a)、アンチエントロピー b)、ゴシップ c)

    図12-1 ブロードキャスト a)、アンチエントロピー b)、ゴシップ c)

他のすべてのプロセスにメッセージをブロードキャストすることは、もっとも単純なアプローチであり、クラスタ内のノードの数が少ないときには十分に機能します。しかし、大規模なクラスタでは、ノードの数が多いために ...

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

行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

行動を変えるデザイン ―心理学と行動経済学をプロダクトデザインに活用する

Stephen Wendel, 武山 政直, 相島 雅樹, 反中 望, 松村 草也
プロダクトマネージャーのしごと 第2版 ―1日目から使える実践ガイド

プロダクトマネージャーのしごと 第2版 ―1日目から使える実践ガイド

Matt LeMay, 永瀬 美穂, 吉羽 龍太郎, 原田 騎郎, 高橋 一貴

Publisher Resources

ISBN: 9784873119540Other