cap理论具体含义_CAP理论中的P到底是个什么意思?
"Partition Tolerance" 這個(gè)形容詞確實(shí)挺容易 confuse 的,《A Critique of the CAP Theorem》文章曾這樣批評(píng):we can interpret partition tolerance as meaning “a network partition is among the faults that are assumed to be possible in the system.”
It is misleading to say that an algorithm “provides partition tolerance,” and it is better to say that an algorithm “assumes that partitions may occur.”
至于 Network Partition 應(yīng)當(dāng)理解為 CAP 理論中討論的故障模型,這里需要注意 Network Partition 并非節(jié)點(diǎn) Crash(節(jié)點(diǎn) Crash 屬于 FLP 的故障模型),更側(cè)重于 "節(jié)點(diǎn)雙方一時(shí)聯(lián)系不上對(duì)方" 的一個(gè)狀態(tài)。
造成 Partition 的原因可能是網(wǎng)絡(luò)不可達(dá),也可能是 GC 的 Stop The World 阻塞太久,也可能是 CPU 彪到一個(gè)死循環(huán)上,總之種種血案。aphyr 曾整理過(guò)這么一批血案可以參考: aphyr/partitions-post
總結(jié)
以上是生活随笔為你收集整理的cap理论具体含义_CAP理论中的P到底是个什么意思?的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 一波三折,终于找到src漏洞挖掘的方法了
- 下一篇: MFC进度条编程