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 i

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

Example Embodiment

[0025] The present invention will be further described in detail below in conjunction with the drawings and specific embodiments:

[0026] Such as figure 1 The implementation method of database high availability based on docker environment shown is as follows:

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

[0028] Docker is an open source engine that can create a lightweight, portable, and 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 function and purpose of this patent.

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

[0031] Step D: For the docker container configured in Step C, test whether the data storage directory is successfully mounted. When the mounting is success...

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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products