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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 如何解决数据库查询慢的问题_炖锅怎么那么慢熟

    如何解决数据库查询慢的问题_炖锅怎么那么慢熟一条慢查询会造成什么后果?年轻时,我一直觉得不就是返回数据会慢一些么,用户体验变差?其实远远不止,我经历过几次`线上事故`,有一次就是由一条SQL慢查询导致的。

    2022年10月14日
    2
  • 2012.7~11月 个人旅行季

    2012.7~11月 个人旅行季

    2021年5月11日
    129
  • 全国计算机考试一级与ata,ata(ata证书是计算机一级吗)

    全国计算机考试一级与ata,ata(ata证书是计算机一级吗)2021年6月20日发(作者:665)12月计算机一级模拟训练2016年12月计算机一级模拟训练一、单项选择题:1、一个汉字的内码长度为2字节,其每个字节的二进制位的值分别为.A.0,0B.1,1C.1,0D.0,12、运算器的主要功能是.A.进行算术运算B.实现逻辑运算C.实现加法运算D.进行算术运算或逻辑运算3、计算机能直接识别和执行的语言是.A.机器语言B.高级语言C.汇编语言D.数据库语言…

    2022年7月14日
    28
  • 黑石发展历程_从殖民地到美帝

    黑石发展历程_从殖民地到美帝黑石集团(BlackstoneGroup)是全球领先的另类资产管理和提供金融咨询服务的机构,在华尔街拥有举足轻重的地位。今天,我们分享一篇纵向整理黑石集团崛起的好文,梳理黑石帝国的发展史。黑石集团于1985年成立于纽约,专注旅游、酒店、化工、汽车、国防、消费品以及医药等领域

    2025年12月4日
    4
  • Spring的基本配置和Spring与Mybatis的整合

    Spring的基本配置和Spring与Mybatis的整合Spring:        Spring是一个开源框架,Spring是于2003年兴起的一个轻量级的Java开发框架,由RodJohnson在其著作ExpertOne-On-OneJ2EEDevelopmentandDesign中阐述的部分理念和原型衍生而来。它是为了解决企业应用开发的复杂性而创建的。框架的主要优势之一就是其分层架构,分层架构允许使用者选择使用哪…

    2022年4月29日
    40
  • eclipse创建springboot项目的三种方法[通俗易懂]

    eclipse创建springboot项目的三种方法[通俗易懂]方法一安装STS插件安装插件导向窗口完成后,在eclipse右下角将会出现安装插件的进度,等插件安装完成后重启eclipse生效 新建springboot项目 项目启动 方法二1.创建Maven项目2.选择项目类型3.选择项目4.编写项目组和名称-finish即可5.修改pom.xml文件<!–…

    2022年10月13日
    3

发表回复

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

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