CN104468670B - A kind of method, apparatus and distributed disaster recovery method, system of processing management data - Google Patents

A kind of method, apparatus and distributed disaster recovery method, system of processing management data Download PDF

Info

Publication number
CN104468670B
CN104468670B CN201310435719.3A CN201310435719A CN104468670B CN 104468670 B CN104468670 B CN 104468670B CN 201310435719 A CN201310435719 A CN 201310435719A CN 104468670 B CN104468670 B CN 104468670B
Authority
CN
China
Prior art keywords
message
external services
services device
old
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310435719.3A
Other languages
Chinese (zh)
Other versions
CN104468670A (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.)
Shenzhen Tencent Computer Systems Co Ltd
Original Assignee
Shenzhen Tencent Computer Systems 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 Shenzhen Tencent Computer Systems Co Ltd filed Critical Shenzhen Tencent Computer Systems Co Ltd
Priority to CN201310435719.3A priority Critical patent/CN104468670B/en
Publication of CN104468670A publication Critical patent/CN104468670A/en
Application granted granted Critical
Publication of CN104468670B publication Critical patent/CN104468670B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of method, apparatus handling management data and distributed disaster recovery method, system, caused managerial confusion when to prevent locking system with multiple central servers for managing external services devices.The method includes:Server sends the message for carrying weight at least two central servers to the periphery;External services device receives message and parses the weight carried in message;External services device according to the temporal information of message and/or the weight relationship of message, accept or reject by the current message sent at least two central servers.Method provided by the invention can be managed peripheral server using multiple central servers, and when obstacle occurs in the central server for currently fulfiling management, other central servers can be taken over, and improve the disaster tolerance performance of system;External services device is equivalent to the management for only receiving a central server in synchronization, and managerial confusion problem caused by management external services device is involved in so as to avoid the multiple central servers of synchronization.

Description

A kind of method, apparatus and distributed disaster recovery method, system of processing management data
Technical field
The present invention relates to distributed data management fields, and in particular to a kind of to handle the method, apparatus for managing data and divide Cloth disaster recovery method, system.
Background technology
In a distributed system, generally use carrys out the external services device in management system using central server.In so-called Central server is responsible for the server of one distributed system of management, also referred to as management server, and external services device is opposite The common server of role of manager, also referred to as quilt are not served as in for central server, in particular to distributed system Management server.The distributed system being made of central server and external services device can be used for the disaster tolerance of data center.
In traditional distributed system, central server manages external services device, and usually there are two types of different methods.First Kind method is that only there are one the central servers for serving as role of manager in entire distributed system, i.e., only with a center service Device manages all external services devices.Second method is that have multiple serve as in role of manager in entire distributed system Central server, i.e., multiple central servers can manage all external services devices.In the second approach, in order to avoid more A central server generates managerial confusion to system, and the same time only allows a central server to carry out pipe to peripheral server Reason, other central servers are responsible for monitoring its state.When the central server for being responsible for external services device breaks down, It is replaced using another central server, continues the responsibility for fulfiling management external services device.
The first method defect that the above-mentioned prior art provides is obvious, that is, disaster tolerance can be poor, for example, ought be only When some central servers break down, entire distributed system may be caused to be not normally functioning.The defect of second method It is:It is inconsistent due to multiple central server condition monitorings so that system may not act as role of manager actually Central server, or exist simultaneously the central server of multiple identical roles of manager and lead to managerial confusion.For example, it is assumed that There are tri- external services devices of two central servers of M1 and M2 and S1, S2 and S3 in system, wherein M1 is Current central service Device, M2 monitor M1.It is further assumed that M1 and M2 are in the same subnet 1(Hereinafter referred to as N1)In, S1, S2 and S3 are in another Subnet(Hereinafter referred to as N2)In, under normal circumstances, N1 and N2 are intercommunications.When intermediate routing is gone wrong, N1 and N2 are disconnected, M1 and M2 still can be communicated, and the state that M2 monitors M1 is normal, however, S1, S2 and S3 can not be communicated with M1, it is this Actually without the central server for serving as role of manager under scene.For another example, it is assumed that M1 and M2 is in different respectively Subnet(Hereinafter referred to as N3 and N4)In, S1, S2 and S3 are remained in N2.When N3 and N2 communications are normal, N4 and N2 are communicated also just Often, when the connecting fault of N3 and N4, M2 is mistakenly considered M1 failures, therefore starts to manage S1, S2 and S3 these three external services Device, however, M1 is still in these three external services devices of normal management S1, S2 and S3 at this time, so as to cause the same time, there are two Managerial confusion caused by a central server.
Invention content
The embodiment of the present invention provides a kind of method, apparatus and distributed disaster recovery method, system of processing management data, to prevent Caused managerial confusion when locking system is with multiple central servers for managing external services devices.
On the one hand, the embodiment of the present invention provides a kind of distributed disaster recovery method, the method includes:
Server sends the message for carrying weight at least two central servers to the periphery, and the message includes management number According to;
The external services device receives the message and parses the weight carried in the message;
The external services device according to the temporal information of the message and/or the weight relationship of the message, to it is described extremely The current message that few two central servers are sent is accepted or rejected, the temporal information of the message be current time T with it is described outer Enclose the term of validity T that server has been stored in local management dataoldMagnitude relationship, the weight relationship of the message is described The weight W of data is managed in the currently received message of external services devicenewIt has been stored in the external services device local Manage the weight W of dataoldMagnitude relationship.
On the other hand, the embodiment of the present invention provides a kind of distributed disaster tolerance system, the system comprises external services device and At least two central servers, the external services device include that parsing module and data accept or reject module;
At least two central server sends the message for carrying weight, the message package for server to the periphery The data containing management;
The parsing module, for receiving the message and parsing the weight carried in the message;
The data accept or reject module, are used for according to the temporal information of the message and/or the weight relationship of the message, right The current message that at least two central server is sent is accepted or rejected, the temporal information of the message be current time T with The external services device has been stored in the term of validity T of local management dataoldMagnitude relationship, the weight relationship of the message To manage the weight W of data in the currently received message of the external services devicenewIt has been stored in the external services device The weight W of local management dataoldMagnitude relationship.
In another aspect, another embodiment of the present invention provides a kind of device of processing management data, described device includes:
Parsing module, for receive at least two central servers transmission message and parse the power carried in the message Weight;
Data accept or reject module, are used for according to the temporal information of the message and/or the weight relationship of the message, to described The current message that at least two central servers are sent is accepted or rejected, the temporal information of the message be current time T with it is described External services device has been stored in the term of validity T of local management dataoldMagnitude relationship, the weight relationship of the message is institute State the weight W that data are managed in the currently received message of external services devicenewIt is stored in local with the external services device Management data weight WoldMagnitude relationship.
In another aspect, another embodiment of the present invention provides a kind of method of processing management data, the method includes:
External services device receives the message that at least two central servers are sent and parses the weight carried in the message, The message includes management data;
The external services device according to the temporal information of the message and/or the weight relationship of the message, to it is described extremely The current message that few two central servers are sent is accepted or rejected, the temporal information of the message be current time T with it is described outer Enclose the term of validity T that server has been stored in local management dataoldMagnitude relationship, the weight relationship of the message is described The weight W of data is managed in the currently received message of external services devicenewIt has been stored in the external services device local Manage the weight W of dataoldMagnitude relationship.
From the embodiments of the present invention it is found that the message that external services device receives carries weight, at least two centers The current message that server is sent is when being accepted or rejected, be with the weight relationship of the temporal information of the message and/or message be according to According to.Therefore, on the one hand, method provided in an embodiment of the present invention can carry out pipe using multiple central servers to peripheral server Reason, when obstacle occurs in the central server for currently fulfiling management, other central servers can be taken over, and improve the appearance of system Calamity performance;On the other hand, the current message that at least two central server of external services device pair is sent can be accepted or rejected, then phase When in the management for only receiving a central server in synchronization, all joining so as to avoid the multiple central servers of synchronization With managerial confusion problem caused by management external services device.
Description of the drawings
Fig. 1 is the basic procedure schematic diagram of distributed disaster recovery method provided in an embodiment of the present invention;
Fig. 2 is the basic procedure schematic diagram of the method for processing management data provided in an embodiment of the present invention;
Fig. 3 is distributed disaster tolerance system logical construction schematic diagram provided in an embodiment of the present invention;
Fig. 4 is the distributed disaster tolerance system logical construction schematic diagram that another embodiment of the present invention provides;
Fig. 5 is the distributed disaster tolerance system logical construction schematic diagram that another embodiment of the present invention provides;
Fig. 6 is the device logical construction schematic diagram of processing management data provided in an embodiment of the present invention;
Fig. 7 is the device logical construction schematic diagram for the processing management data that another embodiment of the present invention provides;
Fig. 8 is the device logical construction schematic diagram for the processing management data that another embodiment of the present invention provides.
Specific implementation mode
The embodiment of the present invention provides a kind of distributed disaster recovery method, including:At least two central servers service to the periphery Device sends the message for carrying weight, and the message includes management data;The external services device receives the message and parses institute State the weight carried in message;The external services device is closed according to the temporal information of the message and/or the weight of the message System, the current message sent at least two central server are accepted or rejected, when the temporal information of the message is current Carve the term of validity T that T has been stored in local management data with the external services deviceoldMagnitude relationship, the weight of the message Relationship is that the weight W of data is managed in the currently received message of the external services devicenewIt has been protected with the external services device The weight W for the management data being resident locallyoldMagnitude relationship.The embodiment of the present invention also provides corresponding processing management data Method, apparatus and distributed disaster tolerance system.It is described in detail separately below.
The basic procedure of the distributed disaster recovery method of the embodiment of the present invention can refer to Fig. 1, include mainly step:
S101, server sends the message for carrying weight at least two central servers to the periphery, and the message includes pipe Manage data.
Same as the prior art, in embodiments of the present invention, central server can still act as the angle of management external services device Color.In embodiments of the present invention, central server may be at identical subnet, can also be in different subnets, in it is genuinely convinced It is engaged in that monitoring and monitored relationship are also not present between device.All central servers are involved in the management to peripheral server i.e. Respectively independent server to the periphery sends the message for carrying management data, also, unlike the prior art further include center The message for the carrying management data that server is sent has weight.It should be noted that central server to the periphery send out by server The weight for the message sent is the weight of the management data in message and the weight of the central server.Central server is outside It can periodically send to enclose server to send message, which is both less than the term of validity of the message, that is, in a upper message Next message can be sent before expired.
S102, external services device receive the message that central server is sent and parse the management data carried in the message Weight.
As previously mentioned, external services device is still the role being managed, external services device is sent out by receiving central server It send and carries the message of management data to realize management of the central server to peripheral server.In embodiments of the present invention, outside After enclosing the message that server receives the transmission of at least two central servers, the power wherein carried is obtained by parsing the message Weight.
S103, the temporal information for the message that external services device is sent according to central server and/or the weight of the message Relationship, the current message sent at least two central server are accepted or rejected.
In embodiments of the present invention, the temporal information for the message that central server is sent is current time T and external services Device has been stored in the term of validity T of local management dataoldMagnitude relationship, the weight relationship of message is that external services device is current The weight W of data is managed in the message of receptionnewThe weight W of local management data has been stored in external services deviceoldIt is big Small relationship.For example, the management data D1 sent before central server was stored in local and basis at that time by external services device At the time of receiving message and its weight obtains the term of validity T of management data D1old, then the temporal information of message is current time T The term of validity T of local management data D1 has been stored in external services deviceoldMagnitude relationship, the weight relationship of message is outer Enclose the currently received weight W for managing data D ' 1 of servernewIt has been stored in local management data D1's with external services device Weight WoldMagnitude relationship.
As one embodiment of the invention, the temporal information of message that external services device is sent according to central server and/ Or the weight relationship of the message, it includes following S1 and S2 to the message that at least two central servers are sent accept or reject:
S1 compares WnewWith WoldSize.
W hereinnewTo manage the weight of data, W herein in the currently received message of external services deviceoldCentered on take The weight of local management data is sent and has been stored in by external services device before business device, that is, assuming that before central server It is D1 to send and be stored in local management data by external services device, and number is managed in the currently received message of external services device According to being D ' 1, then WnewFor the weight of D ' 1, WoldFor the weight of D1.
S2, if WnewMore than Wold, then it is the external services device by the managing data updates received before external services device Data are managed in the currently received message.
If according to it is above-mentioned for example, D ' 1 weight WnewWeight W more than D1old, then D ' 1 is updated to D1, that is, The management data D1 preserved before no longer using, then use new management data D ' 1.
As another embodiment of the present invention, the temporal information of message that external services device is sent according to central server and/ Or the weight relationship of the message, it includes following S ' 1 to S ' 4 to the message that at least two central servers are sent accept or reject:
S ' 1, compares WnewWith WoldSize.
It is identical as previous embodiment, W hereinnewTo manage the weight of data in the currently received message of external services device, W hereinoldCentered on the weights of local management data is sent and has been stored in by external services device before server, that is, vacation If it is D1 to be sent before central server and be stored in local management data by external services device, external services device currently connects It is D ' 1 that data are managed in the message of receipts, then WnewFor the weight of D ' 1, WoldFor the weight of D1.
S ' 2, if the WnewMore than the Wold, then it is described outer by the managing data updates received before external services device It encloses in the currently received message of server and manages data.
If according to it is above-mentioned for example, D ' 1 weight WnewWeight W more than D1old, then D ' 1 is updated to D1, i.e., not The management data D1 preserved before using again, then use new management data D ' 1.
S ' 3, if the WnewNo more than the Wold, then compare ToldWith the size of T.
In WnewNo more than WoldWhen, it still cannot determine whether the selection currently received management data of external services device and give up The management data received before external services device, it is also necessary to further compare ToldWith the size of T.Herein, ToldFor external services Device has been stored in the term of validity of local management data, and T is current time, i.e., at the time of external services device currently receives message.
S ' 4, if the ToldThen it is institute by the managing data updates received before external services device less than or equal to the T It states in the currently received message of external services device and manages data, if the ToldMore than the T, then give up the periphery clothes The business currently received message of device.
For example, the management data D1 sent before central server was stored in local and basis at that time by external services device At the time of receiving message and its weight obtains the term of validity T of management data D1old, the currently received management number of external services device According to for D ' 1.In ToldWhen less than or equal to current time T, then it is D ' 1 management data D1 to be updated to management data, i.e., no longer adopts With the management data D1 preserved before, then use new management data D ' 1.If result of the comparison is ToldMore than T, then give up The currently received message of external services device is abandoned to give up management data D ' 1, still uses and has been sent simultaneously before central server It is stored in the management data D1 of external services device local.
As previously mentioned, the weight of management data is also the weight of central server, and under normal conditions, different centers There is server different weights, weight of the external services device based on management data to select a management data and give up another Data are managed, this guarantees the management that synchronization external services device actually only receives a central server.According to upper The temporal information for the message that external services device is sent according to central server and/or the weight relationship of the message are stated, at least Two embodiments that the message that two central servers are sent is accepted or rejected, below with two central servers(Make individually below Referred to as with M1 and M2)It does not break down and for one of them breaks down, illustrates method provided in an embodiment of the present invention.
For example, central server 1(Hereinafter referred to as M1)With central server 2(Hereinafter referred to as M2)Weight be respectively w1 and W2, and w1 is more than w2.When M1 and M2 do not break down, since weight w1 is more than w2, M2 is sent to each external services Management data on device are actually invalid, and external services device uses always the management data of M1, whole system to be equivalent to only There are one this central servers of M1 to carry out the management to peripheral server, ensure that the consistency of management data, to Avoid the confusion of management.
For another example, when M2 breaks down, each external services device no longer receives the message of M2, however, due to the weight of M2 W2 is less than the weight w1 of M1, and external services device was ignored as the message of M2 originally, therefore will not be had an impact to system.
For another example, when M1 breaks down, original management data can be gradually expired on each external services device, according to upper The processing logic of embodiment is stated, external services device will be stored in local management number using the new management data of M2 to update According to system remains able to be managed by M2, and the failure of M1 does not interfere the management function of system.
Attached drawing 2 is please referred to, is a kind of basic procedure of the method for processing management data provided in an embodiment of the present invention, mainly Including step S201 and step S202, detailed description are as follows:
S201, external services device receive the message that central server is sent and parse the management data carried in the message Weight.
As previously mentioned, external services device is still the role being managed, external services device is sent out by receiving central server It send and carries the message of management data to realize management of the central server to peripheral server.In embodiments of the present invention, outside After enclosing the message that server receives the transmission of at least two central servers, the power wherein carried is obtained by parsing the message Weight.
S202, the temporal information for the message that external services device is sent according to central server and/or the weight of the message Relationship, the current message sent at least two central server are accepted or rejected.
In embodiments of the present invention, the temporal information for the message that central server is sent is current time T and external services Device has been stored in the term of validity T of local management dataoldMagnitude relationship, the weight relationship of message is that external services device is current The weight W of data is managed in the message of receptionnewThe weight W of local management data has been stored in external services deviceoldIt is big Small relationship.For example, the management data D1 sent before central server was stored in local and basis at that time by external services device At the time of receiving message and its weight obtains the term of validity T of management data D1old, then the temporal information of message is current time T The term of validity T of local management data D1 has been stored in external services deviceoldMagnitude relationship, the weight relationship of message is outer Enclose the currently received weight W for managing data D ' 1 of servernewIt has been stored in local management data D1's with external services device Weight WoldMagnitude relationship.
As one embodiment of the invention, the temporal information of message that external services device is sent according to central server and/ Or the weight relationship of the message, it includes following S21 and S22 to the message that at least two central servers are sent accept or reject:
S21 compares WnewWith WoldSize.
W hereinnewTo manage the weight of data, W herein in the currently received message of external services deviceoldCentered on take The weight of local management data is sent and has been stored in by external services device before business device, that is, assuming that before central server It is D1 to send and be stored in local management data by external services device, and number is managed in the currently received message of external services device According to being D ' 1, then WnewFor the weight of D ' 1, WoldFor the weight of D1.
S22, if WnewMore than Wold, then it is the external services device by the managing data updates received before external services device Data are managed in the currently received message.
If according to it is above-mentioned for example, D ' 1 weight WnewWeight W more than D1old, then D ' 1 is updated to D1, that is, The management data D1 preserved before no longer using, then use new management data D ' 1.
As another embodiment of the present invention, the temporal information of message that external services device is sent according to central server and/ Or the weight relationship of the message, it includes following S ' 21 to S ' to the message that at least two central servers are sent accept or reject 24:
S ' 21, compares WnewWith WoldSize.
It is identical as previous embodiment, W hereinnewTo manage the weight of data in the currently received message of external services device, W hereinoldCentered on the weights of local management data is sent and has been stored in by external services device before server, that is, vacation If it is D1 to be sent before central server and be stored in local management data by external services device, external services device currently connects It is D ' 1 that data are managed in the message of receipts, then WnewFor the weight of D ' 1, WoldFor the weight of D1.
S ' 22, if the WnewMore than the Wold, then it is described by the managing data updates received before external services device Data are managed in the currently received message of external services device.
If according to it is above-mentioned for example, D ' 1 weight WnewWeight W more than D1old, then D ' 1 is updated to D1, i.e., not The management data D1 preserved before using again, then use new management data D ' 1.
S ' 23, if the WnewNo more than the Wold, then compare ToldWith the size of T.
In WnewNo more than WoldWhen, it still cannot determine whether the selection currently received management data of external services device and give up The management data received before external services device, it is also necessary to further compare ToldWith the size of T.Herein, ToldFor external services Device has been stored in the term of validity of local management data, and T is current time, i.e., at the time of external services device currently receives message.
S ' 24, if the ToldLess than or equal to the T, it is by the managing data updates received before external services device then Data are managed in the currently received message of external services device, if the ToldMore than the T, then give up the periphery The currently received message of server.
For example, the management data D1 sent before central server was stored in local and basis at that time by external services device At the time of receiving message and its weight obtains the term of validity T of management data D1old, the currently received management number of external services device According to for D ' 1.In ToldWhen less than or equal to current time T, then it is D ' 1 management data D1 to be updated to management data, i.e., no longer adopts With the management data D1 preserved before, then use new management data D ' 1.If result of the comparison is ToldMore than T, then give up The currently received message of external services device is abandoned to give up management data D ' 1, still uses and has been sent simultaneously before central server It is stored in the management data D1 of external services device local.
As previously mentioned, the weight of management data is also the weight of central server, and under normal conditions, different centers There is server different weights, weight of the external services device based on management data to select a management data and give up another Data are managed, this guarantees the management that synchronization external services device actually only receives a central server.According to upper The temporal information for the message that external services device is sent according to central server and/or the weight relationship of the message are stated, at least Two embodiments that the message that two central servers are sent is accepted or rejected, below with two central servers(Make individually below Referred to as with M1 and M2)It does not break down and for one of them breaks down, illustrates method provided in an embodiment of the present invention.
For example, central server 1(Hereinafter referred to as M1)With central server 2(Hereinafter referred to as M2)Weight be respectively w1 and W2, and w1 is more than w2.When M1 and M2 do not break down, since w1 is more than w2, M2 is sent on each external services device Management data be actually invalid, external services device uses always the management data of M1, and whole system is equivalent to only M1 This central server is carrying out the management to peripheral server, the consistency of management data is ensure that, so as to avoid pipe The confusion of reason.
For another example, when M2 breaks down, each external services device no longer receives the message of M2, however, due to the weight of M2 W2 is less than the weight w1 of M1, and external services device was ignored as the message of M2 originally, therefore will not be had an impact to system.
For another example, when M1 breaks down, original management data can be gradually expired on each external services device, according to upper The processing logic of embodiment is stated, external services device will be stored in local management number using the new management data of M2 to update According to system remains able to be managed by M2, and the failure of M1 does not interfere the management function of system.
The distributed disaster tolerance system of the embodiment of the present invention for executing above-mentioned distributed disaster recovery method is said below Bright, basic logical structure is with reference to figure 3.For convenience of description, illustrate only with the relevant part of the embodiment of the present invention, mainly Including external services device 303 and at least two central servers 301 and 302, wherein external services device 303 includes parsing module 3031 and data accept or reject module 3032, detailed description are as follows for each equipment:
Central server 301 and central server 302 send the message for carrying weight, institute for server 303 to the periphery It includes management data to state message;
Parsing module 3031, for receiving the message and parsing the weight carried in the message;
Data accept or reject module 3032, are used for according to the temporal information of the message and/or the weight relationship of the message, right The current message that at least two central server 301 and 302 is sent is accepted or rejected, and the temporal information of the message is current Moment T has been stored in the term of validity T of local management data with the external services device 303oldMagnitude relationship, the message Weight relationship be the currently received message of the external services device 303 in manage data weight WnewWith the periphery Server 303 has been stored in the weight W of local management dataoldMagnitude relationship.
It may include the first comparing unit 401 and the first updating unit 402 that 3 exemplary data of attached drawing, which accept or reject module 3032, The distributed disaster tolerance system that another embodiment of the present invention as shown in Fig. 4 provides, wherein:
First comparing unit 401 is used for the WnewWith the WoldSize;
First updating unit 402, if the comparison result for first comparing unit 401 is the WnewMore than described Wold, then it is that the external services device 303 is currently received by the managing data updates received before the external services device 303 Data are managed in the message.
It may include the first comparing unit 401, the first updating unit 402, that 3 exemplary data of attached drawing, which accept or reject module 3032, Two comparing units 501 and the second updating unit 502, the distributed disaster tolerance system that another embodiment of the present invention as shown in Fig. 5 provides System, wherein:
First comparing unit 401 is used for the WnewWith the WoldSize;
First updating unit 402, if the comparison result for first comparing unit is the WnewMore than the Wold, It is then that the external services device 303 is currently received described by the managing data updates received before the external services device 303 Data are managed in message;
Second comparing unit 501, if the comparison result for first comparing unit 401 is the WnewNo more than institute State Wold, then the ToldWith the size of the T;
Second updating unit 502, if the comparison result for second comparing unit 501 is the ToldIt is less than or waits Then it is that the external services device 303 currently connects by the managing data updates received before the external services device 303 in the T Data are managed in the message received, if the comparison result of second comparing unit 501 is the ToldMore than the T, then give up Abandon the currently received message of the external services device 303.
Below to the dress of the processing management data of the embodiment of the present invention of the method for executing above-mentioned processing management data It sets and illustrates, basic logical structure is with reference to figure 6.For convenience of description, it illustrate only relevant with the embodiment of the present invention Part.The device of the exemplary processing management data of attached drawing 6 can be the functional unit either external services device of external services device, It includes mainly that parsing module 601 and data accept or reject module 602, and detailed description are as follows for each module:
Parsing module 601, the message and parsing in the message for receiving the transmission of at least two central servers carry Weight;
Data accept or reject module 602, are used for according to the temporal information of the message and/or the weight relationship of the message, right The current message that at least two central server is sent is accepted or rejected, the temporal information of the message be current time T with The external services device has been stored in the term of validity T of local management dataoldMagnitude relationship, the weight relationship of the message To manage the weight W of data in the currently received message of the external services devicenewIt has been stored in the external services device The weight W of local management dataoldMagnitude relationship.
It may include the first comparing unit 701 and the first updating unit 702 that 6 exemplary data of attached drawing, which accept or reject module 602, such as The device for the processing management data that another embodiment of the present invention shown in attached drawing 7 provides, wherein:
First comparing unit 701 is used for the WnewWith the WoldSize;
First updating unit 702, if the comparison result for first comparing unit 701 is the WnewMore than described Wold, then it is to disappear described in the external services device is currently received by the managing data updates received before the external services device Data are managed in breath.
It may include the first comparing unit 701, the first updating unit 702, that 6 exemplary data of attached drawing, which accept or reject module 602, Two comparing units 801 and the second updating unit 802, the processing that another embodiment of the present invention as shown in Fig. 8 provides manage data Device, wherein:
First comparing unit 701 is used for the WnewWith the WoldSize;
First updating unit 702, if the comparison result for first comparing unit is the WnewMore than the Wold, It is then in the currently received message of the external services device by the managing data updates received before the external services device Manage data;
Second comparing unit 801, if the comparison result for first comparing unit 701 is the WnewNo more than institute State Wold, then the ToldWith the size of the T;
Second updating unit 802, if the comparison result for second comparing unit 801 is the ToldIt is less than or waits Then it is the currently received institute of the external services device by the managing data updates received before the external services device in the T It states and manages data in message, if the comparison result of second comparing unit 801 is the ToldMore than the T, then give up described The currently received message of external services device.
It should be noted that the contents such as information exchange, implementation procedure between each module/unit of above-mentioned apparatus, due to The method of the present invention embodiment is based on same design, and the technique effect brought is identical as the method for the present invention embodiment, particular content The narration in the method for the present invention embodiment is can be found in, details are not described herein again.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include:Read-only memory(ROM, Read Only Memory), random access memory(RAM, Random Access Memory), disk or CD etc..
It is provided for the embodiments of the invention the method, apparatus for handling management data and distributed disaster recovery method above, is System is described in detail, and principle and implementation of the present invention are described for specific case used herein, above The explanation of embodiment is merely used to help understand the method and its core concept of the present invention;Meanwhile for the general skill of this field Art personnel, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion this Description should not be construed as limiting the invention.

Claims (12)

1. a kind of distribution disaster recovery method, which is characterized in that the method includes:
Server sends the message for carrying weight at least two central servers to the periphery, and the message includes management data;
The external services device receives the message and parses the weight carried in the message;
The external services device is according to the temporal information of the message and/or the weight relationship of the message, to described at least two The current message that a central server is sent is accepted or rejected, and the temporal information of the message is that current time T takes with the periphery Business device has been stored in the term of validity T of local management dataoldMagnitude relationship, the weight relationship of the message is the periphery The weight W of data is managed in the currently received message of servernewIt is stored in local management with the external services device The weight W of dataoldMagnitude relationship.
2. according to the method described in claim 1, it is characterized in that, the external services device is according to the temporal information of the message And/or the weight relationship of the message, carrying out choice to the message that at least two central server is sent includes:
Compare the WnewWith the WoldSize;
If the WnewMore than the Wold, then it is by managing data updates in the message received before the external services device Data are managed in the currently received message of external services device.
3. according to the method described in claim 1, it is characterized in that, the external services device is according to the temporal information of the message And/or the weight relationship of the message, carrying out choice to the message that at least two central server is sent includes:
Compare the WnewWith the WoldSize;
If the WnewMore than the Wold, then it is that the periphery takes by the managing data updates received before the external services device Data are managed in the business currently received message of device;
If the WnewNo more than the Wold, then the ToldWith the size of the T;
If the ToldThen it is described outer by the managing data updates received before the external services device less than or equal to the T It encloses in the currently received message of server and manages data, if the ToldMore than the T, then give up the external services device The currently received message.
4. a kind of method of processing management data, which is characterized in that the method includes:
External services device receives the message that at least two central servers are sent and parses the weight carried in the message, described Message includes management data;
The external services device is according to the temporal information of the message and/or the weight relationship of the message, to described at least two The current message that a central server is sent is accepted or rejected, and the temporal information of the message is that current time T takes with the periphery Business device has been stored in the term of validity T of local management dataoldMagnitude relationship, the weight relationship of the message is the periphery The weight W of data is managed in the currently received message of servernewIt is stored in local management with the external services device The weight W of dataoldMagnitude relationship.
5. according to the method described in claim 4, it is characterized in that, described, the external services device according to the message when Between the weight relationship of information and/or the message, at least two central servers send message carry out accept or reject include:
Compare the WnewWith the WoldSize;
If the WnewMore than the Wold, then it is that the periphery takes by the managing data updates received before the external services device Data are managed in the business currently received message of device.
6. according to the method described in claim 4, it is characterized in that, the external services device is according to the temporal information of the message And/or the weight relationship of the message, carrying out choice to the message that at least two central server is sent includes:
Compare the WnewWith the WoldSize;
If the WnewMore than the Wold, then it is by managing data updates in the message received before the external services device Data are managed in the currently received message of external services device;
If the WnewNo more than the Wold, then the ToldWith the size of the T;
If the ToldThen it is described outer by the managing data updates received before the external services device less than or equal to the T It encloses in the currently received message of server and manages data, if the ToldMore than the T, then give up the external services device The currently received message.
7. a kind of distribution disaster tolerance system, which is characterized in that the system comprises external services devices and at least two center services Device, the external services device include that parsing module and data accept or reject module;
At least two central server, the message for carrying weight is sent for server to the periphery, and the message includes pipe Manage data;
The parsing module, for receiving the message and parsing the weight carried in the message;
The data accept or reject module, are used for according to the temporal information of the message and/or the weight relationship of the message, to described The current message that at least two central servers are sent is accepted or rejected, the temporal information of the message be current time T with it is described External services device has been stored in the term of validity T of local management dataoldMagnitude relationship, the weight relationship of the message is institute State the weight W that data are managed in the currently received message of external services devicenewIt is stored in local with the external services device Management data weight WoldMagnitude relationship.
8. system according to claim 7, which is characterized in that the data accept or reject module and include:
First comparing unit is used for the WnewWith the WoldSize;
First updating unit, if the comparison result for first comparing unit is the WnewMore than the Wold, then by institute The managing data updates received before stating external services device are to manage number in the currently received message of the external services device According to.
9. system according to claim 7, which is characterized in that the data accept or reject module and include:
First comparing unit is used for the WnewWith the WoldSize;
First updating unit, if the comparison result for first comparing unit is the WnewMore than the Wold, then by institute The managing data updates received before stating external services device are to manage number in the currently received message of the external services device According to;
Second comparing unit, if the comparison result for first comparing unit is the WnewNo more than the Wold, then compare The ToldWith the size of the T;
Second updating unit, if the comparison result for second comparing unit is the ToldLess than or equal to the T, then It is the currently received message middle pipe of the external services device by the managing data updates received before the external services device Data are managed, if the comparison result of second comparing unit is the ToldMore than the T, then gives up the external services device and work as The message of preceding reception.
10. a kind of device of processing management data, which is characterized in that described device includes:
Parsing module, for receive at least two central servers transmission message and parse the weight carried in the message;
Data accept or reject module, for according to the temporal information of the message and/or the weight relationship of the message, to it is described at least The current message that two central servers are sent is accepted or rejected, and the temporal information of the message is current time T and external services Device has been stored in the term of validity T of local management dataoldMagnitude relationship, the weight relationship of the message is that the periphery takes The weight W of data is managed in the currently received message of device of being engaged innewIt is stored in local management number with the external services device According to weight WoldMagnitude relationship.
11. device according to claim 10, which is characterized in that the data accept or reject module and include:
First comparing unit is used for the WnewWith the WoldSize;
First updating unit, if the comparison result for first comparing unit is the WnewMore than the Wold, then by institute The managing data updates received before stating external services device are to manage number in the currently received message of the external services device According to.
12. device according to claim 10, which is characterized in that the data accept or reject module and include:
First comparing unit is used for the WnewWith the WoldSize;
First updating unit, if the comparison result for first comparing unit is the WnewMore than the Wold, then by institute It is the currently received message of the parsing module to state managing data updates in the message received before external services device Middle management data;
Second comparing unit, if the comparison result for first comparing unit is the WnewNo more than the Wold, then compare The ToldWith the size of the T;
Second updating unit, if the comparison result for second comparing unit is the ToldLess than or equal to the T, then It is the currently received message middle pipe of the external services device by the managing data updates received before the external services device Data are managed, if the comparison result of second comparing unit is the ToldMore than the T, then it is current to give up the parsing module The message received.
CN201310435719.3A 2013-09-23 2013-09-23 A kind of method, apparatus and distributed disaster recovery method, system of processing management data Active CN104468670B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310435719.3A CN104468670B (en) 2013-09-23 2013-09-23 A kind of method, apparatus and distributed disaster recovery method, system of processing management data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310435719.3A CN104468670B (en) 2013-09-23 2013-09-23 A kind of method, apparatus and distributed disaster recovery method, system of processing management data

Publications (2)

Publication Number Publication Date
CN104468670A CN104468670A (en) 2015-03-25
CN104468670B true CN104468670B (en) 2018-10-23

Family

ID=52914035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310435719.3A Active CN104468670B (en) 2013-09-23 2013-09-23 A kind of method, apparatus and distributed disaster recovery method, system of processing management data

Country Status (1)

Country Link
CN (1) CN104468670B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108875035B (en) * 2018-06-25 2022-02-18 郑州云海信息技术有限公司 Data storage method of distributed file system and related equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399702A (en) * 2007-09-27 2009-04-01 富士通株式会社 System and method for managing devices connected to a computer network
CN101686160A (en) * 2008-09-28 2010-03-31 Tcl集团股份有限公司 Interconnecting and interworking equipment on-line detection method
CN102497353A (en) * 2011-10-28 2012-06-13 深圳第七大道科技有限公司 Processing method, server and system for multi-server distributed data
CN102882927A (en) * 2012-08-29 2013-01-16 华南理工大学 Cloud storage data synchronizing framework and implementing method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101399702A (en) * 2007-09-27 2009-04-01 富士通株式会社 System and method for managing devices connected to a computer network
CN101686160A (en) * 2008-09-28 2010-03-31 Tcl集团股份有限公司 Interconnecting and interworking equipment on-line detection method
CN102497353A (en) * 2011-10-28 2012-06-13 深圳第七大道科技有限公司 Processing method, server and system for multi-server distributed data
CN102882927A (en) * 2012-08-29 2013-01-16 华南理工大学 Cloud storage data synchronizing framework and implementing method thereof

Also Published As

Publication number Publication date
CN104468670A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
US9742663B2 (en) System and method for reducing information loss in an aggregated information handling system
US20130332557A1 (en) Redundancy and load balancing in remote direct memory access communications
CN104468151B (en) A kind of system and method for keeping TCP sessions during cluster switching
CN105337780B (en) A kind of server node configuration method and physical node
CN104113428B (en) A kind of equipment management device and method
JP6431197B2 (en) Snapshot processing methods and associated devices
CN110750393B (en) Method, device, medium and equipment for avoiding network service double-machine hot standby brain cracking
CN107508694B (en) Node management method and node equipment in cluster
CN102710520B (en) Method and device for backing up lonworks network service (LNS)
CN103795572B (en) The switching method and monitoring server of principal and subordinate's server
CN103825777A (en) DMZ server switching method and device
CN106713132B (en) Method and apparatus for updating forwarding table entry
CN105429799A (en) Server backup method and device
US20160205033A1 (en) Pool element status information synchronization method, pool register, and pool element
JP2014175747A (en) Independent distribution network system
CN109254876A (en) The management method and device of database in cloud computing system
CN105915426A (en) Failure recovery method and device of ring network
CN100563263C (en) In network storage service, realize the method and system of system high-available
CN101145972B (en) A disaster tolerance network management system and login method of network management clients
CN107071189A (en) A kind of connection method of communication apparatus physical interface
CN104468670B (en) A kind of method, apparatus and distributed disaster recovery method, system of processing management data
CN102487332B (en) Fault processing method, apparatus thereof and system thereof
CN111953808A (en) Data transmission switching method of dual-machine dual-active architecture and architecture construction system
CN111708843A (en) Cross-data-center MySQL multi-activity implementation method based on MGR
JP4806382B2 (en) Redundant system

Legal Events

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