- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
QREP培训
Q复制原理介绍 Q Replication Architecture Q Replication – Overview The BIG Picture Transactional Q Capture Transactional Q Capture Multi-Threaded Q Capture Multi-Threaded Q Capture Q Replication – Q Subscription Process Q Apply – Architecture Q Apply – Architecture Q Apply – Transaction life-cycle: stage 1 第一阶段 : 重建事务(rebuild the transaction)并执行相关性分析 读取所有消息,在内存中重新构建事务 非破坏性的 MQGET (采用browse方式) 针对正在处理的事务,分析可能存在的相关性(如对同一个表中同一条记录的修改) 如果没有发现相关性 - 将交易放入工作队列work queue 如果发现相关性 - 记录该交易并延缓处理 Q Apply – Transaction life-cycle: stage 2 Stage 2: apply the transaction An agent gets and removes the transaction from the work queue Rebuild and execute SQL to recreate the transaction changes Inserts the message id (msgid) of all the messages constituting this transaction in the DONEMSG table Commits the database Inserts the transaction into the done queue Q Apply – Transaction life-cycle: stage 3 Stage 3: discard the transaction and clear dependencies The browser thread gets the transaction back from the done queue Checks for dependent transactions not having dependencies on other transactions If any, schedule those transactions for execution by inserting them into the work queue Free memory used by this transaction Q Apply Performance A Q Apply program will start one Apply browser for each receive queue defined Each Apply browser will read from its receive queue and apply transactions in parallel Using as many agents as the user has defined Performing dependency analysis and serializing transactions as necessary to preserve data integrity Also possible to observe strict transactional order without parallelism It is the user’s choice regarding how many queues to define A high degree of parallelism can be reached using one queue All related tables should be subscribed to on the same queue (using the same replication queue map) In some ways, a receive queue is similar to the SQL Replication subscription set Sample Q-Replication Scenarios Q复制系统架构 主要消息队列 Q Replication queues- local setupQC
您可能关注的文档
最近下载
- 施工组织设计报审表施工组织设计报审表.doc VIP
- 2024-2025学年高二物理专项复习:波的干涉【五大题型】(解析版).pdf VIP
- CYX-QEHP-06人力资源控制程序E0.doc VIP
- 化学品船的洗舱和验舱指南 .pdf VIP
- 胰十二指肠切除术后胃瘫的诊治策略.pptx VIP
- 四川成都市简州新城投资集团招聘笔试题库2023.pdf VIP
- 民航管制运行风险主题探索.docx VIP
- HGT20510—2014仪表供气设计规范.pdf VIP
- 网课实验室安全与管理答案(潍坊医学院).docx VIP
- 2024年风景园林专业中级职称《法律法规及技术标准》考试题库(含答案).docx VIP
文档评论(0)