Database service deployment, disaster recovery method and device

A database and server technology, applied in the information field, can solve problems such as increasing development costs, and achieve the effects of saving development costs and effective disaster recovery.

Active Publication Date: 2022-04-26
BEIJING OCEANBASE TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In traditional technologies, it is usually necessary to develop a cluster file system separately to achieve database disaster recovery, which greatly increases the development cost. Therefore, it is necessary to provide a solution to more effectively implement database disaster recovery while saving development costs

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 deployment, disaster recovery method and device
  • Database service deployment, disaster recovery method and device
  • Database service deployment, disaster recovery method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The solutions provided in this specification will be described below in conjunction with the accompanying drawings.

[0035] As mentioned above, in traditional technologies, it is usually necessary to develop a cluster file system separately to implement database disaster recovery. Specifically, when the main computing node goes down, other nodes can read the data on the cluster file system for recovery. However, this method makes the file system need to implement complex synchronization mechanisms such as inode distributed locks, which will cause a problem of heavy development workload.

[0036] In order to save development costs, the inventors of the present application propose to implement disaster recovery of database services based on a local file system and a shared storage device, which will be described in detail below.

[0037] figure 1 It is a schematic diagram of an implementation scenario disclosed in an embodiment of this specification. figure 1 Among th...

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 embodiments of this specification provide a database service deployment and disaster recovery method and device. In the disaster recovery method, based on a local file system and a shared storage device, a database read and write service is deployed on a first server, and a database is deployed on a second server. Read-only service. After that, the second server periodically sends an access request to the first server to detect whether the first server is abnormal. When it is detected that the first server is abnormal, the read and write rights of the first server to the shared storage device are preempted. Remount the local filesystem in read-write mode. The local file system mounted in read-write mode provides read-write services for shared storage devices, thereby realizing disaster recovery of database services.

Description

technical field [0001] One or more embodiments of this specification relate to the field of information technology, and in particular, to a method and device for database service deployment and disaster recovery. Background technique [0002] With the rapid development of Internet technology, more and more data is stored in the database. In order to ensure that data is not lost, the database needs to have disaster recovery capabilities. [0003] In traditional technologies, it is usually necessary to develop a cluster file system separately to achieve database disaster recovery, which greatly increases the development cost. Therefore, it is necessary to provide a solution to more effectively implement database disaster recovery while saving development costs . Contents of the invention [0004] One or more embodiments of this specification describe a method and device for database service deployment and disaster recovery, which can effectively perform database service di...

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): G06F11/14
CPCG06F11/1435G06F11/1458
Inventor 阳振坤庄明强万全威
Owner BEIJING OCEANBASE 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