知识卡片

结构图卡 · 10382.c.2.b · 生成模型:未记录

SWIM委托探测

理解等级:中级

直接探测无回复时,观察者随机选取若干同伴,请其独立探测同一目标并转发确认。这样能区分自己的链路问题与其他人也无法到达的情况。在小范围并行收集信息,避免要求每次向全体广播。

结构图:

sequenceDiagram
participant O as 观察者
participant T as 被观察节点
participant R as 随机同伴
O->>T: 直接探测
Note over O,T: 等待期内没有回复
O->>R: 委托探测
R->>T: 间接探测
T-->>R: 回复
R-->>O: 转发确认
这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Database Internals》Chapter 9. Failure Detection(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch09.html#outsourced_heartbeats,段 37) - 结论依据:原文以 P1 请求 P3 和 P4 代查 P2 说明直接与间接可达。 - 原始内容:As shown in Figure 9-3, process P1 sends a ping message to process P2. P2 doesn’t respond to the message, so P1 proceeds by selecting multiple random members (P3 and P4). These random members try sending heartbeat messages to