CN104468670A - Method and device for processing management data, distributed disaster tolerance method and distributed disaster tolerance system - Google Patents

Method and device for processing management data, distributed disaster tolerance method and distributed disaster tolerance system Download PDF

Info

Publication number
CN104468670A
CN104468670A CN201310435719.3A CN201310435719A CN104468670A CN 104468670 A CN104468670 A CN 104468670A CN 201310435719 A CN201310435719 A CN 201310435719A CN 104468670 A CN104468670 A CN 104468670A
Authority
CN
China
Prior art keywords
message
services device
external services
old
management 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.)
Granted
Application number
CN201310435719.3A
Other languages
Chinese (zh)
Other versions
CN104468670B (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 method and a device for processing management data, a distributed disaster tolerance method and a distributed disaster tolerance system, which can prevent management confusion caused by a system with a plurality of central servers managing peripheral servers. The method comprises the steps that at least two central servers send a message with weight to the peripheral servers; the peripheral servers receive the message and analyze the weight in the message; according to time information and/or weight relation of the message, the peripheral servers accept or reject current message sent by the at least two central servers. Through adoption of the method, a plurality of central servers can be used for managing the peripheral servers; when the central server performing management goes wrong, other central servers can take over the task of management, so that the disaster tolerance performance of the system is improved; and the peripheral servers are managed only by one central server at the same time, so that management confusion caused by the fact that a plurality of central servers involve in management of the peripheral servers at the same time is prevented.

Description

A kind of process management data method, device and distributed disaster recovery method, system
Technical field
The present invention relates to DDM field, be specifically related to a kind of process management data method, device and distributed disaster recovery method, system.
Background technology
In a distributed system, employing use central server carrys out the external services device in management system usually.So-called central server, be the server being in charge of a distributed system, also referred to as management server, and external services device is for central server, specifically refer to the common server of not serving as role of manager in distributed system, also referred to as being managed server.The distributed system be made up of central server and external services device can be used for the disaster tolerance of data center.
In traditional distributed system, center service management external services device has two kinds of diverse ways usually.First method only has a central server serving as role of manager in whole distributed system, namely only adopts a central server to manage all external services devices.Second method has multiple central server serving as role of manager in whole distributed system, and namely multiple central server can manage all external services devices.In the second approach, in order to avoid multiple central server produces managerial confusion to system, the same time only allows a central server to manage peripheral server, and the state monitoring it is responsible for by other central servers.When the central server being in charge of external services device breaks down, use another central server to replace, continue the responsibility fulfiling management external services device.
The first method defect that above-mentioned prior art provides is apparent, that is, disaster tolerance poor performance, such as, when only central server breaks down, whole distributed system may be caused normally not run.The defect of second method is: inconsistent due to multiple central server condition monitoring, make system in fact may not serve as the central server of role of manager, or there is the central server of multiple identical role of manager simultaneously and cause managerial confusion.Such as, have M1 and M2 two central servers and S1, S2 and S3 tri-external services devices in supposing the system, wherein, M1 is Current central server, and M2 monitors M1.Further hypothesis M1 and M2 is in same subnet 1(hereinafter referred to as N1) in, S1, S2 and S3 are in another subnet (hereinafter referred to as N2), and under normal circumstances, N1 and N2 is intercommunication.When the route of centre goes wrong, N1 and N2 disconnects, M1 with M2 still can communicate, and the state that M2 monitors M1 is normal, but S1, S2 and S3 cannot communicate with M1, in fact without the central server serving as role of manager under this scene.And for example, suppose that M1 and M2 is in different subnets (hereinafter referred to as N3 and N4) respectively, S1, S2 and S3 are still in N2.When N3 with N2 communicates normally, N4 with N2 communicates also normal, during the connection fault of N3 and N4, M2 thinks that M1 breaks down by mistake, therefore start to manage these three external services devices of S1, S2 and S3, but now M1 is still at these three external services devices of normal management S1, S2 and S3, thus the managerial confusion causing the same time to there are two central servers and cause.
Summary of the invention
The embodiment of the present invention provide a kind of process management data method, device and distributed disaster recovery method, system, in case the managerial confusion caused when locking system has the central server of multiple management external services device.
On the one hand, the embodiment of the present invention provides a kind of distributed disaster recovery method, and described method comprises:
The message of weight is carried at least two central server server transmissions to the periphery, and described message comprises management data;
Described external services device receives described message and resolves the weight of carrying in described message;
Described external services device is according to the weight relationship of the temporal information of described message and/or described message, accept or reject the current message that described at least two central servers send, the temporal information of described message is the term of validity T that current time T and described external services device have been stored in local management data oldmagnitude relationship, the weight relationship of described message is the weights W of management data in the described message of the current reception of described external services device newthe weights W of local management data has been stored in described external services device oldmagnitude relationship.
On the other hand, the embodiment of the present invention provides a kind of distributed disaster tolerance system, and described system comprises external services device and at least two central servers, and described external services device comprises parsing module and data accept and reject module;
Described at least two central servers, carry the message of weight for server transmission to the periphery, described message comprises management data;
Described parsing module, for receiving described message and resolving the weight of carrying in described message;
Described data accept and reject module, for according to the temporal information of described message and/or the weight relationship of described message, accept or reject the current message that described at least two central servers send, the temporal information of described message is the term of validity T that current time T and described external services device have been stored in local management data oldmagnitude relationship, the weight relationship of described message is the weights W of management data in the described message of the current reception of described external services device newthe weights W of local management data has been stored in described external services device oldmagnitude relationship.
Again on the one hand, another embodiment of the present invention provides a kind of device processing management data, and described device comprises:
Parsing module, for receiving the message of at least two central servers transmissions and resolving the weight of carrying in described message;
Data accept and reject module, for according to the temporal information of described message and/or the weight relationship of described message, accept or reject the current message that described at least two central servers send, the temporal information of described message is the term of validity T that current time T and described external services device have been stored in local management data oldmagnitude relationship, the weight relationship of described message is the weights W of management data in the described message of the current reception of described external services device newthe weights W of local management data has been stored in described external services device oldmagnitude relationship.
Again on the one hand, another embodiment of the present invention provides a kind of method processing management data, and described method comprises:
External services device receives the message of at least two central servers transmissions and resolves the weight of carrying in described message, and described message comprises management data;
Described external services device is according to the weight relationship of the temporal information of described message and/or described message, accept or reject the current message that described at least two central servers send, the temporal information of described message is the term of validity T that current time T and described external services device have been stored in local management data oldmagnitude relationship, the weight relationship of described message is the weights W of management data in the described message of the current reception of described external services device newthe weights W of local management data has been stored in described external services device oldmagnitude relationship.
From the invention described above embodiment, the message that external services device receives carries weight, when the current message sent at least two central servers is accepted or rejected, is for foundation with the weight relationship of the temporal information of described message and/or message.Therefore, on the one hand, the method that the embodiment of the present invention provides can use multiple central server to manage peripheral server, and when obstacle appears in current central server of fulfiling management, other central servers can be taken over, and improve the disaster tolerance performance of system; On the other hand, external services device can be accepted or rejected the current message that at least two central servers send, then be equivalent to the management only accepting a central server at synchronization, thus avoid the multiple central server of synchronization all managerial confusion problems of causing of participative management external services device.
Accompanying drawing explanation
Fig. 1 is the basic procedure schematic diagram of the distributed disaster recovery method that the embodiment of the present invention provides;
Fig. 2 is the basic procedure schematic diagram of the method for the process management data that the embodiment of the present invention provides;
Fig. 3 is the distributed disaster tolerance system logical construction schematic diagram that the embodiment of the present invention provides;
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 the process management data that the embodiment of the present invention provides;
Fig. 7 is the device logical construction schematic diagram of the process management data that another embodiment of the present invention provides;
Fig. 8 is the device logical construction schematic diagram of the process management data that another embodiment of the present invention provides.
Embodiment
The embodiment of the present invention provides a kind of distributed disaster recovery method, comprising: the message of weight is carried at least two central server server transmissions to the periphery, and described message comprises management data; Described external services device receives described message and resolves the weight of carrying in described message; Described external services device is according to the weight relationship of the temporal information of described message and/or described message, accept or reject the current message that described at least two central servers send, the temporal information of described message is the term of validity T that current time T and described external services device have been stored in local management data oldmagnitude relationship, the weight relationship of described message is the weights W of management data in the described message of the current reception of described external services device newthe weights W of local management data has been stored in described external services device oldmagnitude relationship.The embodiment of the present invention also provides the method, device and the distributed disaster tolerance system that process management data accordingly.Below be described in detail respectively.
The basic procedure of the distributed disaster recovery method of the embodiment of the present invention with reference to figure 1, mainly can comprise step:
S101, the message of weight is carried at least two central server server transmissions to the periphery, and described message comprises management data.
Same as the prior art, in embodiments of the present invention, central server still serves as the role of management external services device.In embodiments of the present invention, central server can be in identical subnet, also can be in different subnets, also there is not monitoring and monitored relation between central server.All central servers all participate in sending to the management i.e. respective independent server to the periphery of peripheral server the message carrying management data, and the message of carrying management data also comprising central server transmission unlike the prior art has weight.It should be noted that, the weight of the message of central server server transmission is to the periphery the weight of the management data in message, is also the weight of this central server.Server sends message to central server to the periphery can be periodically send, and this cycle is all less than the term of validity of this message, that is, can send next message before a upper message is expired.
S102, the message that external services device receiving center server sends also resolves the weight of the management data carried in described message.
As previously mentioned, external services device remains the role be managed, and external services device sends by receiving center server the message carrying management data and realizes the management of central server to peripheral server.In embodiments of the present invention, external services device obtains the weight of wherein carrying by resolving described message after receiving the message of at least two central servers transmissions.
S103, the temporal information of the message that external services device sends according to central server and/or the weight relationship of described message, accept or reject the current message that described at least two central servers send.
In embodiments of the present invention, the temporal information of the message of central server transmission is the term of validity T that current time T and external services device have been stored in local management data oldmagnitude relationship, the weight relationship of message is the weights W of management data in the message of the current reception of external services device newthe weights W of local management data has been stored in external services device oldmagnitude relationship.Such as, the management data D1 sent before central server is stored in the local term of validity T also obtaining management data D1 according to the moment and weight thereof that received message at that time by external services device old, then the temporal information of message is the term of validity T that current time T and external services device have been stored in local management data D1 oldmagnitude relationship, the weight relationship of message is the weights W of the management data D ' 1 of the current reception of external services device newthe weights W of local management data D1 has been stored in external services device oldmagnitude relationship.
As one embodiment of the invention, the temporal information of the message that external services device sends according to central server and/or the weight relationship of described message, carry out choice to the message of at least two central servers transmissions and comprise following S1 and S2:
S1, compares W newwith W oldsize.
W herein newfor the weight of management data in the message of the current reception of external services device, W herein oldcentered by send before server and be stored in the weight of local management data by external services device, namely, sending and be stored in local management data by external services device before supposing central server is D1, and in the message of the current reception of external services device, management data is D ' 1, then W newfor the weight of D ' 1, W oldfor the weight of D1.
S2, if W newbe greater than W old, be then management data in the described message of the current reception of described external services device by the managing data updates received before external services device.
Illustrate according to above-mentioned, if the weights W of D ' 1 newbe greater than the weights W of D1 old, then D ' 1 is updated to D1, that is, the management data D1 preserved before no longer adopting, then uses new management data D ' 1.
As another embodiment of the present invention, the temporal information of the message that external services device sends according to central server and/or the weight relationship of described message, carry out choice to the message of at least two central servers transmissions and comprise following S ' 1 to S ' 4:
S ' 1, compares W newwith W oldsize.
Identical with previous embodiment, W herein newfor the weight of management data in the message of the current reception of external services device, W herein oldcentered by send before server and be stored in the weight of local management data by external services device, namely, sending and be stored in local management data by external services device before supposing central server is D1, and in the message of the current reception of external services device, management data is D ' 1, then W newfor the weight of D ' 1, W oldfor the weight of D1.
S ' 2, if described W newbe greater than described W old, be then management data in the described message of the current reception of described external services device by the managing data updates received before external services device.
Illustrate according to above-mentioned, if the weights W of D ' 1 newbe greater than the weights W of D1 old, then D ' 1 is updated to D1, the management data D1 preserved before namely no longer adopting, then uses new management data D ' 1.
S ' 3, if described W newbe not more than described W old, then T is compared oldwith the size of T.
At W newbe not more than W oldtime, still can not determine and whether select the management data of the current reception of external services device and the management data received before giving up external services device, also need to compare T further oldwith the size of T.Herein, T oldfor external services device has been stored in the term of validity of local management data, T is current time, i.e. the moment of the current receipt message of external services device.
S ' 4, if described T oldbeing less than or equal to described T, is then management data in the described message of the current reception of described external services device by the managing data updates received before external services device, if described T oldbe greater than described T, then give up the described message of the current reception of described external services device.
Such as, the management data D1 sent before central server is stored in the local term of validity T also obtaining management data D1 according to the moment and weight thereof that received message at that time by external services device old, the management data of the current reception of external services device is D ' 1.At T oldwhen being less than or equal to current time T, then management data D1 being updated to management data is D ' 1, the management data D1 preserved before namely no longer adopting, then uses new management data D ' 1.If the result compared is T oldbe greater than T, then give up the message of the current reception of external services device thus give up management data D ' 1, still adopt and to have sent before central server and to be stored in the management data D1 of external services device this locality.
As previously mentioned, the weight of management data is also the weight of central server, and under normal circumstances, different central servers has different weights, external services device is selected a management data based on the weight of management data and gives up another management data, this guarantees the management that synchronization external services device in fact only accepts a central server.The temporal information of message sent according to central server according to above-mentioned external services device and/or the weight relationship of described message, to two embodiments that the message of at least two central servers transmissions is accepted or rejected, all not break down for two central servers (below respectively use M1 and M2 be called for short) below and one of them breaks down, the method that the embodiment of the present invention provides is described.
Such as, central server 1(is hereinafter referred to as M1) and central server 2(hereinafter referred to as M2) weight be respectively w1 and w2, and w1 is greater than w2.When M1 and M2 does not break down, because weight w1 is greater than w2, the management data that M2 is sent on each external services device is actually invalid, external services device uses the management data of M1 always, whole system is equivalent to only have this central server of M1 carrying out the management to peripheral server, ensure that the consistency of management data, thus avoid the confusion of management.
And for example, when M2 breaks down, each external services device no longer receives the message of M2, but the weight w2 due to M2 is less than the weight w1 of M1, and the message of M2 natively ignored by external services device, therefore can not have an impact to system.
For another example, when M1 breaks down, on each external services device, original management data can be expired gradually, according to the processing logic of above-described embodiment, external services device will adopt the new management data of M2 to upgrade and be stored in local management data, system still can be managed by M2, and the fault of M1 does not hinder the management function of system.
Refer to accompanying drawing 2, be a kind of basic procedure processing the method for management data that the embodiment of the present invention provides, mainly comprise step S201 and step S202, be described in detail as follows:
S201, the message that external services device receiving center server sends also resolves the weight of the management data carried in described message.
As previously mentioned, external services device remains the role be managed, and external services device sends by receiving center server the message carrying management data and realizes the management of central server to peripheral server.In embodiments of the present invention, external services device obtains the weight of wherein carrying by resolving described message after receiving the message of at least two central servers transmissions.
S202, the temporal information of the message that external services device sends according to central server and/or the weight relationship of described message, accept or reject the current message that described at least two central servers send.
In embodiments of the present invention, the temporal information of the message of central server transmission is the term of validity T that current time T and external services device have been stored in local management data oldmagnitude relationship, the weight relationship of message is the weights W of management data in the message of the current reception of external services device newthe weights W of local management data has been stored in external services device oldmagnitude relationship.Such as, the management data D1 sent before central server is stored in the local term of validity T also obtaining management data D1 according to the moment and weight thereof that received message at that time by external services device old, then the temporal information of message is the term of validity T that current time T and external services device have been stored in local management data D1 oldmagnitude relationship, the weight relationship of message is the weights W of the management data D ' 1 of the current reception of external services device newthe weights W of local management data D1 has been stored in external services device oldmagnitude relationship.
As one embodiment of the invention, the temporal information of the message that external services device sends according to central server and/or the weight relationship of described message, carry out choice to the message of at least two central servers transmissions and comprise following S21 and S22:
S21, compares W newwith W oldsize.
W herein newfor the weight of management data in the message of the current reception of external services device, W herein oldcentered by send before server and be stored in the weight of local management data by external services device, namely, sending and be stored in local management data by external services device before supposing central server is D1, and in the message of the current reception of external services device, management data is D ' 1, then W newfor the weight of D ' 1, W oldfor the weight of D1.
S22, if W newbe greater than W old, be then management data in the described message of the current reception of described external services device by the managing data updates received before external services device.
Illustrate according to above-mentioned, if the weights W of D ' 1 newbe greater than the weights W of D1 old, then D ' 1 is updated to D1, that is, the management data D1 preserved before no longer adopting, then uses new management data D ' 1.
As another embodiment of the present invention, the temporal information of the message that external services device sends according to central server and/or the weight relationship of described message, carry out choice to the message of at least two central servers transmissions and comprise following S ' 21 to S ' 24:
S ' 21, compares W newwith W oldsize.
Identical with previous embodiment, W herein newfor the weight of management data in the message of the current reception of external services device, W herein oldcentered by send before server and be stored in the weight of local management data by external services device, namely, sending and be stored in local management data by external services device before supposing central server is D1, and in the message of the current reception of external services device, management data is D ' 1, then W newfor the weight of D ' 1, W oldfor the weight of D1.
S ' 22, if described W newbe greater than described W old, be then management data in the described message of the current reception of described external services device by the managing data updates received before external services device.
Illustrate according to above-mentioned, if the weights W of D ' 1 newbe greater than the weights W of D1 old, then D ' 1 is updated to D1, the management data D1 preserved before namely no longer adopting, then uses new management data D ' 1.
S ' 23, if described W newbe not more than described W old, then T is compared oldwith the size of T.
At W newbe not more than W oldtime, still can not determine and whether select the management data of the current reception of external services device and the management data received before giving up external services device, also need to compare T further oldwith the size of T.Herein, T oldfor external services device has been stored in the term of validity of local management data, T is current time, i.e. the moment of the current receipt message of external services device.
S ' 24, if described T oldbeing less than or equal to described T, is then management data in the described message of the current reception of described external services device by the managing data updates received before external services device, if described T oldbe greater than described T, then give up the described message of the current reception of described external services device.
Such as, the management data D1 sent before central server is stored in the local term of validity T also obtaining management data D1 according to the moment and weight thereof that received message at that time by external services device old, the management data of the current reception of external services device is D ' 1.At T oldwhen being less than or equal to current time T, then management data D1 being updated to management data is D ' 1, the management data D1 preserved before namely no longer adopting, then uses new management data D ' 1.If the result compared is T oldbe greater than T, then give up the message of the current reception of external services device thus give up management data D ' 1, still adopt and to have sent before central server and to be stored in the management data D1 of external services device this locality.
As previously mentioned, the weight of management data is also the weight of central server, and under normal circumstances, different central servers has different weights, external services device is selected a management data based on the weight of management data and gives up another management data, this guarantees the management that synchronization external services device in fact only accepts a central server.The temporal information of message sent according to central server according to above-mentioned external services device and/or the weight relationship of described message, to two embodiments that the message of at least two central servers transmissions is accepted or rejected, all not break down for two central servers (below respectively use M1 and M2 be called for short) below and one of them breaks down, the method that the embodiment of the present invention provides is described.
Such as, central server 1(is hereinafter referred to as M1) and central server 2(hereinafter referred to as M2) weight be respectively w1 and w2, and w1 is greater than w2.When M1 and M2 does not break down, because w1 is greater than w2, the management data that M2 is sent on each external services device is actually invalid, external services device uses the management data of M1 always, whole system is equivalent to only have this central server of M1 carrying out the management to peripheral server, ensure that the consistency of management data, thus avoid the confusion of management.
And for example, when M2 breaks down, each external services device no longer receives the message of M2, but the weight w2 due to M2 is less than the weight w1 of M1, and the message of M2 natively ignored by external services device, therefore can not have an impact to system.
For another example, when M1 breaks down, on each external services device, original management data can be expired gradually, according to the processing logic of above-described embodiment, external services device will adopt the new management data of M2 to upgrade and be stored in local management data, system still can be managed by M2, and the fault of M1 does not hinder the management function of system.
Be described the distributed disaster tolerance system of the embodiment of the present invention for performing above-mentioned distributed disaster recovery method below, its basic logical structure is with reference to figure 3.For convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, mainly comprise external services device 303 and at least two central servers 301 and 302, wherein, external services device 303 comprises parsing module 3031 and data accept and reject module 3032, and each equipment is described in detail as follows:
Central server 301 and central server 302, carry the message of weight for server 303 transmission to the periphery, described message comprises management data;
Parsing module 3031, for receiving described message and resolving the weight of carrying in described message;
Data accept and reject module 3032, for according to the temporal information of described message and/or the weight relationship of described message, accept or reject the current message that described at least two central servers 301 and 302 send, the temporal information of described message is the term of validity T that current time T and described external services device 303 have been stored in local management data oldmagnitude relationship, the weight relationship of described message is the weights W of management data in the described message of the current reception of described external services device 303 newthe weights W of local management data has been stored in described external services device 303 oldmagnitude relationship.
The data accept and reject module 3032 of accompanying drawing 3 example can comprise the first comparing unit 401 and the first updating block 402, as shown in Figure 4 the distributed disaster tolerance system that provides of another embodiment of the present invention, wherein:
First comparing unit 401, for more described W newwith described W oldsize;
First updating block 402, if be described W for the comparative result of described first comparing unit 401 newbe greater than described W old, then the managing data updates received before by described external services device 303 is management data in the described message of the current reception of described external services device 303.
The data accept and reject module 3032 of accompanying drawing 3 example can comprise the first comparing unit 401, first updating block 402, second comparing unit 501 and the second updating block 502, as shown in Figure 5 the distributed disaster tolerance system that provides of another embodiment of the present invention, wherein:
First comparing unit 401, for more described W newwith described W oldsize;
First updating block 402, if be described W for the comparative result of described first comparing unit newbe greater than described W old, then the managing data updates received before by described external services device 303 is management data in the described message of the current reception of described external services device 303;
Second comparing unit 501, if be described W for the comparative result of described first comparing unit 401 newbe not more than described W old, then more described T oldwith the size of described T;
Second updating block 502, if be described T for the comparative result of described second comparing unit 501 oldbe less than or equal to described T, then the managing data updates received before by described external services device 303 is management data in the described message of the current reception of described external services device 303, if the comparative result of described second comparing unit 501 is described T oldbe greater than described T, then give up the described message of the current reception of described external services device 303.
Be described the device of the process management data of the embodiment of the present invention of the method for performing above-mentioned process management data below, its basic logical structure is with reference to figure 6.For convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.The device of the process management data of accompanying drawing 6 example can be functional unit or the external services device of external services device, and it mainly comprises parsing module 601 and data accept and reject module 602, and each module is described in detail as follows:
Parsing module 601, for receiving the message of at least two central servers transmissions and resolving the weight of carrying in described message;
Data accept and reject module 602, for according to the temporal information of described message and/or the weight relationship of described message, accept or reject the current message that described at least two central servers send, the temporal information of described message is the term of validity T that current time T and described external services device have been stored in local management data oldmagnitude relationship, the weight relationship of described message is the weights W of management data in the described message of the current reception of described external services device newthe weights W of local management data has been stored in described external services device oldmagnitude relationship.
The data accept and reject module 602 of accompanying drawing 6 example can comprise the first comparing unit 701 and the first updating block 702, as shown in Figure 7 the device of process management data that provides of another embodiment of the present invention, wherein:
First comparing unit 701, for more described W newwith described W oldsize;
First updating block 702, if be described W for the comparative result of described first comparing unit 701 newbe greater than described W old, be then management data in the described message of the current reception of described external services device by the managing data updates received before described external services device.
The data accept and reject module 602 of accompanying drawing 6 example can comprise the first comparing unit 701, first updating block 702, second comparing unit 801 and the second updating block 802, as shown in Figure 8 the device of process management data that provides of another embodiment of the present invention, wherein:
First comparing unit 701, for more described W newwith described W oldsize;
First updating block 702, if be described W for the comparative result of described first comparing unit newbe greater than described W old, be then management data in the described message of the current reception of described external services device by the managing data updates received before described external services device;
Second comparing unit 801, if be described W for the comparative result of described first comparing unit 701 newbe not more than described W old, then more described T oldwith the size of described T;
Second updating block 802, if be described T for the comparative result of described second comparing unit 801 oldbeing less than or equal to described T, is then management data in the described message of the current reception of described external services device by the managing data updates received before described external services device, if the comparative result of described second comparing unit 801 is described T oldbe greater than described T, then give up the described message of the current reception of described external services device.
It should be noted that, the content such as information interaction, implementation between each module/unit of said apparatus, due to the inventive method embodiment based on same design, its technique effect brought is identical with the inventive method embodiment, particular content see describing in the inventive method embodiment, can repeat no more herein.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer-readable recording medium, storage medium can comprise: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
Above the method for the process management data that the embodiment of the present invention provides, device and distributed disaster recovery method, system are described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (12)

1. a distributed disaster recovery method, is characterized in that, described method comprises:
At least two central server server transmissions to the periphery carry the message of weight, and described message comprises management data;
Described external services device receives described message and resolves the weight of carrying in described message;
Described external services device is according to the weight relationship of the temporal information of described message and/or described message, accept or reject the current message that described at least two central servers send, the temporal information of described message is the term of validity T that current time T and described external services device have been stored in local management data oldmagnitude relationship, the weight relationship of described message is the weights W of management data in the described message of the current reception of described external services device newthe weights W of local management data has been stored in described external services device oldmagnitude relationship.
2. method according to claim 1, is characterized in that, described external services device is according to the weight relationship of the temporal information of described message and/or described message, and the message sent described at least two central servers is carried out choice and comprised:
More described W newwith described W oldsize;
If described W newbe greater than described W old, be then management data in the described message of the current reception of described external services device by managing data updates in the described message received before described external services device.
3. method according to claim 1, is characterized in that, described external services device is according to the weight relationship of the temporal information of described message and/or described message, and the message sent described at least two central servers is carried out choice and comprised:
More described W newwith described W oldsize;
If described W newbe greater than described W old, be then management data in the described message of the current reception of described external services device by the managing data updates received before described external services device;
If described W newbe not more than described W old, then more described T oldwith the size of described T;
If described T oldbeing less than or equal to described T, is then management data in the described message of the current reception of described external services device by the managing data updates received before described external services device, if described T oldbe greater than described T, then give up the described message of the current reception of described external services device.
4. process a method for management data, it is characterized in that, described method comprises:
External services device receives the message of at least two central servers transmissions and resolves the weight of carrying in described message, and described message comprises management data;
Described external services device is according to the weight relationship of the temporal information of described message and/or described message, accept or reject the current message that described at least two central servers send, the temporal information of described message is the term of validity T that current time T and described external services device have been stored in local management data oldmagnitude relationship, the weight relationship of described message is the weights W of management data in the described message of the current reception of described external services device newthe weights W of local management data has been stored in described external services device oldmagnitude relationship.
5. method according to claim 4, is characterized in that, described in, described external services device is according to the weight relationship of the temporal information of described message and/or described message, and the message sent described at least two central servers is carried out choice and comprised:
More described W newwith described W oldsize;
If described W newbe greater than described W old, be then management data in the described message of the current reception of described external services device by the managing data updates received before described external services device.
6. method according to claim 4, is characterized in that, described external services device is according to the weight relationship of the temporal information of described message and/or described message, and the message sent described at least two central servers is carried out choice and comprised:
More described W newwith described W oldsize;
If described W newbe greater than described W old, be then management data in the described message of the current reception of described external services device by managing data updates in the described message received before described external services device;
If described W newbe not more than described W old, then more described T oldwith the size of described T;
If described T oldbeing less than or equal to described T, is then management data in the described message of the current reception of described external services device by the managing data updates received before described external services device, if described T oldbe greater than described T, then give up the described message of the current reception of described external services device.
7. a distributed disaster tolerance system, is characterized in that, described system comprises external services device and at least two central servers, and described external services device comprises parsing module and data accept and reject module;
Described at least two central servers, carry the message of weight for server transmission to the periphery, described message comprises management data;
Described parsing module, for receiving described message and resolving the weight of carrying in described message;
Described data accept and reject module, for according to the temporal information of described message and/or the weight relationship of described message, accept or reject the current message that described at least two central servers send, the temporal information of described message is the term of validity T that current time T and described external services device have been stored in local management data oldmagnitude relationship, the weight relationship of described message is the weights W of management data in the described message of the current reception of described external services device newthe weights W of local management data has been stored in described external services device oldmagnitude relationship.
8. system according to claim 7, is characterized in that, described data accept and reject module comprises:
First comparing unit, for more described W newwith described W oldsize;
First updating block, if be described W for the comparative result of described first comparing unit newbe greater than described W old, be then management data in the described message of the current reception of described external services device by the managing data updates received before described external services device.
9. system according to claim 7, is characterized in that, described data accept and reject module comprises:
First comparing unit, for more described W newwith described W oldsize;
First updating block, if be described W for the comparative result of described first comparing unit newbe greater than described W old, be then management data in the described message of the current reception of described external services device by the managing data updates received before described external services device;
Second comparing unit, if be described W for the comparative result of described first comparing unit newbe not more than described W old, then more described T oldwith the size of described T;
Second updating block, if be described T for the comparative result of described second comparing unit oldbeing less than or equal to described T, is then management data in the described message of the current reception of described external services device by the managing data updates received before described external services device, if the comparative result of described second comparing unit is described T oldbe greater than described T, then give up the described message of the current reception of described external services device.
10. process a device for management data, it is characterized in that, described device comprises:
Parsing module, for receiving the message of at least two central servers transmissions and resolving the weight of carrying in described message;
Data accept and reject module, for according to the temporal information of described message and/or the weight relationship of described message, accept or reject the current message that described at least two central servers send, the temporal information of described message is the term of validity T that current time T and described external services device have been stored in local management data oldmagnitude relationship, the weight relationship of described message is the weights W of management data in the described message of the current reception of described external services device newthe weights W of local management data has been stored in described external services device oldmagnitude relationship.
11. devices according to claim 10, is characterized in that, described data accept and reject module comprises:
First comparing unit, for more described W newwith described W oldsize;
First updating block, if be described W for the comparative result of described first comparing unit newbe greater than described W old, be then management data in the described message of the current reception of described external services device by the managing data updates received before described external services device.
12. devices according to claim 10, is characterized in that, described data accept and reject module comprises:
First comparing unit, for more described W newwith described W oldsize;
First updating block, if be described W for the comparative result of described first comparing unit newbe greater than described W old, be then management data in the described message of the current reception of described parsing module by managing data updates in the described message received before described external services device;
Second comparing unit, if be described W for the comparative result of described first comparing unit newbe not more than described W old, then more described T oldwith the size of described T;
Second updating block, if be described T for the comparative result of described second comparing unit oldbeing less than or equal to described T, is then management data in the described message of the current reception of described external services device by the managing data updates received before described external services device, if the comparative result of described second comparing unit is described T oldbe greater than described T, then give up the described message of the current reception of described parsing module.
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 true CN104468670A (en) 2015-03-25
CN104468670B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108875035A (en) * 2018-06-25 2018-11-23 郑州云海信息技术有限公司 The date storage method and relevant device of distributed file system

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 (5)

* 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
US20090089452A1 (en) * 2007-09-27 2009-04-02 Fujitsu Limited 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

Cited By (2)

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

Also Published As

Publication number Publication date
CN104468670B (en) 2018-10-23

Similar Documents

Publication Publication Date Title
CN107295080B (en) Data storage method applied to distributed server cluster and server
CN103460203B (en) cluster unique identifier
CN109474465A (en) A kind of method and system of the high availability that can dynamically circulate based on server cluster
CN102946405A (en) SMB2 Scaleout
CN108683528B (en) Data transmission method, central server, server and data transmission system
US10764939B2 (en) Network function processing method and related device
CN105429799A (en) Server backup method and device
CN103036719A (en) Cross-regional service disaster method and device based on main cluster servers
CN108696581A (en) Caching method, device, computer equipment and the storage medium of distributed information
CN104301140A (en) Service request responding method, device and system
CN108306760A (en) For making the self-healing method and apparatus of managerial ability in a distributed system
CN110830324A (en) Method and device for detecting network connectivity of data center and electronic equipment
CN110943878A (en) Heartbeat packet transmission method, terminal and device with storage function
CN105808374A (en) Snapshot processing method and associated equipment
CN101145972A (en) A disaster tolerance network management system and login method of network management clients
CN108509296B (en) Method and system for processing equipment fault
CN106936646B (en) method and device for determining main master control board
CN108667640B (en) Communication method and device, and network access system
CN113810216A (en) Cluster fault switching method and device and electronic equipment
CN106027313B (en) Network link disaster tolerance system and method
CN111953808A (en) Data transmission switching method of dual-machine dual-active architecture and architecture construction system
CN110224872B (en) Communication method, device and storage medium
CN104468670A (en) Method and device for processing management data, distributed disaster tolerance method and distributed disaster tolerance system
CN103414591A (en) Method and system for fast converging when port failure is recovered
CN114610545A (en) Method, system, device and medium for reducing single point of failure of private cloud computing

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