网站大量收购独家精品文档,联系QQ:2885784924

MySQL高可用架构答案.pptx

  1. 1、本文档共30页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
2016 MySQL 高可用架构 邵汉成 技术中心 CONTENTS 目录 实现目标 高可用 响应快 可伸缩 易监控 百万订单/天 5百亿元/年 冗余与备份 冗余:当一个或几个Node出现问题时,系统可以正常运行 备份:使用备份可以将Node恢复到Crash之前的状态 快速响应 快速响应用户请求,用户体验好 可随时、按需Scale out Scaling out reads Scaling out writes 监控系统的运行 Understand the load on our system Keep a keen eye on any problems 大容量 驴妈妈系统业务容量目标 订单量 100万单每天 销售量 500亿元每年 CONTENTS 目录 高可用 提供冗余与备份 冗余:提供多台master和slave,防止单点故障或几个node故障 备份:Crash之后可以迅速恢复 冗余 故障发生时的恢复计划 Slave Failures Master Failures Disaster Recovery 计划 详细的执行方法 基本的准备工作:增加新Slaves,移除Slaves,切换Master Master Hot Standby Dual Masters Slave Promotion Circular Replication 方法 99.999% 高可用 Master Hot Standby 结构 高可用 Dual Masters 结构 Active – Active: 两个Master同时接受写入,并将更新数据同步到另一个master。 常见用途:根据用户所在区域,用户访问就近的master Active – Passive: 写操作写入active master,同时passive master只保持与active master 同步 高可用 Circular Replication 结构 All subscriber data is replicated to all sites, and updates of data are allowed in all data centers. Slave Promotion 高可用 traditional method of slave promotion revised method for promoting a slave CONTENTS 目录 Replication与BinLog机制 Replication基本介绍 Replication与BinLog机制 Binary Log 基本介绍 基于Statement的复制 基于Row的复制 Replication与BinLog机制 深入理解 Replication结构 Replication与BinLog机制 GTID: Global Transaction ID Each transaction on a server is assigned a transaction identifier. assigned to a transaction based on the order in which they committed. The GTID of the transaction is retained regardless of the number of times that the transaction is propagated. CONTENTS 目录 读Scale out 对系统Load的帮助 面向读操作的Scale out 一台服务器容量为10000TPS,支持写操作4000TPS,读操作6000TPS: 增加3台Slaves之后: 同步或异步 Replication 的选择 面向读操作的Scale out Latency (ms) Transaction commit time (ms) Equivalent transactions per second Example case 0.01 0.14 ~7,100 Samecom puter 0.1 0.5 ~2,000 Small LAN 1 4.1 ~240 Bigger LAN 10 40.1 ~25 Metropolitan network 100 400.1 ~2 Satellite 同步Replication的延迟和对TPS影响数据表 典型的拓扑图 面向读操作的Scale out Hierarchical topology 路由与负载均衡 面向读操作的Scale out Load balancing on the application level Using a proxy to distribute quer

文档评论(0)

1112111 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档