eXtremeDB HA synchronization procedure

eXtremeDB HA synchronization procedureeXtremeDBHAsynchronizationprocedure

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺

Here is the description of synchronization procedure:

1.      
Masterand replica databases have a ha_sequencer – 64bit integer which is initializedby zero at startup.

2.      Masterincrements the sequencer at each commit of a WRITE transaction and sends thesequencer value along with transaction data to the replica(s)

3.      Ifthe replica successfully applies the received transaction, it sets itssequencer to the received value. So after the transaction was committed, thevalues of the ha_sequencer are the same on the master and replica.

4.      Whenthe replica connects to the master, it sends the value of ha_sequencer. Mastercompare its own value with received one. If values are equal, this means thatthe master and replica have the same database version and no synchronization isrequired – replica reports MCO_REPL_NOTIFY_DB_EQUAL notification code.

5.      Otherwise(if master’s and replica’s sequencer values are different), the masterinitiates the synchronization procedure depending on the mode_flags – static,hot-sync or stateful initialization.

 

So, the DB_EQUAL code means that the values ofha_sequencers on the master and replica are equal. If the replica’s database isin-memory and newly created, the replica’s sequencer is 0. This means that themaster’s sequencer is also 0. But this is possible only if the master didn’tperform write transactions since creation of the database.

 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/184407.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 【iOS7一些总结】9、与列表显示(在):列表显示UITableView

    【iOS7一些总结】9、与列表显示(在):列表显示UITableView

    2022年1月11日
    34
  • 【详细教程·本人亲测】解决win10家庭版系统C:\Users用户名中有中文,更改为英文的问题

    【详细教程·本人亲测】解决win10家庭版系统C:\Users用户名中有中文,更改为英文的问题【本人亲测】解决win10家庭版系统C:\Users用户名更改的问题【前言】新电脑刚买来,自带win10系统,激活时注册用户名和密码,为了方便记忆把用户名设为中文。随着后来学习和工作软件越装越多,在学习软件开发才发现Users必须为英文,此时重装系统成本极大!因此本人花了大量时间在网上寻找解决方案。但是基本上不适合win10家庭版。终于最后搜到一个方案解决,深知不易,特分享给各位。<第一…

    2022年5月30日
    44
  • Ubuntu | ubuntu下安装edge

    Ubuntu | ubuntu下安装edge本文是关于如何在Ubuntu20.04下安装Edge浏览器的方法。安装目的目前在VMware虚拟机上安装了虚拟机Ubuntu,使用时默认是火狐浏览器,而在Windows下,更多的则是使用Edge或Chrome,因此有很多的收藏和记录在原本的Edge上。于是在Ubuntu上再次安装Edge,并使用同步功能将标签等信息同步过来,这样在两个平台上使用浏览器就更方便了。安装步骤首先打开edge的官网https://www.microsoft.com/zh-cn.

    2022年7月21日
    24
  • 光棍节程序员闯关秀writeup[通俗易懂]

    光棍节程序员闯关秀writeup[通俗易懂]答题链接https://1111.segmentfault.com/第一关首先当然是右键查看源码啊点击链接进入下一关第二关还是老样子,右键查看源码这个key是要放在URL链接里敲回车的第三关根据前两关这个难度,第三关估计在请求头或者响应头里,先开burp刷新,拦截返回包拿到flag第四…

    2022年7月16日
    14
  • 数据库去重操作_数据库数据去重语句

    数据库去重操作_数据库数据去重语句$test_data=M(‘hot’);//实例化数据表$data=$test_data-&gt;Distinct(true)-&gt;field(‘descriprion’)-&gt;order(‘descriptiondesc’)-&gt;select();//利用distinct方法去重$data=$test_data-&gt;group(‘description’)-…

    2022年10月1日
    0
  • 快手用户群体分析_抖音、快手竞品分析报告

    快手用户群体分析_抖音、快手竞品分析报告一、产品初步体验介绍体验环境:RedmiNote5A体验时间:2018.7体验人:Cinnamon抖音快手抖音的logo以暗黑色为底,一个大大的亮白立体音符占据中央,强调了抖音重点在于结合音乐,给人的第一感觉就是炫酷,符合年轻人的审美。快手的logo以黄色为主,是一个立体的摄像机,体现了快手重点在于记录。应用首页抖音的底部button遵循传统的排版:刷新-附近/推荐(首页)、关注、拍摄、消息和我…

    2022年5月10日
    87

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号