Database switching method and device

A database and main database technology, applied in the database field, can solve the problems of system overhead waste, prolong system processing flow, message congestion queuing, etc., and achieve the effect of avoiding system overhead waste, prolonging system processing flow, and avoiding concurrency inefficiency.

Active Publication Date: 2013-03-06
BEIJING QIHOO TECH CO LTD +1
View PDF5 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] 1. The database operation package is sent to the primary and standby machine agents to complete data replication by broadcasting, which increases the system distribution load and prolongs the system processing process, which is likely to cause waste of system overhead and affect the concurrent efficiency of the system;
[0010] 2. Using the message confirmation mechanism to switch between the active and standby database systems will easily cause message congestion and queuing within a certain time period. During the peak request period, a large number of requests will be waiting, which reduces the processing efficiency of the system;
[0011] 3. The main and standby machines each have their own agents, which have similar functions, which may easily cause system redundancy and waste of resources

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 switching method and device
  • Database switching method and device
  • Database switching method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0074] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0075] refer to figure 1 , which shows a flowchart of a database switching method according to an embodiment of the present invention, which may specifically include:

[0076] Step 101, use the database instance of the associative container to store the service, and the available flag of the database instance in the associative container when storing is available;

[0077] The service is a well-known technology in the database fie...

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 switching method and a database switching device, wherein the method comprises the following concrete steps that a database instance of associated container storage service is adopted, and the database instance in an associated container is marked to be available during storage; when a call request from a business layer is received, connection between a master database and the business layer is established; the database instance with an available mark is selected from the associated container; connection between a corresponding database of the selected database instance and the business layer is established; and when abnormal connecting times of the database and the business layer is captured to be greater than a first threshold, the available mark of the corresponding database instance in the associated container is changed to be unavailable. According to the database switching method and the database switching device, the processing and concurrent efficiency of a database system can be increased, and system overhead and waste of resources can be reduced.

Description

technical field [0001] The invention relates to the technical field of databases, in particular to a database switching method and device. Background technique [0002] Some data backup technologies provided by the database itself usually mean that the database itself provides a management, monitoring and automatic operation architecture, which is suitable for creating and maintaining one or more backup databases. Generally, at the physical level and logical level, the data consistency of the production and backup databases is maintained by transferring and running database log files. Once the primary database is unavailable due to certain circumstances, the backup database will be switched to the new primary database to achieve the purpose of no database loss or minimize data loss. [0003] The process of an existing database system switching method may specifically include: [0004] Step 1. The agents of the master machine and the standby machine perform the same databas...

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): G06F17/30
Inventor 李连港
Owner BEIJING QIHOO 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