Application layer fault tolerance method and system in mysql active/standby mode
An active-standby mode and application layer technology, applied in the field of database disaster recovery, can solve problems such as data inconsistency, and achieve the effect of ensuring basic availability, improving availability, and simple logic
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0066] as attached figure 1 As shown, the fault-tolerant method of the application layer in the MySQL active-standby mode of the present invention is as follows:
[0067] S1. Deploy the application layer database;
[0068] S2. Deploy unsynchronized data access control system database tables;
[0069] S3. The application layer logs in to the unsynchronized data access control system;
[0070] S4, the application layer writes the business table.
[0071] The details of deploying the application layer database in step S1 of this embodiment are as follows:
[0072] S101. Enable the mysql active-standby asynchronous replication mode;
[0073] S102. Add a pre-written version number field to the business table, and the pre-written version number is used to write the return value of the unsynchronized database access control system, as shown in the following table:
[0074] primary key field 1 Field 2… Prewritten version number
[0075] The fields of the unsy...
Embodiment 2
[0110] This embodiment provides an application-layer fault-tolerant system in MySQL active-standby mode, and the system includes:
[0111] Deployment module 1, used to deploy the application layer database;
[0112] The second deployment module is used to deploy the unsynchronized data access control system database table;
[0113] The login module is used to log in to the unsynchronized data access control system at the application layer;
[0114] The writing module is used to write business tables at the application layer.
Embodiment 3
[0116] This embodiment also provides an electronic device, including: a memory and a processor;
[0117] Wherein, the memory stores computer execution instructions;
[0118] The processor executes the computer-executed instructions stored in the memory, so that the processor executes the application layer fault tolerance method in the active-standby mode of mysql according to any embodiment of the present invention.
[0119] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs), or other programmable logic devices, Discrete gate or transistor logic devices, discrete hardware components, etc. The processor may be a microprocessor or the processor may be any conventional processor or the like.
[0120] The memory can be used to store computer programs and / or modules, and the processor implements various function...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com