CN108052620A - The storage system of data mode, the node data processing system of block chain and method - Google Patents

The storage system of data mode, the node data processing system of block chain and method Download PDF

Info

Publication number
CN108052620A
CN108052620A CN201711347754.4A CN201711347754A CN108052620A CN 108052620 A CN108052620 A CN 108052620A CN 201711347754 A CN201711347754 A CN 201711347754A CN 108052620 A CN108052620 A CN 108052620A
Authority
CN
China
Prior art keywords
data
high availabitity
client
node
database
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.)
Granted
Application number
CN201711347754.4A
Other languages
Chinese (zh)
Other versions
CN108052620B (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.)
Taikang Insurance Group Co Ltd
Original Assignee
Taikang Insurance Group Co Ltd
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 Taikang Insurance Group Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN201711347754.4A priority Critical patent/CN108052620B/en
Publication of CN108052620A publication Critical patent/CN108052620A/en
Application granted granted Critical
Publication of CN108052620B publication Critical patent/CN108052620B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The invention discloses the node data processing systems and method in a kind of storage system of data mode, block chain.Wherein, in each node of the storage system applications in block chain, storage system includes multiple databases, High Availabitity node and data management module, wherein, a High Availabitity client is disposed on each database, each High Availabitity client is used to send the heart beat status of database corresponding with each High Availabitity client to data management module;Data management module, for when judging that distance receives time when once feeding back heart beat status in target High Availabitity client and is more than preset time, adjustment to be for the data mode storage strategy of target High Availabitity client;High Availabitity node, for when listening to the data mode storage strategy, cutting off the communication connection between target High Availabitity client and data management module, and being carried out abnormality detection to target High Availabitity client.This system ensure that the availability of data mode.

Description

The storage system of data mode, the node data processing system of block chain and method
Technical field
The present invention relates to technical field of data processing more particularly to a kind of storage system of data mode, storage method, areas Node data processing system and node data processing method in block chain.
Background technology
Block chain technology is applied to earliest in this digital cash of bit coin, is used to implement the book keeping operation system of decentralization System.But from 2014, block chain (Blockchain) technology of bit coin behind receives public concern, and has formally triggered distribution The innovation tide of this (Distributed Ledger) technology of formula book keeping operation.People come to realise, this relevant technology of keeping accounts, especially It is that management (including ownership and circulation) for assets (including physical assets and intangible asset) is very crucial;And go to center Distributed book keeping operation this technology of change is significant for the multidimensional commercial network of current open.Block chain is exactly realized in going The heart keep accounts the system a kind of great potential possible technique.With the technology of the ripe and each major company of block chain technology It supports, gradually shows up prominently including finance, trade, reference, Internet of Things, shared economic dispatch numerous areas.
The technical characterstic of block chain solves the trust problem of multi transaction from the angle of infrastructure, is trusted by machine Enhance institution-based trust.Multiple tissues each possess encryption data and common recognition algorithm, it is ensured that data can not be distorted and disclosed It is bright, and pass through intelligent contract and realize logical transaction automatically with code, it ensure that the justice of transaction, make the tissue operation of decentralization It is possibly realized.
For each node in block chain, during a complete information manipulation of data stream, due to each Intelligent contract in node is to arrive the data modes storage such as information of the version of information, certain data structure specifically stored In data mode storage system (or being data state memory), so, it can be found that data mode storage system plays More important role.It can be seen that each node data state storage system placed the index major key of information on this node And respective value, and the information index in the respective data mode storage system of each node is different.If that wherein The data mode storage system cisco unity malfunction of one node, then the block chain data on the node will be unable to be read and write Enter.
Therefore, how to provide high availability scheme for the data mode storage system in each node in block chain is urgently It solves the problems, such as.
The content of the invention
The purpose of the present invention is intended to solve one of the technical issues of above-mentioned at least to a certain extent.
For this purpose, first purpose of the present invention is to propose a kind of storage system of data mode.The system can ensure At least one database, which can be realized, in the node operates the data state info in block chain data, improves section The high availability of data mode storage system in point.
Second object of the present invention is in the node data processing system in a kind of block chain is proposed.
Third object of the present invention is the data mode storage method for proposing a kind of storage system.
Fourth object of the present invention is in the node data processing method in a kind of block chain is proposed.
In order to achieve the above objectives, the storage system for the data mode that first aspect present invention embodiment proposes, the storage System is applied in each node in block chain, and the storage system includes:Multiple databases, High Availabitity node and data pipe Module is managed, wherein, a High Availabitity client is disposed on each database, each High Availabitity client is used for the data pipe Manage the heart beat status that module sends database corresponding with each High Availabitity client;The data management module, is used for Time when recording distance receives each High Availabitity client last feedback heart beat status respectively, and judging that distance receives When time during feedback heart beat status last to target High Availabitity client is more than preset time, adjustment is high for the target The data mode storage strategy at available client end;The High Availabitity node, for monitoring the variation feelings of the data management module Condition, and listening to data mode storage strategy of the data management module adjustment for the target High Availabitity client When, the communication connection between the target High Availabitity client and the data management module is cut off, and can to the target height It is carried out abnormality detection with client.
In order to achieve the above objectives, the node data processing system in the block chain that second aspect of the present invention embodiment proposes, Including:Storage system, transaction data record module and the intelligent contract of data mode described in first aspect present invention embodiment, Wherein, the transaction data record module, for recording the transaction data of block chain;The intelligence contract, for initiating data Read operation instructs, and obtain with the major key of the corresponding operation data of data reading operation instruction, and from the storage of data mode Inquire about corresponding with major key data state info in system, and according to the data state info from the friendship of the block chain Corresponding data are searched in easy data;The storage system of the data mode, it is required in process of exchange for memory block chain The data state info wanted.
In order to achieve the above objectives, the data mode storage method for the storage system that third aspect present invention embodiment proposes, In each node of the storage system applications in block chain, the storage system includes multiple databases, High Availabitity node And data management module, wherein, a High Availabitity client is disposed on each database, wherein, the storage method includes:Often A High Availabitity client sends the heartbeat of database corresponding with each High Availabitity client to the data management module State;The data management module is when recording distance receives each High Availabitity client last feedback heart beat status respectively Time, and judging that the time that distance receives when once feeding back heart beat status in target High Availabitity client is more than preset time When, adjustment is for the data mode storage strategy of the target High Availabitity client;The High Availabitity node listen to it is described When data management module adjustment is directed to the data mode storage strategy of the target High Availabitity client, cutting off the target height can With the communication connection between client and the data management module, and abnormal inspection is carried out to the target High Availabitity client It surveys.
In order to achieve the above objectives, the node data processing method in the block chain that fourth aspect present invention embodiment proposes, Including:Detecting that initiation data reading operation instructs when currently triggering read operation event for data;It obtains and the data Read operation instructs the first major key information of corresponding operation data;Inquiry and the described first master from the storage system of data mode Corresponding first data state info of key information, wherein, the storage system of the data mode is implemented for first aspect present invention Storage system described in example;Corresponding number is searched from the transaction data of the block chain according to first data state info According to.
Storage system, the node data processing system in block chain, the method for data mode according to embodiments of the present invention, By High Availabitity node when monitoring that some High Availabitity client has abnormal, the High Availabitity client and High Availabitity visitor are cut off Communication connection between the end of family, and pass through the database realizing in other High Availabitity clients to the data shape in block chain data State information is operated, in this way, ensureing that at least one database can be realized to the data in block chain data in the node Status information is operated, and is improved the high availability of the data mode storage system in node, and then is implemented using the present invention Data mode realization in the data mode storage system of example operates block chain data.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description It obtains substantially or is recognized by the practice of the present invention.
Description of the drawings
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Substantially and it is readily appreciated that, wherein:
Fig. 1 is recording process exemplary plot of the node when recording the transaction data of block chain on block chain;
Fig. 2 is the structure diagram of the storage system of data mode according to an embodiment of the invention;
Fig. 3 is the structure diagram of the storage system of the data mode of a specific embodiment according to the present invention;
Fig. 4 is the flow chart of the data mode storage method of storage system according to an embodiment of the invention;
Fig. 5 is the flow chart of data mode storage method in accordance with another embodiment of the present invention;
Fig. 6 is the structure diagram of the node data processing system in block chain according to an embodiment of the invention;
Fig. 7 is the flow chart of the node data processing method in block chain according to an embodiment of the invention;
Fig. 8 is the flow chart of the node data processing method in block chain in accordance with another embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or has the function of same or like element.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
It is accordingly introduced firstly the need of to block chain technology.
The basic conception of block chain technology may include following three aspects:
It merchandises (Transaction):Once-through operation causes the once change of account book state, such as one record of addition;
Block (Block):Record a period of time in occur transaction and state outcome, be to current account book state once Common recognition;
Chain (Chain):It is in series by block one by one according to order of occurrence, is the log recording of entire state change.
Transaction each time on block chain attempts once to change distributed account book, and the area for generation of knowing together every time Block is exactly that participant causes the result of state change to confirm for All Activity content in block.For example, it is touched for one Hair repeatedly merchandises and generates the process of multiple blocks as shown in Figure 1, including 4 blocks in the block chain, has in each block There are the ID of current block and the ID of previous block, and transaction record ID caused by current transaction is included in each block.
It should be noted that an intelligent contract is respectively provided in each node in block chain.Technically, intelligence Energy contract is considered as network server, and simply these servers are not to be set up on the internet using IP address, but frame It is located on block chain.So as to run specific contract program in the above.Popular understanding is one in computer system On, in the case that certain condition is satisfied, the contract that can be performed automatically.Block adds after being connected in into 2.0 epoch Intelligent contract, area's information in the block are operated by intelligent contract.
Since the node on each block chain each possesses a complete account book, and each saved on same chain The account book of point records identical data.So desirable one of node builds suitable block chain data store strategy.It can To understand, the transaction data of block chain can be recorded on each node, recording process can be as shown in Figure 1.The read and write operation of data Dependent on the intelligent contract program being deployed on node.The read-write rule of data and read-write form can be provided in intelligent contract.Just It is not in the situation across the direct operation block chain transaction data of intelligent contract in the block chain application often to work.
After intelligent contract is traded each time, not only can on block chain store transaction process, but also The information of the data structure of needs can be stored.For the information stored every time can use model (KEY, VERSION, VALUE) operated.Wherein key represents the key assignments of storage information, for being distinguished with other information;Version represents information Version, when the field needs to change there are write operation and when writing successfully;Certain data structure that value expressions specifically store Information can be read and writen using key assignments.Data in the model are then stored in data mode storage system Data state memory) in.
In conclusion a complete information manipulation of data stream process can be:
1) information operational order is initiated by intelligent contract;
2) finding needs the major key of operation data, and the corresponding data of the current major key are then inquired about in data mode system State (such as version and data);
3) after checking data mode, corresponding data is found in block chain data or write information into block chain number According to and data mode storage system.
In the data flow procedure, it can be found that data mode storage system plays more important role.Each section The data mode storage system of point places the index major key and respective value of information on the node, and the respective data of each node Information index in state storage system is different.If that the data mode storage system of one of node cannot be just It often works, the block chain data on the node will be unable to be read and written.Therefore, the present invention propose one kind height can be provided can It is handled with the node data processing system in the storage system of the data mode of effect, storage method, block chain and node data Systems approach.Specifically, below with reference to the accompanying drawings the storage system, storage method, area of the data mode of the embodiment of the present invention are described Node data processing system and node data disposal system and method in block chain.
Fig. 2 is the structure diagram of the storage system of data mode according to an embodiment of the invention.Need what is illustrated It is that the storage system of the embodiment of the present invention can be applied in each node in block chain.As shown in Fig. 2, the data mode Storage system 200 can include:Multiple databases 210, High Availabitity node 220 and data management module 230.Wherein, in this hair In bright embodiment, a High Availabitity client 240 is disposed on each database.In addition, the data management module 230 can pass through Distributed mode is managed data.
Specifically, each High Availabitity client 240 can be used for sending and each High Availabitity client to data management module 230 Hold the heart beat status of 240 corresponding databases 210.That is, can be that each database 210 disposes a High Availabitity client 240, to report the heart beat status of local data base to data management module 230.For example, database 210 can be to corresponding height Available client end 240 sends heartbeat packet, and High Availabitity client 240 can carry out the heartbeat packet to be packaged processing to be transmitted to data pipe Module 230 is managed, so that data management module 230 can recognize the number in the High Availabitity client 240 by the forwarding information According to the use state situation in storehouse 210.
Data management module 230 receives the last feedback heart of each High Availabitity client 240 for recording distance respectively Time during jump state, and judging that the time that distance is received when once feeding back heart beat status in target High Availabitity client surpasses When crossing preset time, adjustment is for the data mode storage strategy of target High Availabitity client.Optionally, data management module 230 are judging that the time that distance receives when once feeding back heart beat status in some High Availabitity client 240 is more than a period of time When, it is believed that there is delay or machine of having delayed in the 240 corresponding database of High Availabitity client, at this point, adjustable for the height The data mode storage strategy at available client end 240 is sent out for example, can reduce to 240 corresponding database of the High Availabitity client Data state info is sent, that is, reduces the storage operation of the 240 corresponding database of High Availabitity client;Alternatively, it can stop to this 240 corresponding database of High Availabitity client sends data state info, that is, stops the 240 corresponding data of High Availabitity client The storage operation in storehouse.
It should be noted that in an embodiment of the present invention, which can be in data management module 230 Register monitoring event.In this way, High Availabitity node 220 can monitored data management module 230 situation of change, and listening to data When the adjustment of management module 230 is directed to the data mode storage strategy of target High Availabitity client, target High Availabitity client is cut off With the communication connection between data management module 230, and target High Availabitity client is carried out abnormality detection.Pass through height as a result, Enabled node when monitoring that some High Availabitity client has abnormal, cut off the High Availabitity client and High Availabitity client it Between communication connection, and pass through the database realizing in other High Availabitity clients to the data state info in block chain data It is operated, in this way, ensureing that at least one database can be realized to the data mode letter in block chain data in the node Breath is operated, and improves the high availability of the data mode system in node.
Optionally, in one embodiment of the invention, High Availabitity node 220 is detecting the target High Availabitity client There are exception, and when needing to be serviced, warning reminding information can be generated, and the warning reminding information is supplied to user, So that user safeguards the target High Availabitity client according to the warning reminding information accordingly.
In order to further improve the high availability of data mode storage system, optionally, in one embodiment of the present of invention In, primary database 211 is may include in each database 210 and from database 212, primary database 211 is used to indicate currently The database used is used to indicate the database when primary database breaks down to replace from database 212.Wherein, exist In the embodiment of the present invention, target High Availabitity client is used to detect the communication at target available client end in High Availabitity node 220 When normal, judge target High Availabitity client in current primary database 211 break down, and to current primary database 211 into Machine of delaying of going operates, and to the feedback of data management module 230 for the fault status information of current primary database 211.Data management Module 230 can be additionally used in when receiving fault status information, send a notification message to High Availabitity node 220.High Availabitity node 220 can be additionally used in when receiving notification information, and the current primary database 211 of failure is rechecked, and will currently from Database 212 is switched to new primary database.
In order to improve the availability of High Availabitity node, optionally, in one embodiment of the invention, the High Availabitity node 220 can be multiple.Each High Availabitity node 220 is connected respectively with data management module 230 and each High Availabitity client 240. Wherein, in an embodiment of the present invention, data management module 230 can be additionally used in holding between multiple High Availabitity nodes 220 Calamity processing, and choose a High Availabitity node from multiple High Availabitity nodes 220 and operation is switched over to master-slave database.Also It is to say, multiple High Availabitity nodes 220 can be disposed and carry out disaster tolerance, can pass through data management module between each High Availabitity node 220 230 are uniformly processed, and occur handover operation of multiple High Availabitity nodes to master-slave database in order to prevent, in the embodiment of the present invention In, data management module 230 can choose a High Availabitity node from multiple High Availabitity nodes 220 and master-slave database is cut Change operation.
As a kind of exemplary realization method, which can be 2.For example, in data management module 230 When detecting that some High Availabitity node in two High Availabitity nodes 220 occurs abnormal, another High Availabitity node pair can control Multiple High Availabitity clients 240 monitor and abnormality processing operation.
For example, as shown in figure 3, by taking a node on block chain as an example, it is assumed that data mode on the node In storage system 200 there are 3 databases 210, a High Availabitity client 240, the storage system are disposed on each database 210 System 200 may also include High Availabitity node 220 and data management module 230.Wherein, each High Availabitity client 240 can be to distribution Formula data management module 230 reports the heart beat status of local data base 210.And High Availabitity node 220 can be in data management module Monitoring event is registered in 230.High Availabitity node 220 can listen to the hair in data management module 230 by the monitoring event Raw situation of change.In order to improve availability, in an embodiment of the present invention, two High Availabitity nodes 220 can be disposed and carry out disaster tolerance. Wherein, it is uniformly processed between the two High Availabitity nodes 220 by data management module 230, to prevent multiple High Availabitities Node is to the handover operation of master-slave database.
In this way, when some High Availabitity client 240 detects that some database of itself breaks down, it can be to the number Machine operation of delaying is carried out according to storehouse.Data management module 230 can be pinpointed the problems by High Availabitity client 240, and trigger event notice is high Enabled node 220.High Availabitity node 220 can recheck the database of failure when receiving the notice, then will Currently from database as new primary database, to complete the handover operation of master-slave database.
The storage system of data mode according to embodiments of the present invention is monitoring some High Availabitity by High Availabitity node When client has abnormal, the communication connection between the High Availabitity client and High Availabitity client is cut off, and it is high by other Database realizing in available client end operates the data state info in block chain data, in this way, ensureing the node In at least one database can realize the data state info in block chain data is operated, improve in node The high availability of data mode storage system, and then utilize the data mode in the data mode storage system of the embodiment of the present invention Realization operates block chain data.
In order to realize above-described embodiment, the invention also provides a kind of data mode storage methods of storage system.
Fig. 4 is the flow chart of the data mode storage method of storage system according to an embodiment of the invention.It needs Storage system bright, that the data mode storage method of the embodiment of the present invention can be used for described in any of the above-described a embodiment of the present invention In system.Wherein, which can be applied in each node in block chain, which includes multiple databases, height Enabled node and data management module, wherein, a High Availabitity client is disposed on each database.
As shown in figure 4, the data mode storage method can include:
S410, each High Availabitity client send database corresponding with each High Availabitity client to data management module Heart beat status.
S420, recording distance receives the last feedback heart beat status of each High Availabitity client to data management module respectively When time, and be more than default judging that distance receives time when once feeding back heart beat status in target High Availabitity client During the time, adjustment is for the data mode storage strategy of target High Availabitity client.
S430, High Availabitity node are listening to data mode of the data management module adjustment for target High Availabitity client During storage strategy, the communication connection between target High Availabitity client and data management module is cut off, and to target High Availabitity visitor Family end carries out abnormality detection.
In order to further improve the high availability of data mode storage system, optionally, in one embodiment of the present of invention In, each database includes primary database and from database, and primary database is used to indicate the database being being currently used, from Database is used to indicate the database to replace when primary database breaks down.Wherein, in an embodiment of the present invention, such as Shown in Fig. 5, which may also include:
S510 when communication of the target High Availabitity client at High Availabitity nodal test target available client end is normal, judges Current primary database breaks down, and machine operation of delaying is carried out to current primary database, and is directed to and works as to data management module feedback The fault status information of preceding primary database.
S520, data management module send a notification message when receiving fault status information to High Availabitity node.
S530, High Availabitity node recheck the current primary database of failure when receiving notification information, and New primary database will be currently switched to from database.
Optionally, in one embodiment of the invention, High Availabitity node is multiple, each High Availabitity node respectively with number It is connected according to management module with each High Availabitity client.Wherein, in an embodiment of the present invention, the data mode storage method is also Including:Data management module chooses one to carrying out disaster tolerance processing between multiple High Availabitity nodes from multiple High Availabitity nodes A High Availabitity node switches over master-slave database operation.
Data mode storage method according to embodiments of the present invention is monitoring some High Availabitity visitor by High Availabitity node When family end has abnormal, cut off the communication connection between the High Availabitity client and High Availabitity client, and pass through other height can The data state info in block chain data is operated with the database realizing in client, in this way, ensureing in the node At least one database, which can be realized, operates the data state info in block chain data, improves the number in node According to the high availability of state storage system, so it is real using the data mode in the data mode storage system of the embodiment of the present invention Now block chain data are operated.
The invention also provides the node data processing systems in a kind of block chain.
Fig. 6 is the structure diagram of the node data processing system in block chain according to an embodiment of the invention.Such as Shown in Fig. 6, the node data processing system 600 in the block chain can include:Storage system 200, the number of deals of data mode According to logging modle 610 and intelligence and about 620.Wherein, in an embodiment of the present invention, the storage system 200 of data mode can be The storage system of data mode described in any of the above-described a embodiment of the present invention.
Specifically, transaction data record module 610 is used to record the transaction data of block chain.
Intelligence and about 620 obtains and the corresponding operand of data reading operation instruction for initiating data reading operation instruction According to major key, and corresponding with major key data state info is inquired about from the storage system 200 of data mode, and according to data shape State information searches corresponding data from the transaction data of block chain.
The storage system 200 of data mode is used for memory block chain required data state info in process of exchange. Wherein, other functions description of the storage system 200 of data mode can be found in the above-mentioned Fig. 2 of the present invention and embodiment illustrated in fig. 3 The function description of storage system 200, details are not described herein.
Node data processing system in block chain according to embodiments of the present invention passes through the High Availabitity section in each node Point is cut off logical between the High Availabitity client and High Availabitity client when monitoring that some High Availabitity client has abnormal Letter connection, and pass through the database realizing in other High Availabitity clients and the data state info in block chain data is grasped Make, in this way, ensureing that at least one database can be realized to the data state info progress in block chain data in the node Operation improves the high availability of the data mode storage system in node, and then utilizes the data mode of the embodiment of the present invention Data mode realization in storage system operates block chain data.
In order to realize above-described embodiment, the invention also provides the node data processing methods in a kind of block chain.
Fig. 7 is the flow chart of the node data processing method in block chain according to an embodiment of the invention.It needs Bright, the node data processing method of the embodiment of the present invention can be applied to the node data in the block chain of the embodiment of the present invention In processing system.Wherein, the node data processing method of the embodiment of the present invention can be from the intelligence in node data processing system Contract side is described.
As shown in fig. 7, the node data processing method in the block chain can include:
S710 is detecting that initiation data reading operation instructs when currently triggering read operation event for data.
S720 obtains the first major key information with the corresponding operation data of data reading operation instruction.
S730 inquires about the first data state info corresponding with the first major key information from the storage system of data mode. Wherein, the storage system of the data mode can be the storage system described in any of the above-described a embodiment of the present invention.Wherein, data shape Other functions description of the storage system of state can be found in the work(of the storage system 200 of the above-mentioned Fig. 2 of the present invention and embodiment illustrated in fig. 3 It can describe, details are not described herein.
S740 searches corresponding data according to the first data state info from the transaction data of block chain.
Thus, it is possible to the read operation of block chain data can be completed according to data state info.
Optionally, in one embodiment of the invention, as shown in figure 8, node data processing method in the block chain It may also include:
S810 is detecting that initiation data write operation instructs when currently triggering write operation event for data;
S820 obtains the second major key information with the corresponding operation data of data write operation instruction;
S830 inquires about the second data state info corresponding with the second major key information from the storage system of data mode;
S840 is write data into according to the second data mode in the storage system of block chain data and data mode.
Thus, it is possible to the write operation of block chain data can be completed according to data state info.
Node data processing method in block chain according to embodiments of the present invention passes through the High Availabitity section in each node Point is cut off logical between the High Availabitity client and High Availabitity client when monitoring that some High Availabitity client has abnormal Letter connection, and pass through the database realizing in other High Availabitity clients and the data state info in block chain data is grasped Make, in this way, ensureing that at least one database can be realized to the data state info progress in block chain data in the node Operation improves the high availability of the data mode storage system in node, and then utilizes the data mode of the embodiment of the present invention Data mode realization in storage system operates block chain data.
In the description of the present invention, it is to be understood that term " first ", " second " are only used for description purpose, and cannot It is interpreted as indicating or implies relative importance or imply the quantity of the technical characteristic indicated by indicating.Define as a result, " the One ", at least one this feature can be expressed or be implicitly included to the feature of " second ".In the description of the present invention, " multiple " It is meant that at least two, such as two, three etc., unless otherwise specifically defined.
In the present invention, unless otherwise clearly defined and limited, term " installation ", " connected ", " connection ", " fixation " etc. Term should be interpreted broadly, for example, it may be being fixedly connected or being detachably connected or integral;Can be that machinery connects It connects or is electrically connected;It can be directly connected, can also be indirectly connected by intermediary, can be in two elements The connection in portion or the interaction relationship of two elements, unless otherwise restricted clearly.For those of ordinary skill in the art For, the concrete meaning of above-mentioned term in the present invention can be understood as the case may be.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment of the present invention or example.In the present specification, schematic expression of the above terms is not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It is combined in an appropriate manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this field Art personnel can tie the different embodiments described in this specification or example and different embodiments or exemplary feature It closes and combines.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include Module, segment or the portion of the code of the executable instruction of one or more the step of being used to implement specific logical function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction Row system, device or equipment instruction fetch and the system executed instruction) it uses or combines these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment It puts.The more specific example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Connecting portion (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or if necessary with it His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage Or firmware is realized.If for example, with hardware come realize in another embodiment, can be under well known in the art Any one of row technology or their combination are realized:With for the logic gates to data-signal realization logic function Discrete logic, have suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, one or a combination set of the step of including embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, it can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould The form that hardware had both may be employed in block is realized, can also be realized in the form of software function module.The integrated module is such as Fruit is realized in the form of software function module and is independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although it has been shown and retouches above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, those of ordinary skill in the art can be changed above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (10)

  1. A kind of 1. storage system of data mode, which is characterized in that each node of the storage system applications in block chain In, the storage system includes:Multiple databases, High Availabitity node and data management module, wherein,
    A High Availabitity client is disposed on each database, each High Availabitity client is used to send out to the data management module Send the heart beat status of database corresponding with each High Availabitity client;
    The data management module receives the last feedback heart beat status of each High Availabitity client for recording distance respectively When time, and be more than default judging that distance receives time when once feeding back heart beat status in target High Availabitity client During the time, adjustment is for the data mode storage strategy of the target High Availabitity client;
    The High Availabitity node for monitoring the situation of change of the data management module, and is listening to the data management When module adjustment is directed to the data mode storage strategy of the target High Availabitity client, the target High Availabitity client is cut off With the communication connection between the data management module, and the target High Availabitity client is carried out abnormality detection.
  2. 2. the system as claimed in claim 1, which is characterized in that each database includes primary database and from data Storehouse, the primary database is used to indicate the database being being currently used, described to be used to indicate from database in the master data Database when storehouse is broken down to replace;Wherein,
    The target High Availabitity client is normal for the communication at target available client end described in the High Availabitity nodal test When, judge that the current primary database in the target High Availabitity client breaks down, and the current primary database is carried out Machine of delaying operates, and to data management module feedback for the fault status information of the current primary database;
    The data management module is additionally operable to when receiving the fault status information, is sent to the High Availabitity node logical Know message;
    The High Availabitity node, is additionally operable to when receiving the notification information, and the current primary database of failure is carried out It rechecks, and new primary database is currently switched to from database by described.
  3. 3. system as claimed in claim 1 or 2, which is characterized in that the High Availabitity node is multiple, each High Availabitity node It is connected respectively with the data management module and each High Availabitity client;Wherein,
    The data management module is additionally operable to carrying out disaster tolerance processing between multiple High Availabitity nodes, and can from the multiple height Operation is switched over to master-slave database with a High Availabitity node is chosen in node.
  4. 4. the system as claimed in claim 1, which is characterized in that the High Availabitity node is 2.
  5. 5. a kind of node data processing system in block chain, which is characterized in that including:Such as any one of claims 1 to 4 institute Storage system, transaction data record module and the intelligent contract for the data mode stated, wherein,
    The transaction data record module, for recording the transaction data of block chain;
    The intelligence contract, for initiating data reading operation instruction, and obtains and the corresponding operation of data reading operation instruction The major key of data, and data state info corresponding with the major key is inquired about from the storage system of data mode, and according to institute It states data state info and searches corresponding data from the transaction data of the block chain;
    The storage system of the data mode, for memory block chain in process of exchange required data state info.
  6. 6. the data mode storage method of a kind of storage system, which is characterized in that the storage system applications are in block chain In each node, the storage system includes multiple databases, High Availabitity node and data management module, wherein, each data A High Availabitity client is disposed on storehouse, wherein, the storage method includes:
    Each High Availabitity client sends database corresponding with each High Availabitity client to the data management module Heart beat status;
    The data management module is when recording distance receives each High Availabitity client last feedback heart beat status respectively Time, and judging that the time that distance receives when once feeding back heart beat status in target High Availabitity client is more than preset time When, adjustment is for the data mode storage strategy of the target High Availabitity client;
    The High Availabitity node is listening to data of the data management module adjustment for the target High Availabitity client During state storage strategy, the communication connection between the target High Availabitity client and the data management module is cut off, and it is right The target High Availabitity client carries out abnormality detection.
  7. 7. method as claimed in claim 6, which is characterized in that each database includes primary database and from data Storehouse, the primary database is used to indicate the database being being currently used, described to be used to indicate from database in the master data Database when storehouse is broken down to replace;Wherein, the method further includes:
    When communication of the target High Availabitity client at target available client end described in the High Availabitity nodal test is normal, sentence Settled preceding primary database breaks down, and machine operation of delaying is carried out to the current primary database, and to the data management module Feedback is for the fault status information of the current primary database;
    The data management module sends a notification message when receiving the fault status information to the High Availabitity node;
    The High Availabitity node rechecks the current primary database of failure when receiving the notification information, and New primary database is currently switched to from database by described.
  8. 8. method as claimed in claims 6 or 7, which is characterized in that the High Availabitity node is multiple, each High Availabitity node It is connected respectively with the data management module and each High Availabitity client;Wherein, the method further includes:
    The data management module is to carrying out disaster tolerance processing between multiple High Availabitity nodes, and from the multiple High Availabitity node It chooses a High Availabitity node and operation is switched over to master-slave database.
  9. 9. a kind of node data processing method in block chain, which is characterized in that including:
    Detecting that initiation data reading operation instructs when currently triggering read operation event for data;
    Obtain the first major key information with the corresponding operation data of data reading operation instruction;
    The first data state info corresponding with the first major key information is inquired about from the storage system of data mode, wherein, The storage system of the data mode is storage system according to any one of claims 1 to 4;
    Corresponding data are searched from the transaction data of the block chain according to first data state info.
  10. 10. method as claimed in claim 9, which is characterized in that further include:
    Detecting that initiation data write operation instructs when currently triggering write operation event for data;
    Obtain the second major key information with the corresponding operation data of data write operation instruction;
    The second data state info corresponding with the second major key information is inquired about from the storage system of the data mode;Root It is write data into according to second data mode in the storage system of block chain data and the data mode.
CN201711347754.4A 2017-12-15 2017-12-15 Storage system of data state, node data processing system and method of block chain Active CN108052620B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711347754.4A CN108052620B (en) 2017-12-15 2017-12-15 Storage system of data state, node data processing system and method of block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711347754.4A CN108052620B (en) 2017-12-15 2017-12-15 Storage system of data state, node data processing system and method of block chain

Publications (2)

Publication Number Publication Date
CN108052620A true CN108052620A (en) 2018-05-18
CN108052620B CN108052620B (en) 2021-02-12

Family

ID=62132598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711347754.4A Active CN108052620B (en) 2017-12-15 2017-12-15 Storage system of data state, node data processing system and method of block chain

Country Status (1)

Country Link
CN (1) CN108052620B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108768787A (en) * 2018-06-25 2018-11-06 中国联合网络通信集团有限公司 A kind of block chain node motivational techniques and device
CN109035018A (en) * 2018-07-11 2018-12-18 中链科技有限公司 The data record statistical method and device of intelligent contract in a kind of block chain
CN109145164A (en) * 2018-08-28 2019-01-04 百度在线网络技术(北京)有限公司 Data processing method, device, equipment and medium
CN109145625A (en) * 2018-08-31 2019-01-04 阿里巴巴集团控股有限公司 Processing method, device and the block chain data-storage system of policy information
CN109165122A (en) * 2018-08-13 2019-01-08 浙商银行股份有限公司 A method of the application system realized based on block chain technology is promoted with the more garden deployment calamities in city for ability
CN109299195A (en) * 2018-10-23 2019-02-01 杭州能链科技有限公司 Data processing method, device and storage medium
CN109446259A (en) * 2018-10-24 2019-03-08 北京慧流科技有限公司 Data processing method and device, processor and storage medium
CN109639751A (en) * 2018-10-16 2019-04-16 平安科技(深圳)有限公司 Block chain node monitoring method, device, system and computer storage medium
CN110098979A (en) * 2019-04-16 2019-08-06 深圳前海微众银行股份有限公司 A kind of short link message monitor method and device based on block chain
EP3812943A4 (en) * 2018-12-20 2022-01-05 Advanced New Technologies Co., Ltd. Data reading and writing method and device, and electronic apparatus

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1024428A2 (en) * 1999-01-29 2000-08-02 International Business Machines Corporation Managing a clustered computer system
CN103064860A (en) * 2011-10-21 2013-04-24 阿里巴巴集团控股有限公司 Database high availability implementation method and device
CN106682528A (en) * 2016-12-31 2017-05-17 杭州复杂美科技有限公司 Blockchain encryption retrieval scheme
CN106874440A (en) * 2017-02-07 2017-06-20 杭州秘猿科技有限公司 A kind of block chain state storage method based on SQL database
CN106874393A (en) * 2017-01-13 2017-06-20 北京众享比特科技有限公司 Synchronizing traffic data method and system, Database Systems based on block chain
CN107273556A (en) * 2017-08-23 2017-10-20 上海点融信息科技有限责任公司 Block chain data index method and equipment
CN107317672A (en) * 2017-05-10 2017-11-03 广东网金控股股份有限公司 A kind of light weight terminating machine block catenary system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1024428A2 (en) * 1999-01-29 2000-08-02 International Business Machines Corporation Managing a clustered computer system
CN103064860A (en) * 2011-10-21 2013-04-24 阿里巴巴集团控股有限公司 Database high availability implementation method and device
CN106682528A (en) * 2016-12-31 2017-05-17 杭州复杂美科技有限公司 Blockchain encryption retrieval scheme
CN106874393A (en) * 2017-01-13 2017-06-20 北京众享比特科技有限公司 Synchronizing traffic data method and system, Database Systems based on block chain
CN106874440A (en) * 2017-02-07 2017-06-20 杭州秘猿科技有限公司 A kind of block chain state storage method based on SQL database
CN107317672A (en) * 2017-05-10 2017-11-03 广东网金控股股份有限公司 A kind of light weight terminating machine block catenary system
CN107273556A (en) * 2017-08-23 2017-10-20 上海点融信息科技有限责任公司 Block chain data index method and equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
散尽浮华: "Heartbeat基础知识", 《HTTPS://WWW.CNBLOGS.COM/KEVINGRACE/P/6249028.HTML》 *
阿聪: "Heartbeat 简介和原理", 《HTTPS://WWW.JIANSHU.COM/P/0E034BD16E96》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108768787A (en) * 2018-06-25 2018-11-06 中国联合网络通信集团有限公司 A kind of block chain node motivational techniques and device
CN108768787B (en) * 2018-06-25 2020-10-02 中国联合网络通信集团有限公司 Block link point excitation method and device
CN109035018A (en) * 2018-07-11 2018-12-18 中链科技有限公司 The data record statistical method and device of intelligent contract in a kind of block chain
CN109165122A (en) * 2018-08-13 2019-01-08 浙商银行股份有限公司 A method of the application system realized based on block chain technology is promoted with the more garden deployment calamities in city for ability
CN109145164A (en) * 2018-08-28 2019-01-04 百度在线网络技术(北京)有限公司 Data processing method, device, equipment and medium
CN109145625A (en) * 2018-08-31 2019-01-04 阿里巴巴集团控股有限公司 Processing method, device and the block chain data-storage system of policy information
CN109639751A (en) * 2018-10-16 2019-04-16 平安科技(深圳)有限公司 Block chain node monitoring method, device, system and computer storage medium
CN109639751B (en) * 2018-10-16 2021-12-21 平安科技(深圳)有限公司 Block chain link point monitoring method, device and system and computer storage medium
CN109299195A (en) * 2018-10-23 2019-02-01 杭州能链科技有限公司 Data processing method, device and storage medium
CN109446259A (en) * 2018-10-24 2019-03-08 北京慧流科技有限公司 Data processing method and device, processor and storage medium
EP3812943A4 (en) * 2018-12-20 2022-01-05 Advanced New Technologies Co., Ltd. Data reading and writing method and device, and electronic apparatus
CN110098979A (en) * 2019-04-16 2019-08-06 深圳前海微众银行股份有限公司 A kind of short link message monitor method and device based on block chain

Also Published As

Publication number Publication date
CN108052620B (en) 2021-02-12

Similar Documents

Publication Publication Date Title
CN108052620A (en) The storage system of data mode, the node data processing system of block chain and method
US10853812B2 (en) Blockchain transaction safety
US7539746B2 (en) Highly available transaction failure detection and recovery for electronic commerce transactions
US20200349639A1 (en) Computer systems, computer-implemented methods, and computer devices for processing a transaction message
TWI361595B (en) Pool-based network diagnostic systems and methods
US7137042B2 (en) Heartbeat apparatus via remote mirroring link on multi-site and method of using same
US8010654B2 (en) Method, system and program product for monitoring resources servicing a business transaction
US7551073B2 (en) Method, system and program product for alerting an information technology support organization of a security event
CN105335448B (en) Data storage based on distributed environment and processing system
CN109993546A (en) A kind of drug traceability system and implementation method based on RFID and block chain
US7925607B2 (en) Transaction data processing system
CN106953758A (en) A kind of dynamic allocation management method and system based on Nginx servers
CN108520464A (en) A kind of real-time automation supervision reporting system based on traditional block chain
CN105373899A (en) Server asset management method and apparatus
US8443078B2 (en) Method of determining equivalent subsets of agents to gather information for a fabric
JPH11143738A (en) Supervisory method of computer system
CN109981587A (en) A kind of network security monitoring traceability system based on APT attack
CN106651463A (en) Financial institution service access system and access method
CN107123046A (en) The processing system and its log processing method merchandised based on bond
CN109815725B (en) System and method for realizing data safety processing
US11888729B2 (en) Smart routing
JP7089553B2 (en) Network bridge for local transaction authorization
Quinn et al. Process mining is an underutilized clinical research tool in transfusion medicine
JP2012168907A (en) Mutual monitoring system
US6798780B1 (en) Techniques for achieving high responsiveness from communicating nodes, and verifying, measuring and deterring any unresponsiveness thereof

Legal Events

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