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

Database failure transfer method based on cloud hard disk and device thereof

A technology of failover and cloud hard disk, applied in the field of cloud database, can solve the problems of high cost and overhead, and achieve the effect of improving efficiency, reducing overhead, and simplifying failover

Active Publication Date: 2014-05-07
上海盛霄云计算技术有限公司
View PDF3 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The present invention provides a database failover method and device based on a cloud hard disk, which is used to solve the problem of high cost in the automatic failover mode of cloud databases in the prior art

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 failure transfer method based on cloud hard disk and device thereof
  • Database failure transfer method based on cloud hard disk and device thereof
  • Database failure transfer method based on cloud hard disk and device thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] figure 2 It is a flow chart of the cloud disk-based database failover method according to Embodiment 1 of the present invention.

[0030] like figure 2 As shown, the method includes the following steps:

[0031] Step 201: When it is detected that the cloud host of the user's database instance fails and the database is unavailable, uninstall the cloud hard disk connected to the cloud host and the network bandwidth package of the cloud host;

[0032] Step 202: Bind the network bandwidth package to other available cloud hosts, and mount the cloud hard disk to the cloud host bound to the bandwidth package.

[0033] Before the above step 201, when detecting the cloud host of the database instance, periodic detection may be performed to the cloud host of the database instance to test whether the cloud host of the database instance has failures such as network failure and local hard disk damage.

[0034] When it is detected that the cloud host of the database instance fai...

Embodiment 2

[0039] image 3 It is a flow chart of the cloud disk-based database failover method according to Embodiment 2 of the present invention.

[0040] As shown, the method includes the following steps:

[0041] Step 301: Periodically detect whether the cloud host of the database instance fails;

[0042] Step 302: When it is detected that the user's cloud host fails, uninstall the network bandwidth package of the failed cloud host and the cloud disk of the database instance;

[0043] Step 303: apply for a cloud host with the same configuration as the failed cloud host;

[0044] Step 304: delete the corresponding relationship between the failed cloud host and the user account;

[0045] Step 305: establishing a corresponding relationship between a newly applied cloud host and a user account;

[0046] Step 306: Bind the bandwidth package to the applied cloud host, and mount the cloud hard disk to the cloud host bound to the bandwidth package.

[0047] It should be noted that the ab...

Embodiment 3

[0051] Figure 4 It is a structural block diagram of the cloud disk-based database failover device of the present invention.

[0052] like Figure 4 As shown, the cloud disk-based database failover device 40 includes the following components:

[0053] The unloading module 41 is used to unload the cloud hard disk connected to the cloud host and the bandwidth package of the cloud host when it is detected that the cloud host of the user's database instance breaks down and the database is unavailable;

[0054] The binding module 42 is configured to bind the bandwidth package to other available cloud hosts, and mount the cloud hard disk to the cloud host bound to the bandwidth package.

[0055] Among them, in order to grasp the running status of the database instance in real time, so that the cloud host can be replaced in time after the cloud host fails, such as Figure 5 As shown, the above-mentioned device 40 may further include a detection module 52 for periodically detecting...

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 failure transfer method based on a cloud hard disk and a device thereof to solve a problem of the large cost of a cloud database automatic failure transfer mode in the prior art. The method comprises the steps of unloading a cloud hard disk mounted on a cloud host machine and the network bandwidth package of the cloud host machine when a condition that a database can not be used caused by the failure of the cloud host machine of a database instance of a user is detected, and binding the network bandwidth package to other available cloud host machines and mounting the cloud hard disk to the cloud host machine to which the bandwidth package is bound. According to the technical scheme of the invention, the cost of cloud database failure transfer is reduced, and the efficiency of the cloud database failure transfer is improved.

Description

technical field [0001] The present invention relates to the field of cloud databases, in particular to a cloud hard disk-based database failover method and device. Background technique [0002] Cloud database refers to the database in the cloud environment, which has the characteristics of one-click application, on-demand supply, on-demand charging, and dynamic expansion. Users can use the cloud database from the local host through a valid connection string. In the use of cloud databases, the database may be unavailable due to network connection failure, operating system failure, etc., and automatic failover is required at this time. Automatic failover means that when server A fails to serve customers, the system can automatically switch so that server B can continue to provide services to customers. [0003] In the prior art, the relatively mature automatic database failover method is the database mirroring technology. Using this technology requires at least two servers, ...

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): H04L12/24H04L29/08
Inventor 沈强谢振业曹玮
Owner 上海盛霄云计算技术有限公司
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