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

Database service persistence method and system based on swarm

A database and persistent technology, applied in the field of containers, can solve problems such as data loss and inability to retrieve, and achieve the effect of improving data security, reducing operation and maintenance difficulty, and shortening downtime recovery time.

Active Publication Date: 2022-03-29
SOUTH CHINA UNIV OF TECH
View PDF3 Cites 0 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
  • Database service persistence method and system based on swarm
  • Database service persistence method and system based on swarm
  • 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, including the persistence methods of single database and database cluster. For a single database, the following steps are included: 1. Build the requested database mirror; 2. Parse the database service creation parameters; 3. Create a ceph block device; 4. Create a database container, etc.; 5. Create an entry access container. The database cluster includes the following steps: 1. Parse the database service creation parameters; 2. Create a ceph block device; 3. Register the entry access service; 4. Create the entry access container; 5. Register the database service; 6. Create the database container. The swarm-based database service persistence system of the present invention includes: an analysis module; a control module; a network module; a registration module and the like. The invention provides a general persistence method for the database service, and improves the usability of the database service and the security of data.

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 Patents(China)
IPC IPC(8): G06F16/21G06F16/25H04L67/1097H04L9/40
Inventor 李东洪少佳
Owner SOUTH CHINA UNIV OF TECH
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