Research and Implementation of Failover Technology on Database Cluster

Author
LiangYong
Advisor
YangGuoGui
School
National University of Defense Science and Technology
Major
Computer Science and Technology
Classification
TP311.13 Database theory and systems
Degree
Master's thesis
Year
2010
Downloads
177
Citations
2

Request the full text

Abstract

With the increasing requirement of critical and continuous task, high availability of database management system is paid more attention by industry. Data redundancy and cluster is the first choice to achieve high availability, but failover efficiency of cluster system affect the system’s high availability. Therefore, to achieve one cluster system of high failover efficiency has high practical value. the failover model Pronto _PF focused on transaction integrity based on MySQL is implemented.Thesis detailed analyze shared nothing and shared storage architecture, the former has high failover efficiency and scalable performance, but the fault handling capacity is weak. However, shared storage architecture has strong capacity of fault handling and less efficient failover. And then introduce the failure predication mechanism to promote the efficiency of the failover, and prove the correctness and rationality of the failover algorithm based on predication. And introduced the transaction ID attribute for failover, designed and implemented the extended event structure in the binary log file: HA_log_event. Finally based on failure predication and the extended event structure we building a failover model Pronto_PF, which mainly consists of three modules, the node switch module convene the election agreement during the node failure predication and select the appropriate coordinator according to transaction ID attribute; the transaction read/write module introduce the concept of the transaction information table and record the implementation information of transaction in the system, and determine whether the loss of the node affairs according to the analysis and comparison of the information in the transaction information table and binary log file in the node; the transaction analysis module realize the transaction integrity according to the transaction read/write module by undoing and redoing the transaction.In this paper, we construct the failover model Pronto _PF based on the extend log, then analyze and implement the three modules in accordance with its architecture, which applied the ROWA-A strategy, heartbeat detection strategy and redo logs strategy. Finally, Pronto_PF’s performance evaluation and comparison with existing high availability cluster show that the failover efficiency and transaction integrality capabilities of the model meet the high availability requirements.

Table of contents

Summary 8-9 ABSTRACT 9-10 first chapter 10-16 1.1 Introduction 10-12 <br / > development 1.1.1 cluster technology advantage 10-11 1.1.2 cluster technology 11-12 1.2 subject background and significance 12 - 13 1.3 dissertation research 13-14 1.4 thesis structure 14-16 chapter related work 16-26 <br / > 2.1 fault detection 16-19 2.2 connection migration 19-20 2.3 distributed election mechanism 20-22 2.3.1 Bully algorithm 20-21 2.3.2 Central election algorithm 21-22 2.4 consistent state 22-25 2.4.1 synchronization mechanism 22-24 2.4.2 asynchronous mechanism 24-25 2.5 Summary 25-26 Chapter III study of high availability database cluster 26-40 3.1 cluster architecture analysis 26-29 3.1.1 without shared storage architecture 26-27 3.1.2 shared storage architecture 27-29 3.2 cluster structure is analyzed 29-32 3.3 cluster failover mechanism 32-39 3.3.1 fault -based fault prediction switching algorithm 32-37 justification 3.3.2 algorithms 37-39 3.4 Summary 39-40 Chapter IV binary Research log structure studies 40-50 4.1 replication mechanism 40-41 4.2 binary log structure analysis 41-44 4.2.1 Overview 41-42 4.2.2 binary log structure 42-44 4.3 log reader mechanism analysis and improvement 44-49 4.4 of this chapter Summary achieve 49-50 Chapter V failover cluster database models 50-62 5.1 failover system prototype 50-53 5.1 .1 failover theoretical foundation 50-51 5.1.2 failover system prototype achieve 51-53 5.2 node switching module 53-56 <br / > 5.3 to read and write transactions to achieve module achieve 56-58 5.4 transaction analysis module 58-61 5.5 Summary 61-62 <br / > evaluation and Analysis of Chapter VI 62-69 6.1 test environment 62-64 6.1.1 hardware configuration 62 6.1.2 software environmental 62 6.1.3 test scenarios 62-64 6.2 Evaluation 64 6.3 experimental evaluation 64-67 <br / > 6.4 test results analysis 67-68 6.5 summary 68-69 Chapter VII Conclusion 69-71 7.1 This article summarizes 69-70 7.2 further work 70-71 Thanks 71-72 References 72-76 during the learning of academic achievements 76

Related dissertations

  1. The Rearch on High Availability of Master-slave Cloud Platforms
    DengPeng ·Xiangtan University ·2013 ·Master's thesis
  2. Research and Implementation of Virtualization Management Framework for High Availability
    LiYuTong ·Northeastern University ·2013 ·Master's thesis
  3. Design and Implementation of a High Availability Server Cluster System Module
  4. Design of Parallel Systems for Stateful Applications on Clusters
    ChenYan ·Shanghai Jiaotong University ·2007 ·Doctoral dissertation
  5. High availability server aggregation system analysis and design methods
    GaoWen ·Institute of Computing Technology ·2001 ·Doctoral dissertation
  6. The Design and Implementation of the CA Server’s Hot-standby System in the CAPF of Hainan Province
  7. Distributed multi-node fault-tolerant systems design and implementation
    LiuJingJing ·Dalian University of Technology ·2009 ·Master's thesis
  8. On the Development of Service Industry in Gansu from the Cluster Perspective
    JinMei ·Lanzhou University ·2013 ·Doctoral dissertation
  9. Study on Tourism Industry Cluster of Hainan
  10. The Study of the Regional Tourism Competitiveness Based on Industrial Clustering Effect
    GuoYanGe ·Northwest Normal University ·2013 ·Master's thesis
  11. Study on the Linkage Analysis for17Districts of Hubei Province’s Tourism
    JiangWeiZheng ·Central China Normal University ·2014 ·Master's thesis
  12. Cluster Entrepreneurship:the Influence Mechanisms of the Technology and Market Gradient Distance
    ZuoJing ·Zhejiang University ·2014 ·Master's thesis
  13. Global value chain Chongqing Motorcycle Industrial Cluster Upgrading Research
  14. Henan Medical Business Circle District Industrial Cluster Development Strategy Research
  15. The Analysis of Region Feature and Interacting about Chinese Urbanization and Modern Service Industry
    JiangChao ·Dongbei University of Finance ·2013 ·Master's thesis
  16. Research on Remote Sensing High-performance Computing Strategy and Preliminary Implementation of Platform Based on Cluster
    MaYong ·Chinese Academy of Forestry ·2013 ·Master's thesis
  17. Research on Performance Monitoring Technique of Cluster Management of the Virtual System
    WangXiaoJuan ·Xi'an University of Petroleum ·2013 ·Master's thesis
  18. An Improved Case-based Reasoning Approach and Its Application in Soft Measurement Modeling
  19. Semi-supervised Classification Method Based on Support Vector Machines
    LiaoMingQiao ·Harbin Engineering University ·2013 ·Master's thesis
  20. Study on Personal Credit Evaluation Based on Improved Support Vector Machine