CN103365746A - Synchronizing method, device and system - Google Patents

Synchronizing method, device and system Download PDF

Info

Publication number
CN103365746A
CN103365746A CN2013102771911A CN201310277191A CN103365746A CN 103365746 A CN103365746 A CN 103365746A CN 2013102771911 A CN2013102771911 A CN 2013102771911A CN 201310277191 A CN201310277191 A CN 201310277191A CN 103365746 A CN103365746 A CN 103365746A
Authority
CN
China
Prior art keywords
operational order
main frame
standby host
corresponding data
host
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
CN2013102771911A
Other languages
Chinese (zh)
Other versions
CN103365746B (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.)
XFusion Digital Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310277191.1A priority Critical patent/CN103365746B/en
Publication of CN103365746A publication Critical patent/CN103365746A/en
Application granted granted Critical
Publication of CN103365746B publication Critical patent/CN103365746B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a synchronizing method, a synchronizing device and a synchronizing system, relates to the field of computers, and solves the problem that in the synchronizing process of a host computer and a backup computer, the volume of synchronized data is large, which reduces the reliability and the operability of the system. The synchronizing method comprises the following specific steps: the host computer acquires an operational order, operates corresponding data of the operational order in the host computer according to the operational order, and sends the operational order to the backup computer; the backup computer receives the operational order sent by the host computer and operates corresponding data of the operational order in the backup computer according to the operational order. The synchronizing method, the synchronizing device and the synchronizing system are used for synchronizing the host computer and the backup computer.

Description

A kind of method for synchronous, equipment and system
Technical field
The present invention relates to computer realm, relate in particular to a kind of method for synchronous, equipment and system.
Background technology
Along with the technical development of server field, the outband management system has become indispensable ingredient in the whole system, and in order to guarantee the availability of management system, industry has all adopted the backup scenario of active and standby " 1+1 " to management server at present.In active and standby technology, how to guarantee that main frame and standby host are consistent with state on data, it is the problem of a key, particularly in the server field, management server is being born the state analysis of whole system and the function of monitoring, such analysis needs the historical data of frame of reference, if have main frame and the inconsistent problem of standby host data, to cause uncertain to the system state analysis and prediction, can greatly reduce like this RAS (Reliability of whole system, Availability, Stability, reliability, availability, stability) characteristic.
Main frame of the prior art and standby host method for synchronous are that file synchronization and internal memory are synchronous, and wherein file synchronization comprises configuration file synchronously and cycle synchronisation.For after Hosts file is operated, the configuration file after main frame will be operated is synchronized to standby host to configuration file synchronously; Cycle synchronisation is that for example one minute, the configuration file after main frame is operated all was synchronized to standby host every the cycle that sets.Internal memory is synchronized to the data message of safeguarding in the internal memory on the standby host for main frame synchronously, and standby host stores synchronous data into the internal memory of appointment.The operation of an option in such method of synchronization in the configuration file, need main frame and standby host to carry out the synchronous of whole configuration file, the perhaps operation of a data message in the internal memory, need main frame and standby host to carry out the synchronous of corresponding all data modules, can cause some unnecessary data also to carry out synchronously, namely excessive synchronous.
State in realization in the synchronous process of main frame and standby host, the inventor finds that there are the following problems at least in the prior art: main frame and standby host carry out synchronously in exist excessive synchronously, when main frame and standby host are synchronous, need a large amount of data of transmission, increase the workload of system, reduced reliability and the operability of system.
Summary of the invention
Embodiments of the invention provide a kind of method for synchronous, equipment and system, have reduced data volume synchronous between main frame and standby host, have improved reliability and the operability of system.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect provides a kind of method for synchronous, it is characterized in that:
Main frame obtains operational order;
Described main frame operates described operational order corresponding data in described main frame according to described operational order;
Described main frame is sent to standby host with described operational order.
In conjunction with the described method for synchronous of first aspect, in the possible implementation of the first, described main frame operates described operational order corresponding data in described main frame according to described operational order, specifically comprises:
The request queue of described main frame put into described operational order by described main frame;
Described main frame puts in order according to operational order described in the described request formation, one by one described operational order corresponding data in described main frame is operated.
In conjunction with the described method for synchronous of first aspect, at main frame described in the possible implementation of the second described operational order is sent to standby host, specifically comprise:
The operation queue of described main frame put into described operational order by described main frame;
Described main frame is sent to standby host successively with the operational order in the operation queue of described main frame.
In conjunction with first aspect, implementation and the possible described method for synchronous of implementation of the second that the first is possible, in the third possible implementation, described main frame obtains after the operational order, comprising:
Described main frame is classified to described operational order according to the content of described operational order;
Described main frame operates described operational order corresponding data in described main frame according to described operational order, specifically comprises:
Described main frame obtains the operation-interface corresponding to class categories of described operational order according to the class categories of described operational order, and the operation-interface corresponding according to the class categories of described operational order operates described operational order corresponding data in described main frame.
In conjunction with the described method for synchronous of the third possible implementation, in the 4th kind of possible implementation, the class categories of operational order comprises: increase, delete, revise and search.
Second aspect provides a kind of method for synchronous:
The operational order that the standby host Receiving Host sends, described operational order is the operational order that described main frame is put into the operation queue of described main frame, wherein said main frame operates described operational order corresponding data in described main frame according to described operational order;
Described standby host operates described operational order corresponding data in described standby host according to described operational order.
In conjunction with the described method for synchronous of second aspect, in the possible implementation of the first, the operational order that described standby host Receiving Host sends specifically comprises:
Described standby host receives the operational order that described main frame sends;
Described standby host is put into described operational order the operation queue of described standby host successively according to the order that receives described operational order.
In conjunction with the described method for synchronous of second aspect, in the possible implementation of the second, described standby host operates described operational order corresponding data in described standby host according to described operational order, specifically comprises:
Described standby host is put into the operational order in the operation queue of described standby host the request queue of described standby host successively;
Described standby host puts in order according to the operational order of standby host described in the described request formation, one by one described operational order corresponding data in described standby host is operated.
In conjunction with second aspect, implementation and the possible described method for synchronous of implementation of the second that the first is possible, in the third possible implementation, after the operational order that described standby host Receiving Host sends, comprising:
Described standby host is classified to described operational order according to the content of described operational order;
Described standby host operates described operational order corresponding data in described standby host according to described operational order, specifically comprises:
Described standby host obtains the operation-interface corresponding to class categories of described operational order according to the class categories of described operational order, and the operation-interface corresponding according to the class categories of described operational order operates described operational order corresponding data in described standby host.
In conjunction with the described method for synchronous of the third possible implementation, in the 4th kind of possible implementation, the class categories of operational order comprises: increase, delete, revise and search.
In conjunction with second aspect, the first, the second, the third and the 4th kind of described method for synchronous of possible implementation, in the 5th kind of possible implementation, the operational order that described standby host Receiving Host sends also comprises:
Described standby host is inquired about the operation conversion table that described standby host stores according to the described operational order that described main frame sends, and obtains Query Result;
Described standby host is converted to the object run instruction according to the result of described inquiry with described operational order, so that described standby host operates described operational order corresponding data in described standby host according to described object run instruction;
Wherein, described operation conversion table comprises the described operational order of main frame transmission and the mapping relations of object run instruction.
The third aspect provides a kind of main frame, comprising: control module and synchronization module;
Described control module is used for obtaining operational order, according to described operational order described operational order corresponding data in described main frame is operated, and described operational order is sent to described synchronization module;
Described synchronization module is used for receiving the described operational order that described control module sends, and described operational order is sent to standby host.
In conjunction with the described main frame of the third aspect, in the possible implementation of the first, described control module comprises: scheduling unit and performance element;
Described scheduling unit is used for obtaining described operational order, the request queue of described operational order being put into described main frame;
Described performance element is used for one by one described operational order corresponding data in described main frame being operated, and described operational order being sent to described synchronization module according to the putting in order of operational order described in the described request formation.
In conjunction with the described main frame of the third aspect, in the possible implementation of the second, described synchronization module comprises: administrative unit and lock unit;
Described administrative unit is used for receiving the described operational order that described control module sends, and described operational order is put into the operation queue of described main frame;
Described lock unit is used for the operational order of the operation queue of described main frame is sent to standby host successively.
In conjunction with the third aspect, implementation and the possible described main frame of implementation of the second that the first is possible, in the third possible implementation, it is characterized in that described control module also comprises taxon, described sorted operational order is sent to described performance element;
Described taxon is used for according to the content of described operational order described operational order being classified;
Described performance element also is used for receiving the operational order that described taxon sends, and obtaining the operation-interface corresponding to class categories of described operational order according to the class categories of described operational order, the operation-interface corresponding according to the class categories of described operational order operates described operational order corresponding data in described main frame.
In conjunction with the described main frame of the third possible implementation, in the 4th kind of possible implementation:
The class categories of operational order comprises: increase, delete, revise and search.
Fourth aspect provides a kind of standby host, comprising: synchronization module and control module;
Described synchronization module is used for the operational order that Receiving Host sends, and described operational order is sent to described control module, described operational order is the operational order that described main frame is put into the operation queue of described main frame, and wherein said main frame operates described operational order corresponding data in described main frame according to described operational order;
Described control module is used for receiving the described operational order that described synchronization module sends, and according to described operational order described operational order corresponding data in described standby host is operated.
In conjunction with the described standby host of fourth aspect, in the possible implementation of the first, described synchronization module comprises: administrative unit and lock unit;
Described lock unit is used for receiving the operational order that described main frame sends;
The order that described administrative unit is used for receiving described operational order according to described lock unit is put into the operation queue of described standby host successively with described operational order, and the operational order in the operation queue of described standby host is sent to described control module successively.
In conjunction with the described standby host of fourth aspect, in the possible implementation of the second, described control module comprises: scheduling unit and performance element;
Described scheduling unit is used for request queue that the operational order of the operation queue of described standby host is put into described standby host successively;
Described performance element is used for one by one described operational order corresponding data in described standby host being operated according to the putting in order of operational order described in the request queue of described standby host.
In conjunction with fourth aspect, implementation and the possible described standby host of implementation of the second that the first is possible, in the third possible implementation, described control module also comprises taxon:
Described taxon is used for according to the content of described operational order described operational order being classified, and described sorted operational order is sent to described performance element;
Described performance element also is used for receiving the operational order that described taxon sends, and obtaining the operation-interface corresponding to class categories of described operational order according to the class categories of described operational order, the operation-interface corresponding according to the class categories of described operational order operates described operational order corresponding data in described standby host.
In conjunction with the described standby host of the third possible implementation, in the 4th kind of possible implementation:
The class categories of operational order comprises: increase, delete, revise and search.
In conjunction with fourth aspect, the first, the second, the third and the 4th kind of possible implementation, in the 5th kind of possible implementation, described synchronization module also comprises query unit and converting unit;
Described query unit is used for obtaining the operational order that described lock unit receives, and according to the described operational order that described main frame sends, inquires about the operation conversion table that described standby host stores, and obtains Query Result, and described Query Result is sent to described converting unit;
Described converting unit is used for receiving the described Query Result that described query unit sends, and according to the result of described inquiry, described operational order is converted to the object run instruction;
Described converting unit also is used for described object run instruction is sent to described administrative unit, so that described standby host operates described operational order corresponding data in described standby host according to described object run instruction;
Wherein, described operation conversion table comprises the described operational order of main frame transmission and the mapping relations of object run instruction.
The 5th aspect provides a kind of synchro system, it is characterized in that, comprises main frame and standby host, and wherein said main frame is above-mentioned main frame, and described standby host is above-mentioned standby host.
The method for synchronous that the embodiment of the invention provides, equipment and system, be sent to standby host by the operational order that main frame is carried out, standby host carry out operational order that main frame sends realize between main frame and the standby host synchronously, reduce data volume synchronous between main frame and standby host, improved reliability and the operability of system.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art.
A kind of method for synchronous synoptic diagram that Fig. 1 provides for embodiments of the invention;
The another kind of method for synchronous synoptic diagram that Fig. 2 provides for embodiments of the invention;
Another method for synchronous synoptic diagram that Fig. 3 provides for embodiments of the invention;
A kind of method for synchronous structural representation that Fig. 4 provides for embodiments of the invention;
The schematic flow sheet of a kind of method for synchronous that Fig. 5 provides for embodiments of the invention;
Another schematic flow sheet of a kind of method for synchronous that Fig. 6 provides for embodiments of the invention;
A kind of main machine structure synoptic diagram that Fig. 7 provides for embodiments of the invention;
The another kind of main machine structure synoptic diagram that Fig. 8 provides for embodiments of the invention;
A kind of standby host structural representation that Fig. 9 provides for embodiments of the invention;
The another kind of standby host structural representation that Figure 10 provides for embodiments of the invention;
A kind of main machine structure synoptic diagram that Figure 11 provides for another embodiment of the present invention;
A kind of standby host structural representation that Figure 12 provides for another embodiment of the present invention;
The structural representation of a kind of synchro system that Figure 13 provides for embodiments of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.
Embodiments of the invention provide a kind of method for synchronous, equipment and system, be applied to realize in the management system that main frame and standby host carry out synchronously, main frame and standby host are consistent in data and state, wherein, main frame can be the main service processor of management server, and standby host can be the standby service processor of management server.Concrete, embodiments of the invention provide a kind of method for synchronous, with reference to shown in Figure 1, are applied to main frame, comprising:
101, main frame obtains operational order.
Wherein, the main frame mode of obtaining operational order has two kinds:
First kind of way is external request, and namely other devices operate main frame, and external devices transmit operation instruction is to main frame, and external request can change the configuration of main frame;
The second way is internal request, and namely main frame itself operates main frame, the inner operational order that produces of main frame, and internal request can change the state of main frame.
102, main frame operates this operational order corresponding data in main frame according to operational order.
103, main frame is sent to standby host with this operational order.
Standby host operates according to this operational order after receiving the operational order of main frame transmission, and is identical with main frame with state with the configuration that guarantees standby host.
Embodiments of the invention also provide a kind of method for synchronous, with reference to shown in Figure 2, are applied to standby host, comprising:
201, the operational order of standby host Receiving Host transmission.
Wherein, this operational order is the operational order that main frame is put into the operation queue of main frame, and namely this operational order is the operation that main frame has been carried out or carried out, to guarantee that standby host has carried out identical operation with main frame.
202, standby host operates this operational order corresponding data in standby host according to operational order.
At this moment, standby host has all been carried out identical operation with main frame, and the configuration of standby host is identical with main frame with state, has finished the synchronous of main frame and standby host.
The method for synchronous that embodiments of the invention provide, be sent to standby host by the operational order that main frame is carried out, standby host carry out operational order that main frame sends realize between main frame and the standby host synchronously, reduced data volume synchronous between main frame and standby host, improved reliability and the operability of system.
Optionally, embodiments of the invention also provide another kind of method for synchronous, with reference to Fig. 3 and shown in Figure 4, comprising:
301, main frame obtains operational order.
The operational order that main frame obtains comprises external request and two sources of internal request, and a kind of data structure that will ask the sequencing of the operational order that produces provided herein is as follows:
Figure BDA00003458205000081
Figure BDA00003458205000091
In the data structure of the operational order of above-mentioned sequencing, comprised source (the unsigned char op_src of request; ), the request type (unsigned char op_type; ), the request operand (DATA_TYPE op_object; ), request needs the data (void*data of operation; ) and request need length (the int data_l en of the data of operation; ), thereby external request and internal request are converted into main frame and the executable operational order of standby host.
302, the request queue of main frame put into this operational order by main frame.
303, main frame operates operational order corresponding data in main frame one by one, and this operational order is put into the operation queue of main frame according to the putting in order of operational order in the request queue.
Main frame forms worker thread according to the particular content of operational order to an operational order, the corresponding data of operational order is operated, and this operational order is put into operation queue.
Optionally, after step 301, main frame obtained operational order, main frame was according to the content of operational order, namely according to unsigned char op_type in the data structure of the operational order of said procedure; The data of statement, operational order is classified, obtain the operation-interface corresponding to class categories of operational order according to the class categories of operational order, the operation-interface corresponding according to the class categories of operational order operates operational order corresponding data in main frame, can improve main frame to the operating speed of data.Wherein, the classification of operational order can for: increase, delete, revise and search four classes, also can be other classifications, provided herein to increasing, delete, revise and search the data structure of the program language that the operation-interface of four generic operation instructions defines, as follows:
Figure BDA00003458205000092
Figure BDA00003458205000101
Above-mentioned definition increases, deletes, revises and searches the data structure of program language of the operation-interface of four generic operation instructions, defined the operation-interface of the inner dissimilar operational order of main frame, by different operation-interfaces, main frame can find the module that different classes of operational order is operated more fast, makes things convenient for main frame that data are operated.
Optionally, consistance for the order that guarantees host service function and main frame and standby host operation, main frame can be carried out operational order in the request queue of main frame according to the order of operational order in the request queue of main frame, finish successively the operation to the corresponding data of main frame, concrete, step 303 with reference to shown in Figure 5, comprising:
303a, main frame take out the operational order in the request queue of main frame successively.
Whether 303b, Host Detection are carried out lock and are released, and when the execution lock was not released, whether the main frame continuation detected to carry out to lock and be released.
When Host Detection is released to the execution lock, 302c, main frame is locked into the row locking to execution.
303d, main frame operate data corresponding to this operational order.
The operation queue of main frame put into this operational order by 303e, main frame.
303f, main frame discharge carries out lock.
In step 303a-303f, main frame is by carrying out the state of lock, whether the operation of judging a upper operational order is complete, when having operational order to be performed, main frame can be locked into this row locking, thereby next operation will get clogged, when the operation of an operational order is complete, main frame discharges carries out lock, carries out next operational order, has guaranteed the order of host service function and the consistance of main frame and standby host operation.
Wherein, step 303e can carry out simultaneously with step 303d, also can carry out after step 303d finishes, namely main frame can be put into operation queue with operational order when data are operated, and also can operational order be put into operation queue after finishing in that data are operated.
304, main frame is sent to standby host successively with the operational order in the operation queue of main frame.
Wherein, keep a synchronizing thread on the main frame, guarantee that the order of the operational order in the operation queue is identical with the order of main frame executable operations instruction, and successively the operational order in the operation queue is sent to standby host, play the synchronous effect of operational order.
305, the operational order that sends of standby host Receiving Host is put into this operational order the operation queue of standby host successively.
Wherein, keep a synchronizing thread in the standby host, guarantee that the order of the operational order in the operation queue is identical with the order that standby host receives operational order.
Optionally, behind the operational order that the standby host Receiving Host sends, can be according to the operational order of main frame transmission, the operation conversion table that the inquiry standby host stores, result according to inquiry, the operational order that some are special is converted to the object run instruction, so that standby host operates object run instruction corresponding data in standby host according to the object run instruction.
For example, after main frame carries out " powering on " operation, the operational order that will " power on " is sent to standby host, it is synchronous with assurance and main frame that this moment, standby host need to carry out " maintenance " operation, then standby host is inquired about the operation conversion table that standby host stores, according to the result of inquiry, the operational order that will " power on " is converted to object run instruction " maintenance " and " maintenance " operational order is processed again.
Concrete, the operational order that main frame is sent is converted to the object run instruction that the needs of standby host are carried out, and as shown in Figure 6, comprising:
305a, standby host need to judge whether the operational order of conversion.
When the judged result of step 305a was "No", standby host did not carry out conversion operations.
When the judged result of step 305a is "Yes", carries out step 305b, standby host and judge whether the operate source of the operate source of the operational order that needs conversion and object run instruction is consistent.
When the judged result of step 305b is "No", carry out step 305g, abandon the conversion of this operational order, carry out the conversion of next bar operational order.
When the judged result of step 305b is "Yes", carries out step 305c, standby host and judge whether the action type of the action type of the operational order that needs conversion and object run instruction is consistent.
When the judged result of step 305c is "No", carry out step 305g, abandon the conversion of this operational order, carry out the conversion of next bar operational order.
When the judged result of step 305c is "Yes", carries out step 305d, standby host and judge whether the operand of the operand of the operational order that needs conversion and object run instruction is consistent.
When the judged result of step 305d is "No", carry out step 305g, abandon the conversion of this operational order, carry out the conversion of next bar operational order.
When the judged result of step 305d is "Yes", carries out step 305e, standby host and judge whether the service data of the service data of the operational order that needs conversion and object run instruction is consistent.
When the judged result of step 305e is "No", carry out step 305g, abandon the conversion of this operational order, carry out the conversion of next bar operational order.
When the judged result of step 305e is "Yes", carry out the operation conversion table of step 305f, standby host inquiry storage, the operational order that needs are changed is converted to the object run instruction.
The operation conversion table comprises the described operational order of main frame transmission and the mapping relations of object run instruction.A kind of sequencing data structure that operates conversion table provided herein, as follows:
Figure BDA00003458205000121
Standby host can be inquired about this table, and the operational order that satisfies the aforesaid operations conversion table that main frame is sent is converted to the respective operations that the standby host needs carry out, to finish the operation identical with main frame.
306, standby host is put into the operational order in the operation queue of standby host the request queue of standby host successively.
Wherein, standby host is kept an execution thread, and the assurance standby host is put into the process of the request queue of standby host successively with the operational order in the operation queue of standby host, and the order of operational order being put into request queue is identical with the order that standby host receives operational order.
307, standby host operates operational order corresponding data in standby host one by one according to the putting in order of operational order in the request queue.
Wherein, standby host forms worker thread according to the particular content of operational order to an operational order, and the corresponding data of operational order are operated.
Optionally, standby host is classified to described operational order according to the content of operational order, obtain the operation-interface corresponding to class categories of operational order according to the class categories of operational order, the operation-interface corresponding according to the class categories of operational order operates operational order corresponding data in described standby host by different worker threads.
Wherein, the consistance that operates for the order that guarantees standby host operation and main frame and standby host, standby host is put into the operational order in the operation queue of standby host the request queue of standby host successively according to the order of operational order in the operation queue of standby host, carry out the operational order in the request queue of described standby host according to the order of operational order in the request queue of standby host, finish successively the operation to the corresponding data of standby host
The method for synchronous that embodiments of the invention provide, be sent to standby host by the operational order that main frame is carried out, standby host carry out operational order that main frame sends realize between main frame and the standby host synchronously, reduced data volume synchronous between main frame and standby host, improved reliability and the operability of system.
Embodiments of the invention provide a kind of main frame 1, the method that the embodiment of application said method provides.With reference to shown in Figure 7, main frame 1 comprises: control module 11 and synchronization module 12.
The control module 11 of main frame is used for obtaining operational order, according to operational order operational order corresponding data in main frame 1 is operated, and this operational order is sent to synchronization module 12.
The synchronization module 12 of main frame is used for the operational order of control module 11 transmissions of Receiving Host, and this operational order is sent to standby host.
The synchronizer that embodiments of the invention provide, main frame only is sent to standby host with the operational order of carrying out, and has reduced data volume synchronous between main frame and standby host, has improved reliability and the operability of system.
Optionally, as shown in Figure 8, the control module 11 of main frame comprises: scheduling unit 111 and performance element 112.
The scheduling unit 111 of main frame is used for obtaining operational order, the request queue of operational order being put into main frame.
The performance element 112 of main frame is used for one by one operational order corresponding data in main frame 1 being operated, and this operational order being sent to synchronization module 12 according to the putting in order of request queue operational order.
The synchronization module 12 of main frame comprises: administrative unit 121 and lock unit 122;
The administrative unit 121 of main frame is used for the operational order of control module 11 transmissions of Receiving Host, this operational order is put into the operation queue of main frame.
The lock unit 122 of main frame is used for the operational order of the operation queue of main frame is sent to standby host successively.
Optionally, the control module 11 of main frame also comprises taxon 113, and is concrete, and the taxon 113 of main frame is used for according to the content of operational order operational order being classified, and sorted operational order is sent to performance element 112.
The performance element 112 of main frame also is used for the operational order of taxon 113 transmissions of Receiving Host, and obtaining the operation-interface corresponding to class categories of operational order according to the class categories of operational order, the operation-interface corresponding according to the class categories of operational order operates operational order corresponding data in main frame 1.Wherein, the classification of operational order can for increasing, delete, revise and searching four classes, also can be the operational order of other classifications.
The synchronizer that embodiments of the invention provide, main frame only is sent to standby host with the operational order of carrying out, and has reduced data volume synchronous between main frame and standby host, has improved reliability and the operability of system.
Embodiments of the invention provide a kind of standby host 2, the method that the embodiment of application said method provides.With reference to shown in Figure 9, standby host 2 comprises: control module 21 and synchronization module 22.
The synchronization module 22 of standby host is used for the operational order that Receiving Host sends, and this operational order is sent to control module 21, this operational order is the operational order that main frame is put into the operation queue of main frame, and wherein main frame operates operational order corresponding data in main frame according to operational order.
The control module 21 of standby host is used for the operational order of synchronization module 22 transmissions of reception standby host, and according to operational order operational order corresponding data in standby host 2 is operated.
The synchronizer that embodiments of the invention provide, standby host be the operational order of the execution that sends of Receiving Host only, realize between main frame and the standby host synchronously, reduced data volume synchronous between main frame and standby host, improved reliability and the operability of system.
Optionally, with reference to shown in Figure 10, the synchronization module 22 of standby host comprises lock unit 221 and administrative unit 222.
The lock unit 221 of standby host is used for the operational order that Receiving Host sends.
The order that the administrative unit 222 of standby host is used for receiving operational orders according to lock unit 221 is put into the operation queue of standby host successively with operational order, and the operational order in the operation queue of standby host is sent to control module 21 successively.
The control module 21 of standby host comprises scheduling unit 211 and performance element 212.
The scheduling unit 211 of standby host is used for request queue that the operational order of the operation queue of standby host is put into standby host successively.
The performance element 212 of standby host is used for one by one operational order corresponding data in standby host 2 being operated according to the putting in order of the request queue operational order of standby host.
Optionally, the control module 21 of standby host also comprises taxon 213.
Taxon 213 is used for according to the content of operational order operational order being classified, and sorted operational order is sent to performance element 212.
The performance element 212 of standby host also is used for the operational order of taxon 213 transmissions of reception standby host, and obtaining the operation-interface corresponding to class categories of operational order according to the class categories of operational order, the operation-interface corresponding according to the class categories of operational order operates operational order corresponding data in standby host
Wherein, the classification of operational order can for increasing, delete, revise and searching four classes, also can be the operational order of other classifications.
Optionally, the synchronization module 22 of standby host also comprises query unit 223 and converting unit 224, the operational order that the query unit 223 of standby host receives for the lock unit 221 that obtains standby host, and the operational order that sends according to main frame, the operation conversion table that inquiry standby host 2 stores, obtain Query Result, Query Result is sent to the converting unit 224 of standby host.
The converting unit 224 of standby host is used for the Query Result of query unit 223 transmissions of reception standby host, and according to the result who inquires about, operational order is converted to the object run instruction.
The converting unit 224 of standby host also is used for the object run instruction is sent to the administrative unit 222 of standby host, so that standby host 2 operates operational order corresponding data in standby host 2 according to the object run instruction.
Wherein, the operation conversion table comprises the described operational order of main frame transmission and the mapping relations of object run instruction.
The synchronizer that embodiments of the invention provide, standby host be the operational order of the execution that sends of Receiving Host only, realize between main frame and the standby host synchronously, reduced data volume synchronous between main frame and standby host, improved reliability and the operability of system.
Another embodiment of the present invention provides a kind of main frame 3, its structure is with reference to shown in Figure 11, this main frame 3 comprises: at least one processor 31, data bus 32, storer 33 and communication port 34, at least one processor 31, storer 33 are connected by data bus 32 connections and are finished mutual communication with communication port, wherein:
This data bus 32 can be industry standard architecture isa bus, peripheral component interconnect pci bus or extended industry-standard architecture eisa bus etc.This data bus 32 can be divided into address bus, data bus, control bus etc.For ease of expression, only represent with a thick line among Figure 11, but do not represent only to have the bus of a bus or a type.
Storer 33 is used for stores executable programs code and corresponding data, and this program code comprises computer-managed instruction.Storer 33 may comprise the high-speed RAM storer, also may also comprise nonvolatile memory, and storer comprises execution lock program and operation-interface registration table at least in the present invention.
Processor 31 may be a central processor CPU, or specific integrated circuit ASIC, or is configured to implement one or more integrated circuit of the embodiment of the invention.
Communication port 34 is used for realizing main frame and the data of network and standby host, the reception of instruction and the function of transmission.
Processor 31 also is used for calling the program code of storer 33, in order to carry out the operation of control module 11 and synchronization module 12 among the said equipment embodiment, specifically describes with reference to device embodiment corresponding to Fig. 7, repeats no more here.
Another embodiment of the present invention provides a kind of standby host 4, its structure is with reference to shown in Figure 12, this standby host 4 comprises: at least one processor 41, data bus 42, storer 43 and communication port 44, at least one processor 41, storer 43 are connected by data bus 42 connections and are finished mutual communication with communication port, wherein:
This data bus 42 can be industry standard architecture isa bus, peripheral component interconnect pci bus or extended industry-standard architecture eisa bus etc.This data bus 42 can be divided into address bus, data bus, control bus etc.For ease of expression, only represent with a thick line among Figure 12, but do not represent only to have the bus of a bus or a type.
Storer 43 is used for stores executable programs code and corresponding data, and this program code comprises computer-managed instruction.Storer 43 may comprise the high-speed RAM storer, also may also comprise nonvolatile memory, and storer comprises the lock program of carrying out, operation-interface registration table and operation conversion table at least in the present invention.
Processor 41 may be a central processor CPU, or specific integrated circuit ASIC, or is configured to implement one or more integrated circuit of the embodiment of the invention.
Communication port 44 is used for realizing standby host and the data of main frame and network, the reception of instruction and the function of transmission.
Processor 41 also is used for calling the program code of storer 43, in order to carry out the operation of control module 21 and synchronization module 22 among the said equipment embodiment, specifically describes with reference to device embodiment corresponding to Fig. 9, repeats no more here.
Embodiments of the invention provide a kind of synchro system, the main frame that is used for the server admin field and standby host synchronously, as shown in figure 13, comprise main frame 1 and standby host 2 that said apparatus embodiment provides, perhaps, main frame 3 and standby host 4.Main frame carries out business service, state analysis and monitoring to the server in the network, and standby host and main frame carry out synchronously, prepares at any time to finish by instruction the switching of function between main frame and standby host.
Wherein, the request that main frame will receive is converted to operational order, and this operational order execution concurrence is delivered to standby host, standby host is carried out the operational order that main frame sends, finished the operation identical with main frame, the configuration of standby host is identical in main frame with state, has reached the synchronous purpose of main frame and standby host.
The synchro system that embodiments of the invention provide, be sent to standby host by the operational order that main frame is carried out, standby host carry out operational order that main frame sends realize between main frame and the standby host synchronously, reduced data volume synchronous between main frame and standby host, improved reliability and the operability of system.
The above; be the specific embodiment of the present invention only, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by described protection domain with claim.

Claims (23)

1. a method for synchronous is characterized in that,
Main frame obtains operational order;
Described main frame operates described operational order corresponding data in described main frame according to described operational order;
Described main frame is sent to standby host with described operational order.
2. method for synchronous according to claim 1 is characterized in that, described main frame operates described operational order corresponding data in described main frame according to described operational order, specifically comprises:
The request queue of described main frame put into described operational order by described main frame;
Described main frame puts in order according to operational order described in the described request formation, one by one described operational order corresponding data in described main frame is operated.
3. method for synchronous according to claim 1 is characterized in that, described main frame is sent to standby host with described operational order, specifically comprises:
The operation queue of described main frame put into described operational order by described main frame;
Described main frame is sent to standby host successively with the operational order in the operation queue of described main frame.
4. the described method for synchronous of any one is characterized in that according to claim 1-3, and described main frame obtains after the operational order, comprising:
Described main frame is classified to described operational order according to the content of described operational order;
Described main frame operates described operational order corresponding data in described main frame according to described operational order, specifically comprises:
Described main frame obtains the operation-interface corresponding to class categories of described operational order according to the class categories of described operational order, and the operation-interface corresponding according to the class categories of described operational order operates described operational order corresponding data in described main frame.
5. method for synchronous according to claim 4 is characterized in that:
The class categories of operational order comprises: increase, delete, revise and search.
6. method for synchronous is characterized in that:
The operational order that the standby host Receiving Host sends, described operational order is the operational order that described main frame is put into the operation queue of described main frame, wherein said main frame operates described operational order corresponding data in described main frame according to described operational order;
Described standby host operates described operational order corresponding data in described standby host according to described operational order.
7. method for synchronous according to claim 6 is characterized in that, the operational order that described standby host Receiving Host sends specifically comprises:
Described standby host receives the operational order that described main frame sends;
Described standby host is put into described operational order the operation queue of described standby host successively according to the order that receives described operational order.
8. method for synchronous according to claim 6 is characterized in that, described standby host operates described operational order corresponding data in described standby host according to described operational order, specifically comprises:
Described standby host is put into the operational order in the operation queue of described standby host the request queue of described standby host successively;
Described standby host puts in order according to the operational order of standby host described in the described request formation, one by one described operational order corresponding data in described standby host is operated.
9. the described method for synchronous of any one is characterized in that according to claim 6-8, after the operational order that described Receiving Host sends, comprising:
Described standby host is classified to described operational order according to the content of described operational order;
Described standby host operates described operational order corresponding data in described standby host according to described operational order, specifically comprises:
Described standby host obtains the operation-interface corresponding to class categories of described operational order according to the class categories of described operational order, and the operation-interface corresponding according to the class categories of described operational order operates described operational order corresponding data in described standby host.
10. method for synchronous according to claim 9 is characterized in that:
The class categories of operational order comprises: increase, delete, revise and search.
11. the described method for synchronous of any one is characterized in that according to claim 6-10, the operational order that described standby host Receiving Host sends also comprises:
Described standby host is inquired about the operation conversion table that described standby host stores according to the described operational order that described main frame sends, and obtains Query Result;
Described standby host is converted to the object run instruction according to the result of described inquiry with described operational order, so that described standby host operates described operational order corresponding data in described standby host according to described object run instruction;
Wherein, described operation conversion table comprises the described operational order of main frame transmission and the mapping relations of object run instruction.
12. a main frame is characterized in that, comprising: control module and synchronization module;
Described control module is used for obtaining operational order, according to described operational order described operational order corresponding data in described main frame is operated, and described operational order is sent to described synchronization module;
Described synchronization module is used for receiving the described operational order that described control module sends, and described operational order is sent to standby host.
13. main frame according to claim 12 is characterized in that, described control module comprises: scheduling unit and performance element;
Described scheduling unit is used for obtaining described operational order, the request queue of described operational order being put into described main frame;
Described performance element is used for one by one described operational order corresponding data in described main frame being operated, and described operational order being sent to described synchronization module according to the putting in order of operational order described in the described request formation.
14. main frame according to claim 12 is characterized in that, described synchronization module comprises: administrative unit and lock unit;
Described administrative unit is used for receiving the described operational order that described control module sends, and described operational order is put into the operation queue of described main frame;
Described lock unit is used for the operational order of the operation queue of described main frame is sent to standby host successively.
15. the described main frame of any one is characterized in that according to claim 12-14, described control module also comprises taxon:
Described taxon is used for according to the content of described operational order described operational order being classified, and described sorted operational order is sent to described performance element;
Described performance element also is used for receiving the operational order that described taxon sends, and obtaining the operation-interface corresponding to class categories of described operational order according to the class categories of described operational order, the operation-interface corresponding according to the class categories of described operational order operates described operational order corresponding data in described main frame.
16. main frame according to claim 15 is characterized in that:
The class categories of operational order comprises: increase, delete, revise and search.
17. a standby host is characterized in that, comprising: synchronization module and control module;
Described synchronization module is used for the operational order that Receiving Host sends, and described operational order is sent to described control module, described operational order is the operational order that described main frame is put into the operation queue of described main frame, and wherein said main frame operates described operational order corresponding data in described main frame according to described operational order;
Described control module is used for receiving the described operational order that described synchronization module sends, and according to described operational order described operational order corresponding data in described standby host is operated.
18. standby host according to claim 17 is characterized in that, described synchronization module comprises: administrative unit and lock unit;
Described lock unit is used for receiving the operational order that described main frame sends;
The order that described administrative unit is used for receiving described operational order according to described lock unit is put into the operation queue of described standby host successively with described operational order, and the operational order in the operation queue of described standby host is sent to described control module successively.
19. standby host according to claim 17 is characterized in that, described control module comprises: scheduling unit and performance element;
Described scheduling unit is used for request queue that the operational order of the operation queue of described standby host is put into described standby host successively;
Described performance element is used for one by one described operational order corresponding data in described standby host being operated according to the putting in order of operational order described in the request queue of described standby host.
20. the described standby host of any one according to claim 17-19, it is characterized in that: described control module also comprises taxon:
Described taxon is used for according to the content of described operational order described operational order being classified, and described sorted operational order is sent to described performance element;
Described performance element also is used for receiving the operational order that described taxon sends, and obtaining the operation-interface corresponding to class categories of described operational order according to the class categories of described operational order, the operation-interface corresponding according to the class categories of described operational order operates described operational order corresponding data in described standby host.
21. standby host according to claim 20 is characterized in that:
The class categories of operational order comprises: increase, delete, revise and search.
22. the described standby host of any one according to claim 17-21, it is characterized in that: described synchronization module also comprises query unit and converting unit;
Described query unit is used for obtaining the operational order that described lock unit receives, and according to the described operational order that described main frame sends, inquires about the operation conversion table that described standby host stores, and obtains Query Result, and described Query Result is sent to described converting unit;
Described converting unit is used for receiving the described Query Result that described query unit sends, and according to the result of described inquiry, described operational order is converted to the object run instruction;
Described converting unit also is used for described object run instruction is sent to described administrative unit, so that described standby host operates described operational order corresponding data in described standby host according to described object run instruction;
Wherein, described operation conversion table comprises the described operational order of main frame transmission and the mapping relations of object run instruction.
23. a synchro system is characterized in that, comprises main frame and standby host, wherein said main frame is the described main frame of any one among the claim 12-16, and described standby host is the described standby host of any one among the claim 17-22.
CN201310277191.1A 2013-07-03 2013-07-03 A kind of synchronous method, equipment and system Active CN103365746B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310277191.1A CN103365746B (en) 2013-07-03 2013-07-03 A kind of synchronous method, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310277191.1A CN103365746B (en) 2013-07-03 2013-07-03 A kind of synchronous method, equipment and system

Publications (2)

Publication Number Publication Date
CN103365746A true CN103365746A (en) 2013-10-23
CN103365746B CN103365746B (en) 2016-12-28

Family

ID=49367162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310277191.1A Active CN103365746B (en) 2013-07-03 2013-07-03 A kind of synchronous method, equipment and system

Country Status (1)

Country Link
CN (1) CN103365746B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018076696A1 (en) * 2016-10-25 2018-05-03 华为技术有限公司 Data synchronization method and out-of-band management device
CN108363641A (en) * 2017-01-26 2018-08-03 华为技术有限公司 A kind of standby machine data transferring method, control node and Database Systems

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022530A (en) * 2007-03-23 2007-08-22 杭州华为三康技术有限公司 Virtual MCU, video communication system and virtual MCU configuration, switching method
CN101155015A (en) * 2006-09-28 2008-04-02 中兴通讯股份有限公司 Synchronization method for data and condition between host computer and standby computer
CN101446972A (en) * 2008-12-12 2009-06-03 中兴通讯股份有限公司 Method and system for dynamic data synchronization
CN103064761A (en) * 2012-12-24 2013-04-24 华为技术有限公司 Data synchronization method, device and system
CN103139308A (en) * 2013-02-27 2013-06-05 华为技术有限公司 Database system and data synchronization method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155015A (en) * 2006-09-28 2008-04-02 中兴通讯股份有限公司 Synchronization method for data and condition between host computer and standby computer
CN101022530A (en) * 2007-03-23 2007-08-22 杭州华为三康技术有限公司 Virtual MCU, video communication system and virtual MCU configuration, switching method
CN101446972A (en) * 2008-12-12 2009-06-03 中兴通讯股份有限公司 Method and system for dynamic data synchronization
CN103064761A (en) * 2012-12-24 2013-04-24 华为技术有限公司 Data synchronization method, device and system
CN103139308A (en) * 2013-02-27 2013-06-05 华为技术有限公司 Database system and data synchronization method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
卓益达与CA共同推出整合的带内、带外网络综合管理系统解决方案: "引领网络管理新趋势——卓益达与CA共同推出整合的带内、带外网络综合管理系统解决方案", 《计算机与网络》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018076696A1 (en) * 2016-10-25 2018-05-03 华为技术有限公司 Data synchronization method and out-of-band management device
US11010086B2 (en) 2016-10-25 2021-05-18 Huawei Technologies Co., Ltd. Data synchronization method and out-of-band management device
CN108363641A (en) * 2017-01-26 2018-08-03 华为技术有限公司 A kind of standby machine data transferring method, control node and Database Systems
CN108363641B (en) * 2017-01-26 2022-01-14 华为技术有限公司 Main and standby machine data transmission method, control node and database system

Also Published As

Publication number Publication date
CN103365746B (en) 2016-12-28

Similar Documents

Publication Publication Date Title
US8996465B2 (en) Replicating data to a database
CN102541942B (en) Data bulk transfer system and method thereof
CN104731859A (en) Data processing method and device
US10664321B2 (en) Apparatus and method for multitenancy in cloud environments for processing large datasets
CN103136364A (en) Cluster database system and data query processing method thereof
CN103645944B (en) Batch data conflict detection method, device and system
US20200142674A1 (en) Extracting web api endpoint data from source code
CN103036959A (en) Realization method and realization system of distributed deployment application program based on input/output (IO) decoupling
CN106354566A (en) Command processing method and server
CN105471635A (en) Method, device and system for processing system logs
CN110291759A (en) A kind of management method and system of task
CN103365746A (en) Synchronizing method, device and system
KR101301077B1 (en) Method for Aligning Ontology and Ontology Alignment System thereof
US11361453B2 (en) Method and apparatus for detecting and tracking target, electronic device and storage media
CN111125176A (en) Service data searching method and device, electronic equipment and storage medium
Kranjc et al. Real-time data analysis in ClowdFlows
US9703646B2 (en) Centralized database system
KR102472660B1 (en) System and method for offshore construction data management on sites
US11783565B2 (en) Image processing method, electronic device and readable storage medium for maintaining a face image buffer queue
US20160099843A1 (en) Intersystem automated-dialog agent
CN113760968A (en) Data query method, device, system, electronic equipment and storage medium
CN111741097B (en) Method for tenant to monopolize node, computer equipment and storage medium
CN112069137B (en) Method, device, electronic equipment and computer readable storage medium for generating information
CN113110921B (en) Operation method, device, equipment and storage medium of block chain system
CN117891877A (en) Operator chain-based data synchronization method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211221

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: Super fusion Digital Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.