raft协议 MySQL 切换_kingbus是一个基于raft强一致协议实现的分布式MySQL binlog 存储系统...

Kingbus是一个采用Raft一致性协议的MySQL Binlog分布式存储系统,作为主从架构中的中间层,减轻主库压力,支持Geo-Replication和高可用性。它允许在不增加主库负担的情况下水平扩展从库,同时可以减少主库的Binlog存储空间,并支持异构数据库的日志复制。
摘要由CSDN通过智能技术生成

kingbus_logo.png

68747470733a2f2f676f7265706f7274636172642e636f6d2f62616467652f6769746875622e636f6d2f666c696b652f6b696e6762757368747470733a2f2f7472617669732d63692e6f72672f666c696b652f6b696e676275732e7376673f6272616e63683d6d617374657268747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f666c696b652f6b696e676275732e737667

What is kingbus? 中文

Kingbus is a distributed MySQL binlog store based on raft. Kingbus can act as a slave to the real master and as a master to the slaves in the same way as an intermediate MySQL master does. Kingbus has the following key features:

MySQL replication protocol compatibility, pull the binlog files from the master through gtid mode, and push the binlog file to slave through gtid mode in the same way.

Geo-Replication, kingbus uses Raft to support Geo-Replication. The binlog data written to the cluster is guaranteed to be consistent between multiple nodes, and the order of binlog event is exactly the same as that on the master.

High availability, your mysql binlog replication is always on and continuously available with kingbus.

kingbus_arch.png

Why need kingbus?

In a traditional MySQL replication setup a single master server is created and a set of slaves of MySQL servers are configured to pull the binlog files from the master, putting a lot of load on the master.

Introducing a layer between the master server and the slave servers can reduce the load on the master by only serving kingbus instead of all the slaves.

The slaves will only need to be aware of kingbus and not the real master server. Removing the requirement for the slaves to have knowledge of the master also simplifies the process of replacing a failed master within a replication environment.

Kingbus allows us to horizontally scale our slaves without fear of overloading the network interface of the master

Kingbus can also be used to avoide deep nested replication on remote sites, with kingbus you don't need e deeply nested replication.

The size of the binlog storage space on the Master can be reduced, and store the binlog in kingbus.

Support MYSQL database heterogeneous log based replication. Other heterogeneous replication components can be connected to the kingbus, such as canal.

For more usage scenarios of binlog server, please refer:

Quick start

Documentation

License

Kingbus is under the Apache 2.0 license. See the LICENSES file for details.

Acknowledgments

Thanks etcd for providing raft library.

Thanks go-mysqlfor providing mysql replication protocol parser.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值