PhxSQL 设计与实现
https://github.com/tencent-wechat/phxsql
*PhxSQL 是一个兼容 MySQL、服务高可用、数据强一致的关系型数据库集群。PhxSQL 以单 Master 多 Slave 方式部署,在集群内超过一半机器存活的情况下,可自身实现自动 Master 切换,且保证数据一致性。*
相比目前业界流行的 MySQL 高可用方案,PhxSQL 有三个优势:
不少 MySQL 高可用方案只实现了高可用,不保证数据强一致;PhxSQL 完美地同时满足了高可用和强一致;在主备数据一致性上,PhxSQL 达到了和 zookeeper 同样的级别;
PhxSQL 的高可用方案不依赖 zookeeper 这类第三方选主服务,对比其他的高可用方案在部署上更加简单;
完全兼容 MySQL,已有的 MySQL 应用程序完全不需要做任何的修改就能迁移到 PhxSQL。
本文以 PPT 的形式来阐述一下 PhxSQL 的设计与实现。从 MySQL 的容灾缺陷开始讲起,接着阐述实现高可用强一致方案的思路,然后具体分析每个实现环节要注意的要点和解决方案,最后展示了 PhxSQL 在容灾和性能上的成果。

























































本文原创作者微信团队转自微信后台团队如有侵权请联系我们删除
OpenIMgithub 开源地址:
https://github.com/OpenIMSDK/Open-IM-Server
OpenIM 官网 :https://www.rentsoft.cn
OpenIM 官方论坛: https://forum.rentsoft.cn/
更多技术文章:
开源 OpenIM:高性能、可伸缩、易扩展的即时通讯架构https://forum.rentsoft.cn/thread/3
【OpenIM 原创】简单轻松入门 一文讲解 WebRTC 实现 1 对 1 音视频通信原理https://forum.rentsoft.cn/thread/4
【OpenIM 原创】开源 OpenIM:轻量、高效、实时、可靠、低成本的消息模型
评论