CN105227366B - Safeguard the method and system of the consistency of distributed data - Google Patents

Safeguard the method and system of the consistency of distributed data Download PDF

Info

Publication number
CN105227366B
CN105227366B CN201510665905.5A CN201510665905A CN105227366B CN 105227366 B CN105227366 B CN 105227366B CN 201510665905 A CN201510665905 A CN 201510665905A CN 105227366 B CN105227366 B CN 105227366B
Authority
CN
China
Prior art keywords
transaction
node
transaction node
main
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510665905.5A
Other languages
Chinese (zh)
Other versions
CN105227366A (en
Inventor
陆明其
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jin Zheng Science And Technology Co Ltd Of Shenzhen
Original Assignee
Jin Zheng Science And Technology Co Ltd Of Shenzhen
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jin Zheng Science And Technology Co Ltd Of Shenzhen filed Critical Jin Zheng Science And Technology Co Ltd Of Shenzhen
Priority to CN201510665905.5A priority Critical patent/CN105227366B/en
Publication of CN105227366A publication Critical patent/CN105227366A/en
Application granted granted Critical
Publication of CN105227366B publication Critical patent/CN105227366B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention is suitable for field of communication technology, provides the method and system for the consistency for safeguarding distributed data.This method includes:Monitoring management node sends reload instruction in the heavy duty request for receiving user's transmission to main transaction node;Reload instruction is sent to first for transaction node and second for transaction node by main transaction node;First caches the transaction instruction of main transaction node for transaction node and second for transaction node according to reload instruction;First creates restoring data collection for transaction node according to transaction data, and after the completion of restoring data collection creates, and sends to create and completes information to monitoring management node and second for transaction node;First is recurred for transaction node according to the transaction instruction of the main transaction node of caching;Second restores transaction data for transaction node according to restoring data collection, and after the completion of transaction data restores, is recurred according to the transaction instruction of the main transaction node of caching.The present invention maintains the consistency of distributed data.

Description

Safeguard the method and system of the consistency of distributed data
Technical field
The invention belongs to fields of communication technology, more particularly to safeguard the method and system of the consistency of distributed data.
Background technology
With being gradually expanded for securities trading scale, sequencing, the construction for quantifying transaction platform are also paid more and more attention.It is existing Some securities exchange systems use distributed system, in distributed transaction system, need to ensure with the transaction node organized Data consistency.
In the prior art, after some transaction node breaks down, due to being difficult to not interrupt or do not influencing normally to transport In the case of the transaction node of work, by the data of the transaction node of normal operation to keep the requirement of data consistency to restore to In the transaction node of reparation, therefore, even if after the transaction node to break down is repaired, it is also difficult to restore the number of the transaction node According to.
Invention content
In consideration of it, an embodiment of the present invention provides a kind of method and system of consistency that safeguarding distributed data, with solution The problem of certainly prior art is difficult to safeguard the consistency of distributed data in the transaction node to break down.
In a first aspect, an embodiment of the present invention provides a kind of methods of consistency that safeguarding distributed data, including:
Monitoring management node sends reload instruction in the heavy duty request for receiving user's transmission to main transaction node;
The reload instruction is sent to first for transaction node and second for transaction node by the main transaction node;
Described first caches the main transaction for transaction node with described second for transaction node according to the reload instruction The transaction instruction of node;
Described first creates restoring data collection for transaction node according to transaction data, and has been created in the restoring data collection Cheng Hou sends to create and completes information to the monitoring management node and described second for transaction node;
Described first is recurred for transaction node according to the transaction instruction of the main transaction node of caching;
Described second restores the transaction data for transaction node according to the restoring data collection, and in the transaction data After the completion of recovery, recurred according to the transaction instruction of the main transaction node of caching.
Second aspect, an embodiment of the present invention provides a kind of systems of consistency that safeguarding distributed data, including:
Monitoring management node, main transaction node, first are for transaction node and second for transaction node;
The monitoring management node, in the heavy duty request for receiving user's transmission, weight to be sent to main transaction node Carry instruction;
The main transaction node is saved for the reload instruction to be sent to first for transaction node and the second standby transaction Point;
Described first for transaction node, the transaction instruction for caching the main transaction node according to the reload instruction, Restoring data collection is created according to transaction data, and after the completion of the restoring data collection creates, sends to create and complete information to institute Monitoring management node is stated with described second for transaction node, and is carried out according to the transaction instruction of the main transaction node of caching It recurs;
Described second for transaction node, the transaction instruction for caching the main transaction node according to the reload instruction, Restore the transaction data according to the restoring data collection, and after the completion of the transaction data restores, according to caching The transaction instruction of main transaction node is recurred.
Existing advantageous effect is the embodiment of the present invention compared with prior art:The embodiment of the present invention passes through the first standby transaction Node according to transaction data create restoring data collection, second for transaction node according to restoring data collection restore transaction data, first Standby transaction node is recurred with the second transaction instruction for transaction node further according to the main transaction node of caching, it is thus achieved that In the case where not influencing the normal operation of main transaction node, the transaction data restored will be needed extensive for transaction node by first It is multiple to improve the robustness of distributed system to the second transaction node to maintain the consistency of distributed data.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description be only the present invention some Embodiment for those of ordinary skill in the art without having to pay creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the system architecture diagram of the system of the consistency provided in an embodiment of the present invention for safeguarding distributed data;
Fig. 2 is the implementation flow chart of the method for the consistency provided in an embodiment of the present invention for safeguarding distributed data.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 shows the system architecture diagram of the system of the consistency provided in an embodiment of the present invention for safeguarding distributed system, For convenience of description, it illustrates only and the relevant part of the embodiment of the present invention.
Referring to Fig.1, which includes:
Monitoring management node 11, main transaction node 12, first are for transaction node 13 and second for transaction node 14.
It should be noted that the system can also include more standby transaction nodes, and can also include that data backup takes Business device.
The monitoring management node 11, in the heavy duty request for receiving user's transmission, being sent out to main transaction node 12 Send reload instruction;
The main transaction node 12, for the reload instruction to be sent to first for transaction node 13 and the second standby transaction Node 14;
Described first for transaction node 13, and the affairs for caching the main transaction node 12 according to the reload instruction refer to It enables, restoring data collection is created according to transaction data, and after the completion of the restoring data collection creates, send to create and complete information extremely The affairs of the monitoring management node 11 and the main transaction node 12 described second for transaction node 14, and according to caching Instruction is recurred;
Described second for transaction node 14, and the affairs for caching the main transaction node 12 according to the reload instruction refer to It enables, the transaction data is restored according to the restoring data collection, and after the completion of the transaction data restores, according to the institute of caching The transaction instruction for stating main transaction node 12 is recurred.
Preferably, the reload instruction carries the user and asks to create the standby transaction node of the restoring data collection Information.
Preferably, the main transaction node 12 is specifically used for:
The reload instruction is sent to first for transaction node 13 and second for transaction node 14 using multicasting technology.
Preferably, the main transaction node 12 is additionally operable to:
Encouraged using multicasting technology the main transaction node 12 transaction instruction be sent to described first for transaction node 13 with Described second for transaction node 14.
Preferably, it described second is additionally operable to for transaction node 14:
After the completion of the transaction data restores, sends transaction data and restore to complete information to the monitoring management node 11。
It should be noted that the present embodiment first refers to a certain standby transaction node for transaction node, " first " is only herein Statement and the convenience referred to are not meant to centainly to have the corresponding first standby friendship in the specific implementation of the present invention Easy node.Similarly, second is also used for the purpose of statement for " second " in transaction node and refers to conveniently, is not meant to Corresponding second is centainly had for transaction node in the specific implementation of the present invention.
The embodiment of the present invention creates restoring data collection, the second standby transaction section for transaction node by first according to transaction data Point according to restoring data collection restore transaction data, first for transaction node and second for transaction node further according to the main transaction of caching The transaction instruction of node is recurred, it is thus achieved that in the case where not influencing the normal operation of main transaction node, passes through One will need the transaction data restored to restore to the second transaction node for transaction node, to maintain the consistent of distributed data Property, improve the robustness of distributed system.
Fig. 2 shows the implementation flow chart of the method for the consistency provided in an embodiment of the present invention for safeguarding distributed data, Details are as follows:
In step s 201, monitoring management node is sent out in the heavy duty request for receiving user's transmission to main transaction node Send reload instruction.
In embodiments of the present invention, it breaks down in a certain standby transaction node, either standby transaction node is restarted or is added In the case of one new standby transaction node, need to restore transaction data to this for transaction node.At this point, user passes through monitoring Management node sends out heavily loaded request, to safeguard the consistency of the distributed data in distributed system by heavy duty request.When When monitoring management node receives the heavy duty request of user's transmission, reload instruction is sent to main transaction node.
Preferably, the reload instruction carries user and asks to create the information of the standby transaction node of restoring data collection.
Wherein, reload instruction carries user and asks to create the information of the standby transaction node of restoring data collection.For example, occurring The standby transaction node of failure is second for transaction node, then the standby transaction node for the establishment restoring data collection that reload instruction carries Information is first for other standby transaction nodes not broken down in transaction node or same group.
In step S202, reload instruction is sent to first and is saved for transaction node and the second standby transaction by main transaction node Point.
It should be noted that in the same set, including a main transaction node and at least two is for transaction node.When main friendship When easy nodes break down, it is main transaction node that one is switched for transaction node, and former main transaction node is switched to standby transaction Node.
Preferably, reload instruction is sent to first and had for transaction node for transaction node and second by the main transaction node Body is:
Reload instruction is sent to first for transaction node and second for transaction node by main transaction node using multicasting technology.
Reload instruction specifies the information for the standby transaction node for creating restoring data collection.In embodiments of the present invention, second Standby transaction node breaks down, and the specified standby transaction node for creating restoring data collection of reload instruction is first for transaction node.
Preferably, reload instruction is sent to first for transaction node and second for transaction node in the main transaction node Later, described first for transaction node and second for transaction node according to reload instruction cache main transaction node transaction instruction it Before, method further includes:
The transaction instruction that main transaction node encourages main transaction node using multicasting technology is sent to first for transaction node and the Two for transaction node.
In embodiments of the present invention, main transaction node not only handles transaction instruction, is also responsible for transaction instruction being multicasted to standby Transaction node;Standby transaction node is only completed the recurrence of transaction instruction, and the multicast of not responsible transaction instruction.
In step S203, first caches the transaction instruction of main transaction node for transaction node according to reload instruction.
First for transaction node after receiving reload instruction, the transaction instruction of main transaction node is buffered in first and standby is handed over In the corresponding pending queue of easy node.
In step S204, second caches the transaction instruction of main transaction node for transaction node according to reload instruction.
Second for transaction node after receiving reload instruction, the transaction instruction of main transaction node is buffered in second and standby is handed over In the corresponding pending queue of easy node.
In step S205, first creates restoring data collection for transaction node according to transaction data.
In step S206, first for transaction node after the completion of restoring data collection creates, send create complete information extremely Monitoring management node and second is for transaction node.
In step S207, first is recurred for transaction node according to the transaction instruction of the main transaction node of caching.
First for transaction node after the completion of restoring data collection creates, according to first for the corresponding pending team of transaction node The transaction instruction of the main transaction node cached in row is recurred.
In step S208, second restores transaction data for transaction node according to restoring data collection.
Second for transaction node after receiving the first establishment for being sent for transaction node and completing information, according to restoring data Collection restores transaction data.
Preferably, after second restores transaction data for transaction node according to restoring data collection, method further includes:
Second sends transaction data for transaction node restores to complete information to monitoring management node.
In step S209, second for transaction node after the completion of transaction data restores, according to the main transaction node of caching Transaction instruction recurred.
Second for transaction node after the completion of transaction data restores, according to second for the corresponding pending queue of transaction node The transaction instruction of the main transaction node of middle caching is recurred.
It should be understood that in embodiments of the present invention, size of the sequence numbers of the above procedures is not meant to the elder generation of execution sequence Afterwards, the execution sequence of each process should be determined by its function and internal logic, the implementation process structure without coping with the embodiment of the present invention At any restriction.
The embodiment of the present invention creates restoring data collection, the second standby transaction section for transaction node by first according to transaction data Point according to restoring data collection restore transaction data, first for transaction node and second for transaction node further according to the main transaction of caching The transaction instruction of node is recurred, it is thus achieved that in the case where not influencing the normal operation of main transaction node, passes through One will need the transaction data restored to restore to the second transaction node for transaction node, to maintain the consistent of distributed data Property, improve the robustness of distributed system.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of node and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of method of consistency that safeguarding distributed data, which is characterized in that including:
Monitoring management node sends reload instruction in the heavy duty request for receiving user's transmission to main transaction node;
The reload instruction is sent to first for transaction node and second for transaction node by the main transaction node;
Described first caches the main transaction node for transaction node with described second for transaction node according to the reload instruction Transaction instruction;
Described first creates restoring data collection for transaction node according to transaction data, and creates and complete in the restoring data collection Afterwards, it sends to create and completes information to the monitoring management node and described second for transaction node;
Described first is recurred for transaction node according to the transaction instruction of the main transaction node of caching;
Described second restores the transaction data for transaction node according to the restoring data collection, and restores in the transaction data After the completion, it is recurred according to the transaction instruction of the main transaction node of caching;
Wherein, main transaction node normal operation is not being influenced, the friendship for being restored needs for transaction node by described first Easy data are restored to described second for transaction node.
2. the method as described in claim 1, which is characterized in that the reload instruction carries the user and asks described in establishment The information of the standby transaction node of restoring data collection.
3. the method as described in claim 1, which is characterized in that the reload instruction is sent to first by the main transaction node It is specially for transaction node with second for transaction node:
The reload instruction is sent to first for transaction node and the second standby transaction by the main transaction node using multicasting technology Node.
4. the method as described in claim 1, which is characterized in that the reload instruction is sent in the main transaction node One for transaction node and second for transaction node after, described first for transaction node with described second for transaction node according to institute Before stating the transaction instruction that reload instruction caches the main transaction node, the method further includes:
The transaction instruction of the main transaction node is sent to the described first standby transaction by the main transaction node using multicasting technology Node is with described second for transaction node.
5. the method as described in claim 1, which is characterized in that described second for transaction node according to the restoring data collection After restoring the transaction data, the method further includes:
Described second sends transaction data for transaction node restores to complete information to the monitoring management node.
6. a kind of system of consistency that safeguarding distributed data, which is characterized in that including:
Monitoring management node, main transaction node, first are for transaction node and second for transaction node;
The monitoring management node, in the heavy duty request for receiving user's transmission, sending heavy duty to main transaction node and referring to It enables;
The main transaction node, for the reload instruction to be sent to first for transaction node and second for transaction node;
Described first for transaction node, the transaction instruction for caching the main transaction node according to the reload instruction, according to Transaction data creates restoring data collection, and after the completion of the restoring data collection creates, and sends to create and completes information to the prison Management node is controlled with described second for transaction node, and weight is carried out according to the transaction instruction of the main transaction node of caching It drills;
Described second for transaction node, the transaction instruction for caching the main transaction node according to the reload instruction, according to The restoring data collection restores the transaction data, and after the completion of the transaction data restores, according to the main friendship of caching The transaction instruction of easy node is recurred;Wherein, main transaction node normal operation is not being influenced, by the described first standby friendship Easy node will need the transaction data restored to restore to described second for transaction node.
7. system as claimed in claim 6, which is characterized in that the reload instruction carries the user and asks described in establishment The information of the standby transaction node of restoring data collection.
8. system as claimed in claim 6, which is characterized in that the main transaction node is specifically used for:
The reload instruction is sent to first for transaction node and second for transaction node using multicasting technology.
9. system as claimed in claim 6, which is characterized in that the main transaction node is additionally operable to:
The transaction instruction of the main transaction node is sent to described first for transaction node and described second using multicasting technology Standby transaction node.
10. system as claimed in claim 6, which is characterized in that described second is additionally operable to for transaction node:
After the completion of the transaction data restores, sends transaction data and restore to complete information to the monitoring management node.
CN201510665905.5A 2015-10-15 2015-10-15 Safeguard the method and system of the consistency of distributed data Active CN105227366B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510665905.5A CN105227366B (en) 2015-10-15 2015-10-15 Safeguard the method and system of the consistency of distributed data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510665905.5A CN105227366B (en) 2015-10-15 2015-10-15 Safeguard the method and system of the consistency of distributed data

Publications (2)

Publication Number Publication Date
CN105227366A CN105227366A (en) 2016-01-06
CN105227366B true CN105227366B (en) 2018-08-31

Family

ID=54996077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510665905.5A Active CN105227366B (en) 2015-10-15 2015-10-15 Safeguard the method and system of the consistency of distributed data

Country Status (1)

Country Link
CN (1) CN105227366B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8365021B2 (en) * 2005-06-17 2013-01-29 Nec Corporation Information processing device comprising a plurality of domains having a plurality of processors, recovery device, program and recovery method
CN101997911B (en) * 2010-10-21 2015-07-22 中兴通讯股份有限公司 Data migration method and system
CN102467508A (en) * 2010-11-04 2012-05-23 中兴通讯股份有限公司 Method for providing database service and database system
CN103198159B (en) * 2013-04-27 2016-01-06 国家计算机网络与信息安全管理中心 A kind of many copy consistency maintaining methods of isomeric group reformed based on affairs

Also Published As

Publication number Publication date
CN105227366A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
US7685227B2 (en) Message forwarding backup manager in a distributed server system
US20090187668A1 (en) Protocol Independent Server Replacement and Replication in a Storage Area Network
US20160275123A1 (en) Pipeline execution of multiple map-reduce jobs
CN104092717B (en) Message treatment method and system, message destination equipment
CN107430606B (en) Message broker system with parallel persistence
KR20140106588A (en) Application consistent snapshots of a shared volume
JP2007310631A (en) Storage system and method for creating its recovery volume
CN101086714A (en) System and method for remote mirroring operation
CN107665154A (en) Authentic data analysis method based on RDMA and message transmission
CN104158693A (en) A method and a system for disaster recovery backup of data service
CN103778034A (en) Cloud storage-based data backup disaster recovery method and system
CN108985937A (en) A kind of computing resource sharing method and block catenary system based on block chain technology
US9411633B2 (en) System and method for barrier command monitoring in computing systems
CN105471760A (en) Routing method, load balancing device and data communication system
CN102571850A (en) Transaction committing system, method and equipment
CN109739435A (en) File storage and update method and device
CN105812161B (en) A kind of controller failure backup method and system
CN109117305A (en) A kind of data back up method, device, equipment and computer readable storage medium
EP2568379A1 (en) Method for preventing node controller deadlock and node controller
CN104182300A (en) Backup method and system of virtual machines in cluster
CN105760391A (en) Data dynamic redistribution method and system, data node and name node
CN104038364B (en) The fault-tolerance approach of distributed stream treatment system, node and system
CN105227366B (en) Safeguard the method and system of the consistency of distributed data
CN105488174B (en) More distributed data power supply management methods and system based on BS structures
JP2009116474A (en) Storage system and storage subsystem

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant