<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
        當前位置: 首頁 - 科技 - 知識百科 - 正文

        MySQLCircularReplication_MySQL

        來源:懂視網 責編:小采 時間:2020-11-09 19:59:59
        文檔

        MySQLCircularReplication_MySQL

        MySQLCircularReplication_MySQL: I spoke about master – slave replication in my previous blog post and how to set up one way replication. The problem with one way replication is that any changes that are made to
        推薦度:
        導讀MySQLCircularReplication_MySQL: I spoke about master – slave replication in my previous blog post and how to set up one way replication. The problem with one way replication is that any changes that are made to
        mysql-logo I spoke about master – slave replication in my previous blog post and how to set up one way replication. The problem with one way replication is that any changes that are made to the slave would not be replicated to the master and would likely end up causing inconsistencies in future queries. This means that you can only apply updates on your master server.

        If only two servers are involved then we can set up each server as both a master and a slave. This allows for two way replication – if changes are made on server 1 they are replicated on server 2, and vice versa. If more than two servers are needed for replication then it can get a little more complicated. Using the circular replication method we set up each server as a master, and as a slave to another master until all the masters have slaves. This results in a circular flow of information as each change is replicated to the next server in the chain. The below diagram indicates how replication changes would travel.

        mysql-circular-replication

        In the above illustration there are 8 MySQL Server nodes that all replicate changes they are sent directly and changes from the MySQL Server node before it are processed and sent to the next MySQL Server node along. A change made on any one of the MySQL Server nodes would be replicated to the next server along until every server in the chain has processed the update.

        There are some drawbacks to to this type of configuration:

      1. When many nodes are added it can take a long time for a change to one server to make it round the chain to update all other servers. For example, if a change is made on Server 2, it has to go to Server 3, then server 4, 5, 6 and 7 before Server 8 is notified of the change.
      2. Conflicts can occur in MySQL Server circular replication. The way MySQL processes replication updates and direct SQL statements from clients is in parallel. MySQL does not guarantee consistency across all the databases in the chain. This is because a replication request may act on a column at the same time as a direct request from a client. Due to the time it takes to receive a replication update and process it, a direct request from a client could have updated the same row, even though, as far as the overall sequence of events is concerned, the initial event that triggered the replication from another server could have happened first.
      3. Conflicts will have to be considered and affect the way a group of MySQL Servers set up in this way can be used. For example, you may choose to only update each table on one node at a time – Server 1 for the sales table, Server 2 for the payments table and so on. This will have to be built into your process for writing to these MySQL tables.

        Setting up MySQL Server circular replication is straightforward – it’s essentially setting up master-slave replication multiple times for how many nodes have.

        I’m not going to write out all of the commands for setting up circular replication because all the steps are written down in my blog post about master slave replication . Follow these steps to set up Server 1 as your master and then Server 2 as your slave. Then repeat the steps with Server 2 as your master and Server 3 as your slave. Continue doing this until you make your last server a master and then Server 1 as a slave to complete the circle.

        And that’s all there is to it! Just remember to make sure you plan your workloads to protect your data from inconsistency issues.

        Share and Enjoy

        聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        MySQLCircularReplication_MySQL

        MySQLCircularReplication_MySQL: I spoke about master – slave replication in my previous blog post and how to set up one way replication. The problem with one way replication is that any changes that are made to
        推薦度:
        標簽: my mysql replication
        • 熱門焦點

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: 亚洲国产成人无码AV在线影院| 91亚洲一区二区在线观看不卡| 亚洲日韩精品无码专区| 亚洲一区二区三区免费观看| 久久亚洲中文字幕精品有坂深雪| 在线播放免费人成毛片乱码| 亚洲精品~无码抽插| 日韩av无码免费播放| 久久久久久a亚洲欧洲aⅴ| 最近中文字幕大全免费版在线| 亚洲欧洲自拍拍偷午夜色无码| 色www永久免费| 久久亚洲AV成人无码软件| 69xx免费观看视频| 亚洲最大中文字幕无码网站 | a毛片在线看片免费| 国产精品亚洲片在线| 91青青国产在线观看免费| 亚洲视频一区网站| 成人免费视频一区| 女人裸身j部免费视频无遮挡| 国产AⅤ无码专区亚洲AV| 久久午夜羞羞影院免费观看| 亚洲成a人片在线不卡| 免费观看亚洲人成网站| 美女无遮挡拍拍拍免费视频| 亚洲视频在线不卡| 日韩免费福利视频| 中文无码成人免费视频在线观看| 亚洲美女一区二区三区| 永久黄网站色视频免费直播| 国产在线观看xxxx免费| 亚洲黄色三级视频| 国产精品成人免费综合| 久久久久久久99精品免费观看 | 免费黄色app网站| 两个人看www免费视频| 亚洲视频小说图片| 亚洲国产精品成人久久蜜臀| 久久国产精品免费专区| 亚洲AV综合色区无码一二三区|