Skip to Content
数据库系统内幕
book

数据库系统内幕

by Alex Petrov
May 2020
Beginner to intermediate
319 pages
7h 3m
Chinese
China Machine Press
Content preview from 数据库系统内幕
简介与概述
|
169
分来说,这个节点看起来丢三落四的。慢节点没有完全停止,而是发送结果太慢,常常
与其他节点不同步。
如果本应执行某些步骤的算法跳过了这些步骤或者执行结果不可见时,就发生了遗漏故
障。例如,消息在送往接收方的途中丢失,而发送方就像消息发送成功时那样,没有再
次发送而是继续运行,即使消息已经不可恢复地丢失了。遗漏故障也可能是由间歇性停
顿、网络过载、队列满等引起的。
8.7.3
任意故障
最难以解决的故障种类是
任意
故障或
拜占庭
故障(Byzantine fault):进程继续执行算法
步骤,但是以与违背算法的方式(例如,共识算法中的进程决定一个从未由任何参与者
提出过的值)。
此类故障可能是由于软件 bug 或运行不同版本算法的进程,在这种情况下,故障很容易
被发现和理解。如果我们无法控制所有进程,并且其中一个进程有意地误导其他进程,
则发现和理解故障会变得非常困难。
你可能在航空航天工业中听说过拜占庭式的容错:飞机和航天器的系统不会直接使
用子部件传来的值,而是会对结果进行交叉验证。另一个广泛的应用是加密货币
[GILAD17],那里没有中央权威,节点被多方控制,并且敌对的参与者有强烈的动机通
过提供错误响应来欺骗系统。
8.7.4
故障处理
我们可以通过构成进程组、在算法中引入冗余来
掩盖
故障:即使其中一个进程发生故障,
用户也不会注意到 [CHRISTIAN91]。
故障可能会带来一些性能损失:正常的执行依赖于进程可响应,而且系统必须回退到较
慢的执行路径来处理故障和纠正错误。故障往往可以通过一些方式来避免 ...
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

解密金融数据

解密金融数据

Justin Pauley

Publisher Resources

ISBN: 9787111655169