Research and Improvement in MySQL Replication
- Author
- LiuTeng
- Advisor
- CaiLiang
- School
- Zhejiang University
- Major
- Computer Software and Theory
- Classification
- TP311.13 Database theory and systems
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 205
- Citations
- 0
Abstract
With the Web2.0 era, the rapid development of small sites , LAMP Build this set of open-source model is also increasingly popular. MySQL as the core data management model , the performance of the entire site plays a decisive role . As the number of users increases , the increase in traffic has also brought high concurrency requirements , but also on the security of the data set forth requirements . As a distributed database replication technologies to improve concurrency database clustering and data security of the key technologies being used in various database management systems. MySQL implements a proprietary architecture based on an asynchronous master-slave replication . In MySQL cluster , the master node to accept all write operations , and data updates are sent to each slave node , in order to achieve data consistency between nodes . However, there is a delay asynchronous replication also brought a certain degree of risk , once the master node fails, some data may be lost , but the entire system can not perform a write operation , you must switch the master node to work properly. Based on the above issues , MySQL needs a better cluster replication scheme to increase the availability and protection of data security . In today's replication technology research , based on group communication to achieve total order forwarded the idea of ??replication in the field of distributed database replication has been widely recognized , can solve replication on about data consistency , deadlock and other important issues. Based on such copying ideas , we propose a write operation is set based on a multi-master replication model . In the beginning of the article , first introduced the current status of database replication research in the field as well as popular commercial database used by replication scheme , then introduced the MySQL database -related content , combined with a write operation was proposed based on MySQL replication set design, and in the MySQL InnoDB storage engine to achieve. Finally, this paper summarizes the current implementation, a number of problems and the future direction of improvement .
Table of contents
Abstract 3-4
Abstract 4-10
Chapter 1 Introduction 10-14
1.1 project background 10-11
1.2 thesis work 11-12
1.3 Thesis Organization 12-14
Chapter 2 database replication technology and group communication technology overview 14-23
2.1 database replication technology overview 14-17
2.2 commercial database replication program profiles 17-19
2.2.1 Oracle 17-18
2.2.2 Sybase 18
2.2.3 SQL Server 18-19
2.3 Group Communication Technology Introduction 19-22
2.4 Summary 22-23
Chapter 3, MySQL database and its replication scheme 23-35
3.1 MySQL database architecture 23-24
3.2 MySQL implementation process 24-27
3.3 InnoDB storage engine introduced 27-29
3.4 MySQL database replication technology 29-34
3.4.1 MySQL Replication Overview 29-30
3.4.2 statement-based replication and row-based replication 30-32
3.4.3 dual-thread from the server 32-33
3.4.4 multi-master server 33-34
3.5 Summary 34-35
Chapter 4 sets of synchronous write operations based replication design 35-44
4.1 copy frame design 35-38
4.1.1 WSREP Hooks (Write Set Replication hooks) 35-36
4.1.2 WSREP Provider 36-37
4.1.3 Certification 37
4.1.4 Replication 37-38
4.1.5 GCS framework 38
4.2 replication protocol 38-39
4.3 sets a write operation based synchronous replication process 39-41
4.4 replication system scalability analysis 41-43
4.5 Chapter Summary 43-44
Chapter 5 write operation sets based on MySQL replication to achieve 44-54
5.1 WSREP initialization 44-46
5.2 write operation set export 46-48
5.3 transaction commits 48-50
5.4 application write operation sets 50-52
5.5 Test 52-53
5.5.1 Performance Test 52
5.5.2 Data consistency test 52-53
5.5.3 cluster scalability testing 53
5.6 Chapter Summary 53-54
Chapter 6 Conclusion and next stage of research 54-56
6.1 paper summarizes 54
6.2 Prospects for future work 54-56
References 56-58
master's degree during the main research 58-59
Thanks 59
Related dissertations
- Heterogeneous data synchronization is achieved between the mobile database and main memory database
- Research and Implementation of a Model for Mobile Database Synchronization and Replication
- Research and Implementation of the high-availability file system backup solution in a SAN environment
- Study on the Construction of Agricultural Information Service System
- Study on the Integration and Application of the Second Land Survey Data
- Study on Database Construction and Application Research of Township Overall Land Use Planning
- Countermeasure Research on the Development of Digital Library Integrated Retrieval System in China
- The Design and Development of Unattended Remote Measurement and Monitoring System in Steel Business
- Design and Implementation on Three-dimensional Monitoring System of Data Center
- Large Network Monitoring System Based on ARM
- The Research on Fire-fighting Based on Image Processing in Large Space
- Design and Application of the Distributed Monitoring System Based on Embedded Web
- Excogitation and Implementation of Monitor System for the Greenhouse’s Host Machine
- Design of Circuit Testing System of Vehicle Fuse Box Based on LabVIEW
- Battery Sorting Detect System Design and Application
- The Reliable Data Transmission System in the Maternal and Child Health Information Platform
- The Development of Configuration Software for Monitoring and Controlling Based on C#
- Design and Implementation of Finance Forum Web System
- Design and Implementation of Teaching Website Based on JAVA
- The development of government website based on ASP