Main and auxiliary database synchronization method and device
Patent Information
- Authority / Receiving Office
- CN Β· China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ALIBABA GRP HLDG LTD
- Publication Date
- 2014-06-25
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The present application relates to the field of data processing, in particular to a method and device for synchronizing active and standby databases. Background technique
[0002] MySQL is an open source database software widely used in the Internet industry. Many large websites are using MySQL databases. As the business scale continues to grow, a MySQL database will not be able to support a huge amount of visits.
[0003] An effective solution is to establish a MySQL active and standby cluster, and the standby database is a complete mirror image of the primary database. Write requests only fall on the primary database, and read requests are evenly distributed to all databases, so that the entire cluster can provide larger-capacity read-write services. After the MySQL primary database receives the newly added changed data, it uses the synchronization tool to synchronize the changed data to the standby database in real time.
[0004] Mysql binlog log...