CN105554135B - The method and device of synchronous metamessage between back end - Google Patents

The method and device of synchronous metamessage between back end Download PDF

Info

Publication number
CN105554135B
CN105554135B CN201510981820.8A CN201510981820A CN105554135B CN 105554135 B CN105554135 B CN 105554135B CN 201510981820 A CN201510981820 A CN 201510981820A CN 105554135 B CN105554135 B CN 105554135B
Authority
CN
China
Prior art keywords
metamessage
data node
back end
target data
node
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
CN201510981820.8A
Other languages
Chinese (zh)
Other versions
CN105554135A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510981820.8A priority Critical patent/CN105554135B/en
Publication of CN105554135A publication Critical patent/CN105554135A/en
Application granted granted Critical
Publication of CN105554135B publication Critical patent/CN105554135B/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
    • 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/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The invention discloses a kind of method and devices of metamessage synchronous between back end, applied to the data-storage system including multiple back end.The described method includes: for each back end: configuring and establish target data node of the network connection for the metamessage of the synchronous back end with the back end, wherein by there is network connectivty with all back end postponed;Whether the metamessage for detecting the back end updates, if so, the metamessage of source data node is synchronized to target data node using the back end as source data node, to update the metamessage of target data node.Above scheme overcome the prior art need to synchronize metamessage between all back end and caused by data transmission times it is more, network overhead is big, the defect that consuming time is long, reduces network overhead, advantageously control transmission time, improves synchronous efficiency.

Description

The method and device of synchronous metamessage between back end
Technical field
The present invention relates to field of computer technology, and in particular to the method and dress of synchronous metamessage between a kind of back end It sets.
Background technique
Data dispersion is exactly stored in more independent equipment by distributed data-storage system, for many data The group system of node, in distributed data-storage system, each back end requires to safeguard respective metamessage, and The metamessage of all back end requires to be consistent.
In prior art, each back end establishes net with other back end in distributed data-storage system Network connection, for example, distributed data-storage system has 5 back end, is numbered are as follows: 1,2,3,4,5 respectively, that is to say, that number Need to establish network connection respectively with back end 2,3,4,5 according to node 1, back end 2 needs and 1,3,4,5 point of back end Connection is not established, similarly for back end 3,4,5, after the metamessage of any data node updates, by having been established Network connection metamessage after update is transferred to other back end, that is to say, that when back end 1 metamessage occur more After new, by the network connection established with back end 2,3,4,5 by updated metamessage be transferred to back end 2,3, 4,5, but back end 2 and back end 3,4,5 equally also will do it the transmission of metamessage, and meaningless metamessage is caused to pass Out, additional network overhead is caused, additional network overhead similarly will cause for back end 3,4,5, and due to same When to every other back end transmit updated metamessage, cause the transmission rate of metamessage low, take a substantial amount of time.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State the method for synchronous metamessage and the device of synchronous metamessage between corresponding back end between the back end of problem.
According to an aspect of the invention, there is provided between a kind of back end synchronous metamessage method, applied to including The data-storage system of multiple back end, this method comprises:
For each back end:
It configures and establishes target data node of the network connection for the metamessage of the synchronous back end with the back end, Wherein, by there is network connectivty with all back end postponed;
Whether the metamessage for detecting the back end updates, if so, using the back end as source data node, The metamessage of source data node is synchronized to target data node, to update the metamessage of target data node.
According to another aspect of the present invention, a kind of device of synchronous metamessage between back end is provided, applied to including The data-storage system of multiple back end, the device include: configuration module, detection module and synchronization module;
Wherein, for each back end:
Configuration module is connected to the network the metamessage for the synchronous back end suitable for configuring to establish with the back end Target data node, wherein by there is network connectivty with all back end postponed;
Whether detection module, the metamessage for being adapted to detect for the back end update;
Synchronization module, in the case where suitable for detecting that the metamessage of back end is updated in detection module, with the number According to node as source data node, the metamessage of source data node is synchronized to target data node, to update target data section The metamessage of point.
Scheme is provided according to the present invention, configures and establishes member of the network connection for the synchronous back end with the back end The target data node of information, wherein by there is network connectivty with all back end postponed, detect the back end Metamessage whether update, it is if so, using the back end as source data node, the metamessage of source data node is same It walks and gives target data node, to update the metamessage of target data node, overcome in prior art, need all numbers According to metamessage will be synchronized between node and caused by data transmission times it is more, network overhead is big, the defect that consuming time is long, especially It is to reduce because of back end all more meta informations, but still need to transmit metamessage between two back end and cause Data transmission times, reduce network overhead, advantageously control transmission time, improve synchronous efficiency.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
The process that Fig. 1 shows the method for synchronizing metamessage between back end according to an embodiment of the invention is illustrated Figure;
Fig. 2 shows the process signals of the method for metamessage synchronous between back end in accordance with another embodiment of the present invention Figure;
The process that Fig. 3 shows the method for synchronizing metamessage between back end in accordance with another embodiment of the present invention is illustrated Figure;
Fig. 4 shows the functional block diagram of the device of synchronous metamessage between back end according to an embodiment of the invention;
Fig. 5 shows the functional block of the device of synchronous metamessage between back end in accordance with another embodiment of the present invention Figure.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
The process that Fig. 1 shows the method for synchronizing metamessage between back end according to an embodiment of the invention is illustrated Figure.This method is applied to the data-storage system including multiple back end, as shown in Figure 1, method includes the following steps:
For each back end:
Step S100 is configured and is established target of the network connection for the metamessage of the synchronous back end with the back end Back end, wherein by there is network connectivty with all back end postponed.
Wherein, metamessage is the data for describing data, mainly describes the information of data attribute, for supporting instruction such as to deposit The functions such as storage space sets, historical data, resource lookup, file record.Each back end, which requires maintenance, respective metamessage.
In data-storage system, when the metamessage of any data node updates, need the back end Metamessage is synchronized to other back end, so that the metamessage of back end is consistent.
In embodiments of the present invention, between back end by Network Synchronization metamessage, target data node be relative to For the back end that metamessage updates, member letter of the target data node for the synchronous back end updated Breath configures for each back end and is connected to the network the metamessage for the synchronous back end with back end foundation Target data node, wherein by having network connectivty with all back end postponed, network connectivity here is specific It is presented as that updated metamessage can be synchronized to every other data after the metamessage of any data node updates Node.
Whether step S101, the metamessage for detecting the back end update, if so, using the back end as source The metamessage of source data node is synchronized to target data node by back end, to update the metamessage of target data node.
Wherein, the update of metamessage, which can be, increases metamessage, modification metamessage or deletes metamessage etc., in the present invention In embodiment, whether the metamessage by detecting the back end updates, and can determine whether metamessage is synchronous To the target data node of the back end, in the case where detecting that the metamessage of the back end updates, with the number According to node as source data node, the metamessage of source data node is synchronized to target data node, target data node is to it Metamessage is updated;In the case where detecting that the metamessage of the back end does not update, without executing any operation.
The method provided according to that above embodiment of the present invention, configuration establish network connection with the back end and are used for synchronous be somebody's turn to do The target data node of the metamessage of back end, wherein by there is network connectivty, inspection with all back end postponed Whether the metamessage for surveying the back end updates, if so, using the back end as source data node, by source data section The metamessage of point is synchronized to target data node, to update the metamessage of target data node, overcomes in prior art, Need to synchronize metamessage between all back end and caused by data transmission times it is more, network overhead is big, when consuming Between long defect especially reduce because of back end all more meta informations, but still need to transmit between two back end Data transmission times caused by metamessage reduce network overhead, advantageously control transmission time, improve synchronous efficiency.
Fig. 2 shows the process signals of the method for metamessage synchronous between back end in accordance with another embodiment of the present invention Figure.This method is applied to the data-storage system including multiple back end, as shown in Fig. 2, method includes the following steps:
For each back end:
Step S200 is configured and is established target of the network connection for the metamessage of the synchronous back end with the back end Back end, wherein by there is network connectivty with all back end postponed.
In embodiments of the present invention, between back end by Network Synchronization metamessage, target data node be relative to For the back end that metamessage updates, member letter of the target data node for the synchronous back end updated Breath, and target data node is a part of other all back end in data-storage system in addition to source data node. For each back end, configures and establish target of the network connection for the metamessage of the synchronous back end with the back end Back end, wherein by having network connectivty with all back end postponed, network connectivity here is embodied For after the metamessage of any data node updates, updated metamessage can be synchronized to every other data section Point.
For example, data-storage system includes 5 back end, number is 1,2,3,4,5 respectively, configuration data node 1 target data node is 3,5, and the target data node of configuration data node 3 is 2,4, after being configured by this, 5 numbers There is network connectivty according to node, that is to say, that, can be synchronous by metamessage after the metamessage of back end 1 updates To back end 3 and back end 5, after the more meta information of back end 3, and 2 sum number of back end can be synchronized to metamessage According to node 4, to realize that the metamessage of all back end is consistent.Certainly, those skilled in the art can arbitrarily configure each The target data node of back end, is merely illustrative here, does not have any restriction effect.
Step S201, whether the metamessage for detecting the back end updates, if so, thening follow the steps S202;If it is not, Then method terminates.
Wherein, the update of metamessage, which can be, increases metamessage, modification metamessage or deletes metamessage etc., in the present invention In embodiment, whether the metamessage by detecting the back end updates, and can determine whether metamessage is synchronous To the target data node of the back end.
Step S202 passes through the network established between target data node using the back end as source data node Connection, metamessage is pushed to target data node by source data node, to update the metamessage of target data node.
In the case where detecting that the metamessage of the back end is updated according to step S201, with back end work For source data node, which is actively pushed away metamessage by the network connection established between target data node It send to target data node, to update the metamessage of target data node.
Specifically, metamessage is pushed to target data node, such as source data by source data node every preset time period Metamessage can be pushed to target data node every 10 seconds by node, which can be set according to actual needs It sets, is merely illustrative here, do not have any restriction effect.
Step S203, judge target data node metamessage and the received metamessage from source data node whether one It causes, if inconsistent, thens follow the steps S204;If consistent, method terminates.
It, can be by by target data node after target data node receives the synchronous metamessage of source data node The mode that is compared with the received metamessage from source data node of metamessage determine the member letter of target data node Whether breath is consistent with the received metamessage from source data node, to determine the need for the metamessage to target data node It is updated.
The metamessage of destination node is updated to received metamessage by step S204.
Believe in the metamessage and the received member from source data node for judging target data node according to step S203 Cease it is inconsistent in the case where, need the metamessage of destination node being updated to received metamessage, thus between realizing back end Metamessage is consistent.
The method provided according to that above embodiment of the present invention, configuration establish network connection with the back end and are used for synchronous be somebody's turn to do The target data node of the metamessage of back end, wherein by there is network connectivty, inspection with all back end postponed Whether the metamessage for surveying the back end updates, if so, using the back end as source data node, by with target Metamessage is pushed to target data node by the network connection established between back end, source data node, to update number of targets It according to the metamessage of node, overcomes in prior art, needs to synchronize metamessage between all back end and make At data transmission times it is more, network overhead is big, the defect that consuming time is long, especially, reduces because of back end all more Meta information, but data transmission times caused by the transmission metamessage between two back end are still needed to, dynamically control Metamessage transmission rate reduces network overhead, advantageously control transmission time, improves synchronous efficiency, judges target data Whether the metamessage of node and the received metamessage from source data node are consistent, if inconsistent, the member of destination node is believed Breath is updated to received metamessage, can be to avoid meaningless more meta information.
The process that Fig. 3 shows the method for synchronizing metamessage between back end in accordance with another embodiment of the present invention is illustrated Figure.This method is applied to the data-storage system including multiple back end, as shown in figure 3, method includes the following steps:
For each back end:
Step S300 is configured and is established target of the network connection for the metamessage of the synchronous back end with the back end Back end, wherein by there is network connectivty with all back end postponed.
Step S301, whether the metamessage for detecting the back end updates, if so, thening follow the steps S202;If it is not, Then method terminates.
Step S200- step S201 in embodiment illustrated in fig. 3 in step S300- step S301 and embodiment illustrated in fig. 2 Similar, details are not described herein.
Step S302 is connected using the back end as source data node by the network established between source data node It connects, target data node pulls metamessage from source data node, to update the metamessage of target data node.
In step S300, it has been configured with and has established member of the network connection for the synchronous back end with the back end The target data node of information, after the metamessage for detecting the back end updates, target data node can pass through The network connection established between source data node actively pulls metamessage from source data node.
More specifically, can be with the following method: target data node be updated according to the metamessage that source data node is sent Message pulls metamessage from source data node.That is, source data node can after the metamessage of source data node updates To send metamessage update message to target data node, target data node is after receiving the update message, from source data Node pulls metamessage.
Alternatively, target data node every preset time period pulls metamessage from source data node.Such as target data section Point can pull metamessage from source data node every 10 seconds, which can be configured according to actual needs, this In be merely illustrative, do not have any restriction effect.
Step S303 judges whether the metamessage of target data node is consistent with the metamessage pulled, if inconsistent, holds Row step S304;If consistent, method terminates.
Target can be determined by way of being compared the metamessage of target data node with the metamessage pulled Whether the metamessage of back end and the metamessage pulled consistent, with determine the need for the metamessage of target data node into Row updates.
The metamessage of target data node is updated to the metamessage pulled by step S304.
In the case where the metamessage and the metamessage pulled for judging target data node according to step S303 are inconsistent, It needs the metamessage of destination node being updated to the metamessage pulled, to realize that metamessage is consistent between back end.
The method provided according to that above embodiment of the present invention, configuration establish network connection with the back end and are used for synchronous be somebody's turn to do The target data node of the metamessage of back end, wherein by there is network connectivty, inspection with all back end postponed Whether the metamessage for surveying the back end updates, if so, using the back end as source data node, by with source number According to the network connection established between node, target data node pulls metamessage from source data node, to update target data section The metamessage of point, overcomes in prior art, need to synchronize metamessage between all back end and caused by Data transmission times are more, and network overhead is big, the defect that consuming time is long, especially, reduce because of back end all more Singapore dollars Information, but data transmission times caused by the transmission metamessage between two back end are still needed to, dynamically control first letter Transmission rate is ceased, network overhead is reduced, advantageously control transmission time, synchronous efficiency is improved, judges target data node Metamessage it is whether consistent with the metamessage that pulls, if inconsistent, the metamessage of destination node is updated to the metamessage pulled, It can be to avoid meaningless more meta information.
Fig. 4 shows the functional block diagram of the device of synchronous metamessage between back end according to an embodiment of the invention. The device be applied to including multiple back end data-storage system, as shown in figure 4, the device include: configuration module 400, Detection module 410 and synchronization module 420.
Wherein, for each back end:
Configuration module 400, suitable for configuring the member letter for establishing network connection for the synchronous back end with the back end The target data node of breath, wherein by there is network connectivty with all back end postponed.
Whether detection module 410, the metamessage for being adapted to detect for the back end update.
Synchronization module 420, in the case where suitable for detecting that the metamessage of back end is updated in detection module, with this Back end is synchronized to target data node as source data node, by the metamessage of source data node, to update target data The metamessage of node.
The device provided according to that above embodiment of the present invention, configuration establish network connection with the back end and are used for synchronous be somebody's turn to do The target data node of the metamessage of back end, wherein by there is network connectivty, inspection with all back end postponed Whether the metamessage for surveying the back end updates, if so, using the back end as source data node, by source data section The metamessage of point is synchronized to target data node, to update the metamessage of target data node, overcomes in prior art, Need to synchronize metamessage between all back end and caused by data transmission times it is more, network overhead is big, when consuming Between long defect especially reduce because of back end all more meta informations, but still need to transmit between two back end Data transmission times caused by metamessage reduce network overhead, advantageously control transmission time, improve synchronous efficiency.
Fig. 5 shows the functional block of the device of synchronous metamessage between back end in accordance with another embodiment of the present invention Figure.The device is applied to the data-storage system including multiple back end, as shown in figure 5, the device includes: configuration module 500, detection module 510 and synchronization module 520.
Wherein, for each back end:
Configuration module 500, suitable for configuring the member letter for establishing network connection for the synchronous back end with the back end The target data node of breath, wherein by there is network connectivty with all back end postponed.
Whether detection module 510, the metamessage for being adapted to detect for the back end update.
Synchronization module 520, in the case where suitable for detecting that the metamessage of back end is updated in detection module, with this Back end is synchronized to target data node as source data node, by the metamessage of source data node, to update target data The metamessage of node.
Optionally, synchronization module 520 is further adapted for: by the network connection established between target data node, being supplied Metamessage is pushed to target data node by source data node, to update the metamessage of target data node.
Optionally, device further include: judgment module 530 and update module 540.
In one embodiment of the present invention:
Judgment module 530, metamessage and the received member from source data node suitable for judging target data node are believed It whether consistent ceases.
Update module 540, suitable for judging that the metamessage of target data node comes from source number with received in judgment module According to the metamessage of node it is inconsistent in the case where, the metamessage of destination node is updated to received metamessage.
Optionally, synchronization module 520 is further adapted for: supply source back end every preset time period pushes to metamessage Target data node.
Optionally, synchronization module 520 is further adapted for: by the network connection established between source data node, for mesh It marks back end and pulls metamessage from source data node, to update the metamessage of target data node.
In another embodiment of the present invention:
Whether judgment module 530, the metamessage and the metamessage pulled suitable for judging target data node are consistent.
Update module 540, suitable for judge in judgment module target data node metamessage and the metamessage pulled not Under unanimous circumstances, the metamessage of target data node is updated to the metamessage pulled.
Optionally, synchronization module 520 is further adapted for: the metamessage sent for target data node according to source data node Update message pulls metamessage from source data node.
Optionally, synchronization module 520 is further adapted for: for target data node every preset time period from source data node Pull metamessage.
Optionally, target data node is other all back end in data-storage system in addition to source data node A part.
The device provided according to that above embodiment of the present invention, configuration establish network connection with the back end and are used for synchronous be somebody's turn to do The target data node of the metamessage of back end, wherein by there is network connectivty, inspection with all back end postponed Whether the metamessage for surveying the back end updates, if so, using the back end as source data node, by source data section The metamessage of point is synchronized to target data node, to update the metamessage of target data node, overcomes in prior art, Need to synchronize metamessage between all back end and caused by data transmission times it is more, network overhead is big, when consuming Between long defect especially reduce because of back end all more meta informations, but still need to transmit between two back end Data transmission times caused by metamessage dynamically control metamessage transmission rate, reduce network overhead, advantageously control Transmission time processed, improves synchronous efficiency, judge target data node metamessage and source data node metamessage whether one It causes, if inconsistent, the metamessage of destination node is updated to received metamessage, it can be to avoid meaningless more meta information.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize synchronous metamessage between back end according to an embodiment of the present invention The some or all functions of some or all components in equipment.The present invention is also implemented as being retouched here for executing The some or all device or device programs (for example, computer program and computer program product) for the method stated. It is such to realize that program of the invention can store on a computer-readable medium, or can have one or more signal Form.Such signal can be downloaded from an internet website to obtain, be perhaps provided on the carrier signal or with it is any its He provides form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
The invention discloses: a kind of method of synchronous metamessage between A1, back end is applied to include multiple back end Data-storage system, which comprises
For each back end:
It configures and establishes target data node of the network connection for the metamessage of the synchronous back end with the back end, Wherein, by there is network connectivty with all back end postponed;
Whether the metamessage for detecting the back end updates, if so, using the back end as source data node, The metamessage of the source data node is synchronized to the target data node, to update the member letter of the target data node Breath.
A2, method according to a1, wherein the metamessage by source data node is synchronized to the target data section It puts and further includes:
By the network connection established between the target data node, the source data node pushes to metamessage The target data node, to update the metamessage of the target data node.
A3, the method according to A2, wherein metamessage is pushed into the target data section in the source data node After point, the method also includes:
Judge the target data node metamessage and the received metamessage from the source data node whether one It causes, if inconsistent, the metamessage of the destination node is updated to received metamessage.
A4, the method according to A2 or A3, wherein metamessage is pushed to the target data by the source data node Node further comprises:
Metamessage is pushed to the target data node by the source data node every preset time period.
A5, method according to a1, wherein the metamessage by source data node is synchronized to the target data section It puts and further includes:
By the network connection established between the source data node, the target data node is from the source data section Point pulls metamessage, to update the metamessage of the target data node.
A6, method according to a5, wherein pull metamessage from the source data node in the target data node Later, the method also includes:
Judge whether the metamessage of the target data node and the metamessage pulled are consistent, it, will be described if inconsistent The metamessage of target data node is updated to the metamessage pulled.
A7, the method according to A5 or A6, wherein the target data node pulls first letter from the source data node Breath further comprises:
The metamessage update message that the target data node is sent according to the source data node is from the source data section Point pulls metamessage.
A8, the method according to A5 or A6, wherein the target data node pulls first letter from the source data node Breath further comprises:
The target data node every preset time period pulls metamessage from the source data node.
A9, the method according to any one of A1-A8, wherein the target data node is data storage system A part of other all back end in system in addition to the source data node.
The invention also discloses: the device of synchronous metamessage between B10, a kind of back end is applied to include multiple data The data-storage system of node, described device include: configuration module, detection module and synchronization module;
Wherein, for each back end:
The configuration module, suitable for configuring the member letter for establishing network connection for the synchronous back end with the back end The target data node of breath, wherein by there is network connectivty with all back end postponed;
Whether the detection module, the metamessage for being adapted to detect for the back end update;
The synchronization module, suitable for detecting that more news occurs for the metamessage of back end in the detection module Under, using the back end as source data node, the metamessage of the source data node is synchronized to the target data node, To update the metamessage of the target data node.
B11, device according to b10, wherein the synchronization module is further adapted for: by with the target data Metamessage is pushed to the target data node for the source data node by the network connection established between node, to update The metamessage of the target data node.
B12, the device according to B11, wherein described device further include: judgment module is suitable for judging the number of targets It is whether consistent according to the metamessage and the received metamessage from the source data node of node;
Update module, suitable for judging that the metamessage of the target data node comes from received in the judgment module In the case that the metamessage of the source data node is inconsistent, the metamessage of the destination node is updated to received member and is believed Breath.
B13, the device according to B11 or B12, wherein the synchronization module is further adapted for: the source data section is supplied Metamessage is pushed to the target data node by point every preset time period.
B14, device according to b10, wherein the synchronization module is further adapted for: by with the source data section The network connection established between point, pulls metamessage from the source data node for the target data node, described in updating The metamessage of target data node.
B15, device according to b14, wherein described device further include:
Whether judgment module, the metamessage and the metamessage pulled suitable for judging the target data node are consistent;
Update module, suitable for judging that the metamessage of the target data node is believed with the member pulled in the judgment module Cease it is inconsistent in the case where, the metamessage of the target data node is updated to the metamessage pulled.
B16, the device according to B14 or B15, wherein the synchronization module is further adapted for: the target data is supplied The metamessage update message that node is sent according to the source data node pulls metamessage from the source data node.
B17, the device according to B14 or B15, wherein the synchronization module is further adapted for: the target data is supplied Node every preset time period pulls metamessage from the source data node.
B18, the device according to any one of B10-B17, wherein the target data node is data storage A part of other all back end in system in addition to the source data node.

Claims (16)

1. a kind of method of synchronous metamessage between back end, applied to the data-storage system including multiple back end, institute The method of stating includes:
For each back end:
It configures and establishes target data node of the network connection for the metamessage of the synchronous back end with the back end, In, by there is network connectivty with all back end postponed;
Whether the metamessage for detecting the back end updates, if so, using the back end as source data node, by institute The metamessage for stating source data node is synchronized to the target data node, to update the metamessage of the target data node;
Wherein, the target data node is other all numbers in the data-storage system in addition to the source data node According to a part of node.
2. according to the method described in claim 1, wherein, the metamessage by source data node is synchronized to the target data Node further comprises:
By the network connection established between the target data node, the source data node pushes to metamessage described Target data node, to update the metamessage of the target data node.
3. according to the method described in claim 2, wherein, metamessage is pushed to the target data in the source data node After node, the method also includes:
Judge the metamessage of the target data node with it is received whether consistent from the metamessage of the source data node, if It is inconsistent, then the metamessage of the destination node is updated to received metamessage.
4. according to the method in claim 2 or 3, wherein metamessage is pushed to the number of targets by the source data node Further comprise according to node:
Metamessage is pushed to the target data node by the source data node every preset time period.
5. according to the method described in claim 1, wherein, the metamessage by source data node is synchronized to the target data Node further comprises:
By the network connection established between the source data node, the target data node is drawn from the source data node Metamessage is taken, to update the metamessage of the target data node.
6. according to the method described in claim 5, wherein, pulling first letter from the source data node in the target data node After breath, the method also includes:
Judge whether the metamessage of the target data node and the metamessage pulled are consistent, if inconsistent, by the target The metamessage of back end is updated to the metamessage pulled.
7. method according to claim 5 or 6, wherein the target data node pulls member from the source data node Information further comprises:
The target data node is drawn according to the metamessage update message that the source data node is sent from the source data node Take metamessage.
8. method according to claim 5 or 6, wherein the target data node pulls member from the source data node Information further comprises:
The target data node every preset time period pulls metamessage from the source data node.
9. the device of synchronous metamessage between a kind of back end, applied to the data-storage system including multiple back end, institute Stating device includes: configuration module, detection module and synchronization module;
Wherein, for each back end:
The configuration module is connected to the network the metamessage for the synchronous back end suitable for configuring to establish with the back end Target data node, wherein by there is network connectivty with all back end postponed;
Whether the detection module, the metamessage for being adapted to detect for the back end update;
The synchronization module, in the case where suitable for detecting that the metamessage of back end is updated in the detection module, with The back end is synchronized to the target data node as source data node, by the metamessage of the source data node, with more The metamessage of the new target data node;
Wherein, the target data node is other all numbers in the data-storage system in addition to the source data node According to a part of node.
10. device according to claim 9, wherein the synchronization module is further adapted for: by with the target data Metamessage is pushed to the target data node for the source data node by the network connection established between node, to update The metamessage of the target data node.
11. device according to claim 10, wherein described device further include: judgment module is suitable for judging the target Whether the metamessage of back end and the received metamessage from the source data node are consistent;
Update module, suitable for judging the metamessage of the target data node and received from described in the judgment module In the case that the metamessage of source data node is inconsistent, the metamessage of the destination node is updated to received metamessage.
12. device described in 0 or 11 according to claim 1, wherein the synchronization module is further adapted for: supplying the source data Metamessage is pushed to the target data node by node every preset time period.
13. device according to claim 9, wherein the synchronization module is further adapted for: by with the source data section The network connection established between point, pulls metamessage from the source data node for the target data node, described in updating The metamessage of target data node.
14. device according to claim 13, wherein described device further include:
Whether judgment module, the metamessage and the metamessage pulled suitable for judging the target data node are consistent;
Update module, suitable for judge in the judgment module target data node metamessage and the metamessage pulled not Under unanimous circumstances, the metamessage of the target data node is updated to the metamessage pulled.
15. device described in 3 or 14 according to claim 1, wherein the synchronization module is further adapted for: supplying the number of targets The metamessage update message sent according to node according to the source data node pulls metamessage from the source data node.
16. device described in 3 or 14 according to claim 1, wherein the synchronization module is further adapted for: supplying the number of targets Metamessage is pulled from the source data node according to node every preset time period.
CN201510981820.8A 2015-12-23 2015-12-23 The method and device of synchronous metamessage between back end Active CN105554135B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510981820.8A CN105554135B (en) 2015-12-23 2015-12-23 The method and device of synchronous metamessage between back end

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510981820.8A CN105554135B (en) 2015-12-23 2015-12-23 The method and device of synchronous metamessage between back end

Publications (2)

Publication Number Publication Date
CN105554135A CN105554135A (en) 2016-05-04
CN105554135B true CN105554135B (en) 2019-03-05

Family

ID=55833067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510981820.8A Active CN105554135B (en) 2015-12-23 2015-12-23 The method and device of synchronous metamessage between back end

Country Status (1)

Country Link
CN (1) CN105554135B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528876B (en) * 2016-12-09 2019-08-23 北京奇虎科技有限公司 The information processing method and distributed information processing system of distributed system
CN107277111B (en) * 2017-05-19 2018-09-04 腾讯科技(深圳)有限公司 A kind of company-data processing method, master node, slave node and cluster
CN110901691B (en) * 2018-09-17 2021-10-29 株洲中车时代电气股份有限公司 Ferroelectric data synchronization system and method and train network control system
CN111241115B (en) * 2020-01-07 2022-02-22 腾讯科技(深圳)有限公司 Data synchronization method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467529A (en) * 2010-11-11 2012-05-23 金蝶软件(中国)有限公司 Metadata synchronizing method and system
CN103106286A (en) * 2013-03-04 2013-05-15 曙光信息产业(北京)有限公司 Method and device for managing metadata
CN103716384A (en) * 2013-12-17 2014-04-09 创新科存储技术(深圳)有限公司 Method and device for realizing cloud storage data synchronization in cross-data-center manner
CN104699771A (en) * 2015-03-02 2015-06-10 北京京东尚科信息技术有限公司 Data synchronization method and clustering node

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100531055C (en) * 2006-04-10 2009-08-19 华为技术有限公司 Data synchronous system and its method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467529A (en) * 2010-11-11 2012-05-23 金蝶软件(中国)有限公司 Metadata synchronizing method and system
CN103106286A (en) * 2013-03-04 2013-05-15 曙光信息产业(北京)有限公司 Method and device for managing metadata
CN103716384A (en) * 2013-12-17 2014-04-09 创新科存储技术(深圳)有限公司 Method and device for realizing cloud storage data synchronization in cross-data-center manner
CN104699771A (en) * 2015-03-02 2015-06-10 北京京东尚科信息技术有限公司 Data synchronization method and clustering node

Also Published As

Publication number Publication date
CN105554135A (en) 2016-05-04

Similar Documents

Publication Publication Date Title
CN105554135B (en) The method and device of synchronous metamessage between back end
CN105515872B (en) The update method of configuration information, apparatus and system
CN105912628B (en) The synchronous method and device of master-slave database
US20160139889A1 (en) Managing reusable artifacts using placeholders
CN104035800B (en) A kind of delta package generation method, version upgrading method, device and system
EP3462315A3 (en) Systems and methods for service mapping
CN109861842A (en) O&M method, apparatus, electronic equipment and the storage medium of server cluster
US20190394157A1 (en) Modification of delivered email content
CN108664222A (en) A kind of block catenary system and its application process
CN105867973A (en) Loading method and system for so file in application program
CN105049514B (en) A kind of document down loading method and device
CN110162334B (en) Code management method, device and storage medium
AU2016204194A1 (en) A system, method and computer program for preparing data for analysis
CN105653261A (en) Development integration test method and system on the basis of cloud computing environment
CN104796445A (en) Resource synchronization method and device by server nodes
CN107015849A (en) The based reminding method and device of timed task
CN104125303B (en) Reading and writing data requesting method, client and system
US9037539B2 (en) Data synchronization
US20160269335A1 (en) Method and apparatus for identifying changed mailboxes in an internet message access protocol (imap) list
CN106775720A (en) The method and apparatus of integrated player SDK and the method and apparatus that player SDK is set
CN106528876B (en) The information processing method and distributed information processing system of distributed system
CN110221840A (en) The function realizing method and device of application program, equipment and storage medium
CN104881294B (en) Realize the system and method for automatic packaging
CN105100285B (en) A kind of data download method and device
CN109660310A (en) A kind of method, apparatus, calculating equipment and the computer storage medium of clock synchronization

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220801

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.