-
Notifications
You must be signed in to change notification settings - Fork 13
distri_013
WAL (logging, journaling), soft update, CoW ...
“写”是指的写内存,两者区别在于什么时候写内存
即写型: 一旦发生修改立即写
后写型: 尽可能晚地写内存
更新型: 在某一页修改时,使用某种机制使所有拥有该页的位置均作相应的修改。
无效化型: 在某一页被修改时,副本所在位置,标志该页无效
摘自[1]
This is actually Tannenbaum’s defintion of “strict consistency”; I disagree with the way he organizes things. He says that “strict consistency” is “impossible to implement in a distributed system” and that sequential consistency “is a slightly weaker model than strict consistency.” Both statements are, in my view, misleading. Strict coherence can be implemented in a distributed system by having a lock manager hand out read and write tokens to client caches and having it ensure that when a cache holds a write token on an object, no other caches hold a read or write token on that object (e.g., via invalidations.) Sequential consistency is a weaker condition than strict coherence in some sense: strict coherence relies on a global notion of time while sequential consistency allows the final “sequential order” to differ from the “real-time order” of requests. For example Amol Nayate recently built a system that enforces sequential consistency and enforces a separate maximum staleness. But in another sense, sequential consistency is stronger than strict coherence. In particular, sequential consistency also requires that all operations complete in program order even if they are to different memory locations. Thus sequential consistency constrains operations on different objects while strict coherence only constrains operations on the same object. Tannenbaum’s definition of “strict consistency” appears to differ by assuming that all operations are instantaneous and non-blocking; I think his assertions may be true under these assumptions, but I find these assumptions strange.
摘自[2]
We can divide the universe into four types of consensus algorithms:
Known participants, non-byzantine failure: Paxos, Raft
Unknown participants, limited attack modes: Chord (original) and other distributed hash tables
Known participants, byzantine failure: PBFT, UpRight, Byzantine Paxos
Unknown participants, byzantine failure: Proof of Work, Proof of Stake, S-Chord
[1] AFS and distributed file systems, www.cs.utexas.edu/users/dahlin/Classes/GradOS/lectures/afs.ps
[2] Are consensus algorithms only proof-of-work, proof-of-stake, proof-of-elapsed time etc.? Or, can we write our own consensus algorithm by our needs mostly to develop an application for a start-up? https://www.quora.com/Are-consensus-algorithms-only-proof-of-work-proof-of-stake-proof-of-elapsed-time-etc-Or-can-we-write-our-own-consensus-algorithm-by-our-needs-mostly-to-develop-an-application-for-a-start-up
本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可。
Wiki: wiki.jcix.top ~聚沙成塔~ Blog: blog.jcix.top