Unlock instant, AI-driven research and patent intelligence for your innovation.

Idempotent control method and device when database is switched

A control method and database technology, applied in the computer field, can solve problems such as failure

Active Publication Date: 2018-12-21
ADVANCED NEW TECH CO LTD
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Then, if the retransmission of the data during this period is due to the network or its own reasons, that is, the repeated write operation request, since the data does not exist in the read database, it will not be recognized as a repeated request and will be written to the FO library, thus cause idempotent failure

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
  • Idempotent control method and device when database is switched
  • Idempotent control method and device when database is switched
  • Idempotent control method and device when database is switched

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the following will describe the technical solutions in one or more embodiments of this specification in conjunction with the drawings in one or more embodiments of this specification The technical solution is clearly and completely described, and obviously, the described embodiments are only a part of the embodiments in this specification, rather than all the embodiments. Based on one or more embodiments in this specification, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present disclosure.

[0028] figure 1 The business system architecture of at least one embodiment of this specification is illustrated, such as figure 1 As shown, the application system 11 may receive a service write request, for example, the request may be a request to ...

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

Embodiments of the present specification provide an idempotent control method and apparatus when a database is switched, wherein the method includes: receiving a service write request for requesting to write data into the database; receiving a service write request for requesting to write data into the database; writing write data corresponding to the service write request into a main write database and a buffer; Executing switching of a write database, switching from a master write database to a standby write database, wherein the standby write database is used for writing data when the master write database fails; When the service write request is received again, if the write data corresponding to the re-received service write request does not exist in the buffer, the write data is written into the standby database.

Description

technical field [0001] The present disclosure relates to the field of computer technology, in particular to an idempotent control method and device when switching databases. Background technique [0002] In large-scale architecture and platform systems, in order to ensure the high availability of the database, the FO (FailOver, failover) idea is generally adopted, that is, when the main writer database is down, write to the Failover library by quickly switching services (FO library, which can It is considered as a backup of the main write database, which is equivalent to a backup write database) to ensure business continuity. [0003] However, at the moment when the main writer database fails, idempotence is often uncontrollable. For example, in the mechanism of judging whether a write request is repeated based on the data in the read database, if there is a certain time delay (2ms~2s) in the data synchronization from the main write database to the read database, when the m...

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): G06F11/14G06F17/30
CPCG06F11/1458G06F11/1474G06F2201/80
Inventor 王伟
Owner ADVANCED NEW TECH CO LTD