Distributed algorithm

本文深入探讨了分布式系统中的共识算法,包括两阶段提交协议、原子提交、协调者集群等概念,解释了如何通过投票机制确保事务的一致性和正确性。同时,文章还介绍了共识算法在实际应用中的重要性,如Paxos算法、Raft协议等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Atomic commit

  • two-phase commit protocol

    Coordinator Cohort
    QUERY TO COMMIT
    ——————————–>
    VOTE YES/NO prepare*/abort*
    <——————————-
    commit*/abort* COMMIT/ROLLBACK
    ——————————–>
    ACKNOWLEDGMENT commit*/abort*
    <——————————–
    end
    An * next to the record type means that the record is forced to stable storage.

  • three-phase commit protocol.
    图
    看的不是很懂。。。

Consensus
paxos algorithm.
视频资源
Distributed search
Leader election
Leader election is the process of designating a single process as the organizer of some task distributed among several computers (nodes). Before the task is begun, all network nodes are unaware which node will serve as the “leader,” or coordinator, of the task. After a leader election algorithm has been run, however, each node throughout the network recognizes a particular, unique node as the task leader.
Mutual exclusion
Non-blocking data structures
Reliable Broadcast
Reliable broadcast is a communication primitive in distributed systems. A reliable broadcast is defined by the following properties:
Validity - if a correct process sends a message, then some correct process will eventually deliver that message
Agreement - if a correct process delivers a message, then all correct processes eventually deliver that message
Integrity - every correct process delivers the same message at most once and only if that message has been sent by a process
A reliable broadcast can have sequential, causal or total ordering.
Replication
Resource allocation
Spanning tree generation
Symmetry breaking, e.g. vertex coloring

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值