A database service persistence method and system based on swarm

A database and persistence technology, applied in the container field, can solve problems such as irretrievable and data loss, and achieve the effects of convenient creation, improved data security, and shortened downtime recovery time

Active Publication Date: 2019-06-21
SOUTH CHINA UNIV OF TECH
View PDF3 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] If all data in the running process of Container Service is not persisted, if the container instance is stopped or deleted or exits abnormally, the data will be lost and cannot be retrieved.
However, for the swarm container cluster management platform, there is no general database service, including a single database and a database cluster persistence method and system

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
  • A database service persistence method and system based on swarm
  • A database service persistence method and system based on swarm
  • A database service persistence method and system based on swarm

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0053] Such as figure 1 As shown in the figure, it shows the swarm-based database service persistence system, which mainly includes: control module, analysis module, registration module, network module, and resource management module.

[0054] In this embodiment, the control module is responsible for receiving the request for creating a database sent by the user. After the module receives the request, it forwards it to the parsing module for parameter analysis, and then the control module forwards the parameters including network drivers and network names to the network module to create a network. , and then forward the parameters including block device size, block read and write permissions, block device name, block device pool name, etc. to the resource management module to request a block device, and finally call the docker api to create a container and return it to the user.

[0055] In this embodiment, the parsing module is responsible for the request from the user of the...

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 invention discloses a database service persistence method based on swarm. The database service persistence method comprises a single database and a persistence method of a database cluster. For asingle database, the method comprises the following steps: 1, constructing a requested database mirror image; 2, analyzing database service creation parameters; 3, creating ceph block equipment; 4, creating a database container and the like; And 5, creating an entrance access container. The database cluster comprises the following steps: 1, analyzing database service creation parameters; 2, creating ceph block equipment; 3, registering an entrance access service; 4, creating an entrance access container; 5, registering a database service; 6, creating a database container. The database servicepersistence system based on the swarm comprises an analysis module, a database service persistence module and a database service persistence module, a control module; a network module, a registrationmodule and the like. The invention provides the universal persistence method for the database service, so that the availability of the database service and the security of data are improved.

Description

technical field [0001] The invention relates to the technical field of containers, in particular to a swarm-based database service persistence method and system. Background technique [0002] Docker is currently one of the most popular open source projects in the field of container technology. The docker container can provide developers with packaging applications and related dependencies into portable containers. Compared with virtual machines with similar resource isolation, containers Virtualizes the OS rather than the hardware, so it's more portable and efficient, booting up almost instantly. Swarm is one of the most popular container cluster management tools for docker, and it is an orchestration tool native to docker. It mainly abstracts several docker hosts into a whole, and manages various docker resources on these docker hosts through one entry. [0003] Ceph is currently one of the most mainstream open source storage projects. It is a reliable, automatic rebalanc...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/21G06F16/25H04L29/08H04L29/06
Inventor 李东洪少佳
Owner SOUTH CHINA UNIV OF TECH
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