午夜无码人妻aⅴ大片色欲张津瑜,国产69久久久欧美黑人A片,色妺妺视频网,久久久久国产综合AV天堂

說MGR-MGR的基本原理

狀態(tài)機(jī)復(fù)制

成都創(chuàng)新互聯(lián)公司是一家專業(yè)從事網(wǎng)站建設(shè)、網(wǎng)絡(luò)營(yíng)銷、微信平臺(tái)小程序開發(fā)、網(wǎng)站運(yùn)營(yíng)為一體的建站企業(yè);在網(wǎng)站建設(shè)告別千篇一律,告別似曾相識(shí),這一次我們重新定義網(wǎng)站建設(shè),讓您的網(wǎng)站別具一格。成都響應(yīng)式網(wǎng)站建設(shè)公司,實(shí)現(xiàn)全網(wǎng)營(yíng)銷!一站適應(yīng)多終端,一樣的建站,不一樣的體驗(yàn)!

MGR本質(zhì)上一個(gè)狀態(tài)機(jī)復(fù)制的集群。在狀態(tài)機(jī)復(fù)制的架構(gòu)中,數(shù)據(jù)庫被當(dāng)做一個(gè)狀態(tài)機(jī)。每一次寫操作都會(huì)導(dǎo)致數(shù)據(jù)庫的狀態(tài)變化。為了創(chuàng)建一個(gè)高可用的數(shù)據(jù)庫集群,有一個(gè)組件,即事務(wù)分發(fā)器,將這些操作按照同樣的順序發(fā)送到多個(gè)初始狀態(tài)一致的數(shù)據(jù)庫上,讓這些數(shù)據(jù)庫執(zhí)行同樣的操作。因?yàn)槌跏紶顟B(tài)相同,每次執(zhí)行的操作也相同,所以每次狀態(tài)變化后各個(gè)數(shù)據(jù)庫上的數(shù)據(jù)保持一致。

分布式的狀態(tài)機(jī)復(fù)制

事務(wù)分發(fā)器是一個(gè)單點(diǎn),為了避免單點(diǎn)故障,可以采用分布式的狀態(tài)機(jī)復(fù)制。在分布式的狀態(tài)機(jī)復(fù)制中,有多個(gè)事務(wù)分發(fā)器,它們彼此互相通信。事務(wù)分發(fā)器可以同時(shí)接收事務(wù)請(qǐng)求,就像單個(gè)事務(wù)分發(fā)器同時(shí)接收事務(wù)請(qǐng)求一樣。從應(yīng)用層來說,并發(fā)的事務(wù)發(fā)到同一個(gè)事務(wù)分發(fā)器和發(fā)到不同的事務(wù)分發(fā)器上效果是一樣的。事務(wù)分發(fā)器之間會(huì)互相通信,把所有的事務(wù)匯總、排序。最終,每個(gè)事務(wù)分發(fā)器上都有一份完整的排好序的事務(wù)請(qǐng)求。每個(gè)事務(wù)分發(fā)器只連接到一個(gè)數(shù)據(jù)庫上,并負(fù)責(zé)把事務(wù)請(qǐng)求依次發(fā)送到相連的數(shù)據(jù)庫上去執(zhí)行,其就是一個(gè)分布式狀態(tài)機(jī)復(fù)制的模型了。

分布式的高可用數(shù)據(jù)庫

將分布式的事務(wù)分發(fā)模塊集成到數(shù)據(jù)庫系統(tǒng)中,就變成了一個(gè)分布式的高可用數(shù)據(jù)庫系統(tǒng)。用戶通過數(shù)據(jù)庫的用戶接口執(zhí)行事務(wù)。數(shù)據(jù)庫收到事務(wù)請(qǐng)求后,首先交由事務(wù)分發(fā)模塊處理。事務(wù)分發(fā)模塊將事務(wù)匯總排序,然后依次交由數(shù)據(jù)處理模塊去執(zhí)行這些事務(wù)。如果去掉內(nèi)部的細(xì)節(jié),就會(huì)發(fā)現(xiàn)這是一個(gè)非常簡(jiǎn)潔的數(shù)據(jù)庫集群方案。MGR就是這樣一個(gè)分布式的高可用MySQL系統(tǒng)。

品味來自官檔的一段話~

The most common way to create a fault-tolerant system is to resort to making components redundant, in other words the component can be removed and the system should continue to operate as expected. This creates a set of challenges that raise complexity of such systems to a whole different level. Specifically, replicated databases have to deal with the fact that they require maintenance and administration of several servers instead of just one. Moreover, as servers are cooperating together to create the group several other classic distributed systems problems have to be dealt with, such as network partitioning or split brain scenarios.

Therefore, the ultimate challenge is to fuse the logic of the database and data replication with the logic of having several servers coordinated in a consistent and simple way. In other words, to have multiple servers agreeing on the state of the system and the data on each and every change that the system goes through. This can be summarized as having servers reaching agreement on each database state transition, so that they all progress as one single database or alternatively that they eventually converge to the same state. Meaning that they need to operate as a (distributed) state machine.

MySQL Group Replication provides distributed state machine replication with strong coordination between servers. Servers coordinate themselves automatically when they are part of the same group.

本文題目:說MGR-MGR的基本原理
鏈接URL:http://www.ekvhdxd.cn/article44/gcophe.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供微信公眾號(hào)網(wǎng)站建設(shè)、做網(wǎng)站、域名注冊(cè)手機(jī)網(wǎng)站建設(shè)、Google

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

手機(jī)網(wǎng)站建設(shè)