Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for realizing high availability of database based on docker environment

An implementation method and database technology, applied in the field of databases, can solve the problems that data consistency cannot be guaranteed, cannot completely solve data consistency, and is expensive, so as to solve data consistency problems, low cost, and relieve I/O pressure Effect

Inactive Publication Date: 2018-11-06
HANGZHOU ANHENG INFORMATION TECH CO LTD
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Advantages and disadvantages: simple architecture; but data consistency cannot be guaranteed
[0008] Advantages and disadvantages: the structure is simple, and it can better ensure the consistency of data; but it needs secondary development, and it cannot completely solve the problem of data consistency
[0010] Advantages and disadvantages: simple deployment, simple switching logic, strong data consistency; but high availability of shared storage needs to be considered, and the price is expensive

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for realizing high availability of database based on docker environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Below in conjunction with accompanying drawing and specific embodiment the present invention is described in further detail:

[0026] Such as figure 1 A high-availability implementation method for databases based on the docker environment is shown, and the specific implementation method is as follows:

[0027] Step A: Create a docker container D1 on the server.

[0028] Docker is an open source engine that can create a lightweight, portable, self-sufficient container for any application.

[0029] Step B: Configure the database application mysql and other applications in the docker container. The other applications here are any other applications that you want to install, and are not related to the functions and purposes of this patent.

[0030] Step C: Mount the data storage directory of the database in the docker container to the same directory / data / mysql of the server.

[0031] Step D: For the docker container configured in step C, test whether the data storage d...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention relates to the database technology and aims at providing a method for realizing high availability of a database based on a docker environment. The method for realizing high availability of the database based on the docker environment comprises the following steps: creating docker containers at a server; configuring database applications in the docker containers; mounting thedata storage directory of the database in the docker container to the same directory of the server and testing the same; deploying multiple docker containers on the server; forming a LAN by multiple docker containers, configuring a virtual IP and setting to be keeplived for master-slave switching to provide services for the outside world. The database application data storage directory in each docker container in the invention is mounted on a directory of a server, so the invention solves the problem of data consistency completely with low cost and high efficiency.

Description

technical field [0001] The invention relates to the technical field of databases, in particular to a method for realizing high availability of databases based on a docker environment. Background technique [0002] Database technology is an important part of modern information science and technology, and the core of computer data processing and information management systems. [0003] In the database system, it is necessary to reduce data storage redundancy, realize data sharing, ensure data security, and efficiently retrieve and process data. Therefore, the database system architecture must be highly available: 1) If data failures such as downtime or unexpected interruption occur, It can restore data availability as soon as possible, reduce downtime as much as possible, and ensure that the business will not be interrupted due to database failure; 2) The data of the non-primary node used for backup, read-only copy and other functions should be kept in real time with the data ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30G06F9/455G06F11/14
CPCG06F9/45558G06F11/1458G06F2009/45562G06F2009/45595
Inventor 刘博范渊吴波龙文洁莫金友
Owner HANGZHOU ANHENG INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products