CN105765948A - Information updating method, apparatus, and device - Google Patents

Information updating method, apparatus, and device Download PDF

Info

Publication number
CN105765948A
CN105765948A CN201480037163.5A CN201480037163A CN105765948A CN 105765948 A CN105765948 A CN 105765948A CN 201480037163 A CN201480037163 A CN 201480037163A CN 105765948 A CN105765948 A CN 105765948A
Authority
CN
China
Prior art keywords
information
node
updated
copy group
updating
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.)
Pending
Application number
CN201480037163.5A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN105765948A publication Critical patent/CN105765948A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Provided is an information updating method, the method comprising: receiving an information updating request message including information to be updated and a copy group number; inquiring a copy group information list according to the copy group number, and obtaining a node number, the copy group information list including a corresponding relationship between the copy group number and the node number; sending the information to be updated to the node corresponding to the node number, such that the node updates the information according to the information to be updated. The present invention, due to direct forwarding the information updating request message to all nodes numbers of a storage copy by a switch, reduces forwarding times when sending the information updating request message and eliminates waiting time, thus saving time and having high efficiency. The present invention also enables a client to receive the response information in time, and avoids time consumption caused by waiting for all nodes to complete the information updating, thus saving time and improving efficiency.

Description

Information updating method, device and equipment Technical Field
The present invention relates to the field of computers, and in particular, to a method, an apparatus, and a device for updating information.
Background
In distributed file systems, data placement is typically done in a multi-copy fashion to coordinate load and failure recovery. However, there are several common ideas for the inconsistency of multiple copies of updates caused by information updates: (1) after the master copy is updated, a neighbor message forwarding mode is initiated: the updating message is transmitted to the network by forwarding to all or part of the neighbor nodes; (2) copy tree mode: the main copy is taken as a root node, when the updating message is forwarded by the neighbor nodes for the first time, an n-branch tree formed by all copy nodes is established, and the subsequent updating message is only carried out in the tree.
There are several methods for updating information of multiple copies as follows: synchronous update, asynchronous update and strong consistency asynchronous update. And (3) synchronous updating: and the number N of the copies is that the primary copy is updated firstly, then an updating command is broadcasted to all the secondary copies, and the information of successful updating is returned after the updating confirmation is returned after all the secondary copies are updated. Asynchronous updating: and the number N of the secondary copies is that the primary copy is updated firstly, then an updating command is broadcast to all the secondary copies, when any one secondary copy returns an updating confirmation, the updating success information is returned, and the other secondary copies continue asynchronous updating. Strong consistency asynchronous updating: and the number N of the copies is that the primary copy is updated firstly, then the primary copy broadcasts an updating command to the secondary copy according to the position information of the secondary copy stored in the node, and waits for copy updating confirmation, and when W is more than N/2 updating confirmations, the successful updating can be returned. And the latest data can be read only by ensuring that R (W + R > N) read returns in the subsequent process.
However, the existing information updating method needs to update the primary and secondary copies step by step, and then broadcast and update the secondary copies after the primary copies are updated, which consumes time; in addition, the broadcast mode of the update request information needs to transmit the update request information for multiple times and transmit the update request information indirectly in multiple levels, which is time-consuming, inefficient and not beneficial to providing the service of the latest data to the outside in the first time.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, and a device for updating information, so as to solve the problems of time consumption and low efficiency caused by updating primary and secondary copies step by step, forwarding multiple times, and forwarding update request information indirectly in multiple stages in the prior art.
In a first aspect, an embodiment of the present invention provides an information updating method, where the method includes:
receiving an information update request message, the information update request message including: information to be updated and a copy group number;
inquiring a copy group information table according to the copy group number to obtain a node number, wherein the copy group information table comprises: the corresponding relation between the copy group number and the node number;
and sending the information to be updated to the node corresponding to the node number, so that the node completes information updating according to the information to be updated.
In a first possible implementation manner of the first aspect, the nodes include a first node and a second node;
when information updating success information sent by the first node is received, taking the first node as a main node;
and storing the node number of the first node in the copy group information table.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, after receiving information update failure information sent by the second node, the first node is instructed to send the information to be updated to the second node, so that the second node completes information update according to the information to be updated.
With reference to the first aspect or the first or second possible implementation manner of the first aspect, in a third possible implementation manner, the information update request message includes write request information and read request information, where the write request information is request information indicating a write operation, and the read request information is request information indicating a browse operation.
In a second aspect, an embodiment of the present invention provides an apparatus for updating information, where the apparatus includes:
a receiving unit, configured to receive an information update request message, where the information update request message includes: information to be updated and a copy group number;
a processing unit, configured to query a copy group information table according to the copy group number, and obtain a node number, where the copy group information table includes: the corresponding relation between the copy group number and the node number;
and the sending unit is used for sending the information to be updated to the node corresponding to the node number, so that the node completes information updating according to the information to be updated.
In a first possible implementation manner of the second aspect, the nodes include a first node and a second node;
the processing unit is further configured to, when information update success information sent by the first node is received, use the first node as a master node;
and storing the node number of the first node in the copy group information table.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner, the processing unit is further configured to instruct the first node to send the information to be updated to the second node after receiving information update failure information sent by the second node, so that the second node completes information update according to the information to be updated.
With reference to the second aspect or the first or second possible implementation manner of the second aspect, in a third possible implementation manner, the information update request message includes write request information and read request information, where the write request information is request information indicating a write operation, and the read request information is request information indicating a browse operation.
In a third aspect, an embodiment of the present invention provides an apparatus for updating information, where the apparatus includes:
a network interface;
a processor;
a memory;
an application program physically stored in the memory, the application program comprising instructions operable to cause the processor and the device to:
receiving an information update request message, the information update request message including: information to be updated and a copy group number;
inquiring a copy group information table according to the copy group number to obtain a node number, wherein the copy group information table comprises: the corresponding relation between the copy group number and the node number;
and sending the information to be updated to the node corresponding to the node number, so that the node completes information updating according to the information to be updated.
In a first possible implementation manner of the third aspect, the nodes include a first node and a second node; the application program further includes instructions operable to cause the processor and the device to:
when information updating success information sent by the first node is received, taking the first node as a main node;
and storing the node number of the first node in the copy group information table.
With reference to the first possible implementation manner of the third aspect, in a second possible implementation manner, the application program further includes instructions operable to cause the processor and the device to perform the following processes:
and after receiving information updating failure information sent by the second node, indicating the first node to send the information to be updated to the second node, so that the second node completes information updating according to the information to be updated.
With reference to the third aspect or the first or second possible implementation manner of the third aspect, in a third possible implementation manner, the application program further includes instructions operable to cause the processor and the device to perform the following processes:
the information updating request message comprises writing request information and reading request information, the writing request information is request information indicating writing operation, and the reading request information is request information indicating browsing operation.
In the information updating method provided in the embodiment of the present invention, an information updating request message is received by a switch, where the information updating request message includes: information to be updated and a copy group number; inquiring a copy group information table according to the copy group number to obtain a node number; and sending the information to be updated to the node corresponding to the node number, so that the node completes information updating according to the information to be updated. The switch directly forwards the information updating request information to all the node numbers of the stored copies, so that the forwarding times are reduced when the information updating request information is sent, waiting is not needed, the time is saved, and the efficiency is high. The client can receive the response information in time, time consumption caused by waiting for the completion of the information updating of all the nodes is avoided, time is saved, and efficiency is high.
Drawings
Fig. 1 is a schematic view of a scene of information update provided in an embodiment of the present invention;
fig. 2 is a flowchart of an information updating method according to an embodiment of the present invention;
fig. 3 is a signaling diagram of a method for updating information according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of an information updating apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic diagram of an information updating apparatus according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention are described in further detail below with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The technical scheme of the information updating can be applied to various situations such as e-mail updating, document updating, webpage updating and the like.
The client in the embodiment of the present invention may change information and review information, and may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, or the like.
The switch in the embodiment of the invention can be a switch which is responsible for sending or forwarding the information updating request information and establishing information forwarding between the client and the node, or a switch which is responsible for forwarding the change request information sent by the sender client to the corresponding node for processing.
The node in the embodiment of the present invention may be a server, and is responsible for receiving information update request information sent by the switch, and sending response information to the switch after performing corresponding processing on the copy in the node according to the information update request information, or is responsible for receiving change request information sent by the switch, and sending update success information to the switch after changing the copy in the server according to the change request information.
The information updating request information in the embodiment of the invention comprises document information changing, mail writing, webpage information changing, webpage browsing and the like.
Fig. 1 is a schematic view of a scene of information update according to an embodiment of the present invention. As shown in fig. 1, for example: when a user changes webpage information through a computer client, the exchanger receives request information for changing the webpage information sent by the client, the changed webpage information comprises the webpage information to be changed and a copy group number, the exchanger inquires a copy group information table according to the copy group number G2, and the copy group information table comprises: the method comprises the steps that a copy group number G2 and server numbers N2, N3 and N4 for storing copies are obtained by a switch, server numbers N2, N3 and N4 are obtained by the switch, the switch sends request information for changing webpage information to servers with the server numbers N2, N3 and N4, when the servers N2, N3 and N4 update stored copies according to the information updating request information, updating success information is sent to the switch, when the number of the updating success information received by the switch is half of the number of the servers N2, N3 and N4 (assuming that the updating success information of the servers N2 and N4 is received), response information corresponding to the information updating request information is sent to a computer client, and at the moment, a user can browse the changed webpage information through the computer client. And continuing to update the copy of the server N3 which does not receive the information of successful update, so that the node completes information update according to the information to be updated.
Example one
Fig. 2 is a flowchart illustrating an information updating method according to a first embodiment of the present invention in detail, where fig. 2 is a flowchart illustrating the information updating method according to the first embodiment of the present invention, and an implementation subject may be a switch in the first embodiment of the present invention, where the method specifically includes the following steps:
step 201, the switch receives an information update request message, where the information update request message includes: information to be updated and the copy group number.
The information updating request message comprises writing request information and reading request information, the writing request information is request information indicating writing operation, and the reading request information is request information indicating browsing operation.
For example, the information update request information may be to change document information, or to write a mail, or to change/add web page information, or to browse a web page, etc. The method comprises the steps of changing document information, writing mails, changing/adding webpage information and the like, wherein the request information with writing operation is summarized into writing request information, and the request information which is similar to a browsing webpage and has no writing operation but only reading operation is summarized into reading request information. The information update request information is then divided into write request information and read request information.
For example: when a user changes webpage information (writes request information) on a computer client, the client sends the request information for changing the webpage information to the switch, and the switch receives the information updating request information sent by the client.
When a plurality of users change the webpage information on a plurality of computer clients, the clients simultaneously send request information for changing the webpage information to the switch, and the switch simultaneously receives a plurality of write request information sent by the clients.
Optionally, the switch receives multiple write request messages sent by multiple clients simultaneously, and only receives the write request message sent by a first client when the multiple write request messages belong to the same copy group, where the multiple clients include the first client.
For example: the switch receives write request information of a plurality of pieces of modified webpage information sent by a plurality of clients simultaneously, when the write request information of the plurality of pieces of modified webpage information belongs to the same copy group G2, the switch only receives the request information of the modified webpage information sent by a first client, and the plurality of clients comprise the first client, namely the first client is one of the plurality of clients.
The reason why the switch receives only one client instead of request information for changing web page information sent by a plurality of clients is that it is not easy to control if a plurality of clients change the same web page at the same time. In the embodiment of the invention, a distributed lock can be installed on the switch for control, so as to control the switch to receive only the request information for changing the webpage information sent by the first client, and the first client can be a client with the highest priority in a plurality of clients by self-definition. Optionally, after the priorities of the clients are sorted, the switch receives write request information for changing the web page information sent by the clients in order through the distributed locks, and only the switch needs to be ensured to receive the write request information sent by one client at the same time.
However, the switch can receive a plurality of read request messages sent by a plurality of clients at the same time.
And step 202, the exchanger queries a copy group information table according to the copy group number to acquire a node number.
The copy group information table includes: and the corresponding relation between the copy group number and the node number. The copy set information table may be maintained within the switch.
The node may be a server; and the node number can be server code. The copy group information table is a copy group number and the copy group number corresponds to the node number of the stored copy.
For example: the switch queries a copy group information table according to the copy group number G2, wherein the copy group information table comprises: the copy group number G2 and the encodings N2, N3, and N4 of the server, obtain node numbers N2, N3, and N4. In the copy group information table shown in table one, each copy group number corresponds to a node number where a copy is stored.
Watch 1
Duplicate group number Node number
G1 N1,N2,N3
G2 N2,N3,N4
G3 N5,N6,N7
G4 N6,N8,N9
Gm Ni,Nj,Nk
And 203, the switch sends the information to be updated to the node corresponding to the node number, so that the node completes information update according to the information to be updated.
The switch sends the information to be updated to the nodes N2, N3 and N4 corresponding to the node numbers N2, N3 and N4, so that the nodes N2, N3 and N4 update the copies of the respective nodes according to the information to be updated, and receive the update success information sent by the nodes.
For example: the switch sends the information to be updated to the server N2, the server N3 and the server N4 corresponding to the server codes N2, N3 and N4, so that the server N2, the server N3 and the server N4 receive the update success information sent by the servers when the copies stored in the respective servers are updated according to the information to be updated. The server N2 updates the copy in the server N2, and after the update is successful, the server N2 sends update success information to the switch; the server N4 updates the copy in the server N4, and after the update is successful, the server N4 sends update success information to the switch. Server N3 has not yet updated the copy, and no update success information is sent to the switch.
Optionally, the nodes include a first node and a second node;
when the switch receives information updating success information sent by the first node, the first node is used as a main node; and storing the node number of the first node in the copy group information table.
For example: when the switch receives the 2 pieces of update success information sent by the server N2 and the server N4, the copies in the server N2 and the server N4 are used as primary copies; the encodings of server N2 and server N4, N2 and N4, are stored in the switch's copy group information table, which is now incremented by the node number at which the primary copy is stored. In the copy group information table after the node number is stored as shown in table two, each copy group number corresponds to the node number of the stored copy, and the node number of the stored primary copy corresponds to the node number of the stored primary copy.
Watch two
Duplicate group number Node number Number of main node
G1 N1,N2,N3 N1,N2
G2 N2,N3,N4 N2,N4
G3 N5,N6,N7 N6,N7
G4 N6,N8,N9 N6,N8
Gm Ni,Nj,Nk Nx,Ny
Optionally, after receiving the information update failure information sent by the second node, the switch instructs the first node to send the information to be updated to the second node, so that the second node completes information update according to the information to be updated.
Optionally, when the time threshold is reached, if the node does not complete updating the information to be updated, the node sends update failure information to the switch.
For example, the time threshold may be a self-defined value, such as 1 minute, after the server N3 receives the information to be updated for 1 minute, if the server N3 has not finished updating the copy, the server N3 sends update failure information to the switch, at this time, after the switch receives the information update failure information sent by the server N3, the switch instructs the server N2 or the server N4 to send the information to be updated to the server N3, specifically, the server N2 or the server N4 sends the master copy to the server N3, and the server N3 updates the copy through the obtained master copy, so that the server N3 finishes updating the information according to the information to be updated.
In the information updating method provided in the first embodiment of the present invention, an information updating request message is received by a switch, where the information updating request message includes: information to be updated and a copy group number; inquiring a copy group information table according to the copy group number to obtain a node number; and sending the information to be updated to the node corresponding to the node number, so that the node completes information updating according to the information to be updated. The information updating request information is directly forwarded to all the node numbers of the stored copies by the switch, so that the forwarding times are reduced when the information updating request information is sent, waiting is not needed, the time is saved, and the efficiency is high. The client can receive the response information in time, time consumption caused by waiting for the completion of the information updating of all the nodes is avoided, time is saved, and efficiency is high. And after information updating failure information sent by the second node is received, the first node is indicated to send the information to be updated to the second node, so that the second node completes information updating according to the information to be updated, and all nodes can complete information updating quickly and conveniently.
Example two
Fig. 3 is a signaling diagram of an information updating method according to a second embodiment of the present invention. As shown in fig. 3, the following details a signaling interaction process of the information updating method provided in the second embodiment of the present invention, where the method includes the following steps:
step 301, the client sends update request information to the switch.
The information update request message includes: information to be updated and the copy group number.
The information updating request message comprises writing request information and reading request information, the writing request information is request information indicating writing operation, and the reading request information is request information indicating browsing operation.
Step 302, the switch queries a copy group information table according to the copy group number to obtain a node number.
The copy group information table includes: the corresponding relation between the copy group number and the node number;
step 303, the switch sends the information to be updated to the node corresponding to the node number, so that the node completes information update according to the information to be updated.
The nodes comprise a first node and a second node.
And step 304, the node updates the copy according to the update request information.
And 305, when the switch receives the information updating success information sent by the first node, taking the first node as a main node.
And if the node successfully updates the information, the node sends the information of successful update to the switch.
Step 306, saving the node number of the first node in the copy group information table.
And 307, when the number of the update completion information received by the switch is half of the number of the nodes, sending response information corresponding to the information update request information to the client.
Step 308, after receiving the information update failure information sent by the second node, instructing the first node to send the information to be updated to the second node.
And the second node is used for finishing information updating according to the information to be updated.
Step 309, the first node sends the master copy to the second node.
In step 310, the second node updates the copy through the acquired primary copy.
In the information updating method provided in the second embodiment of the present invention, an information updating request message is received by a switch, where the information updating request message includes: information to be updated and a copy group number; inquiring a copy group information table according to the copy group number to obtain a node number; and sending the information to be updated to the node corresponding to the node number, so that the node completes information updating according to the information to be updated. The information updating request information is directly forwarded to all the node numbers of the stored copies by the switch, so that the forwarding times are reduced when the information updating request information is sent, waiting is not needed, the time is saved, and the efficiency is high. The client can receive the response information in time, time consumption caused by waiting for the completion of the information updating of all the nodes is avoided, time is saved, and efficiency is high. And after information updating failure information sent by the second node is received, the first node is indicated to send the information to be updated to the second node, so that the second node completes information updating according to the information to be updated, and all nodes can complete information updating quickly and conveniently.
EXAMPLE III
Embodiment one describes a method for updating information implemented by using a switch as a main execution body, and accordingly, the present invention further provides an information updating apparatus, fig. 4 is a schematic diagram of an information updating apparatus provided by embodiment three of the present invention, as shown in fig. 4, a system for updating information includes: a receiving unit 401, a processing unit 402 and a transmitting unit 403.
A receiving unit 401, configured to receive an information update request message, where the information update request message includes: information to be updated and a copy group number;
a processing unit 402, configured to query a copy group information table according to the copy group number, and obtain a node number, where the copy group information table includes: the corresponding relation between the copy group number and the node number;
a sending unit 403, configured to send the information to be updated to a node corresponding to the node number, so that the node completes information update according to the information to be updated.
Optionally, the nodes include a first node and a second node;
the processing unit is further configured to, when information update success information sent by the first node is received, use the first node as a master node; and storing the node number of the first node in the copy group information table.
Optionally, the processing unit is further configured to, after receiving information update failure information sent by the second node, instruct the first node to send the information to be updated to the second node, so that the second node completes information update according to the information to be updated.
Optionally, the information update request message includes write request information and read request information, where the write request information is request information indicating write operation, and the read request information is request information indicating browsing operation.
In the information updating method provided in the third embodiment of the present invention, an information updating request message is received by a switch, where the information updating request message includes: information to be updated and a copy group number; inquiring a copy group information table according to the copy group number to obtain a node number; and sending the information to be updated to the node corresponding to the node number, so that the node completes information updating according to the information to be updated. The information updating request information is directly forwarded to all the node numbers of the stored copies by the switch, so that the forwarding times are reduced when the information updating request information is sent, waiting is not needed, the time is saved, and the efficiency is high. The client can receive the response information in time, time consumption caused by waiting for the completion of the information updating of all the nodes is avoided, time is saved, and efficiency is high. And after information updating failure information sent by the second node is received, the first node is indicated to send the information to be updated to the second node, so that the second node completes information updating according to the information to be updated, and all nodes can complete information updating quickly and conveniently.
Example four
In the first embodiment, a method for updating information implemented by using a switch as a main execution body is described, correspondingly, a fourth embodiment of the present invention further provides an information updating device, so as to implement the method for updating information in the first embodiment, fig. 5 is a schematic diagram of the information updating device provided in the fourth embodiment of the present invention, and as shown in fig. 5, the system includes: a network interface 501, a processor 502, and a memory 503. The system bus 504 is used to connect the network interface 501, the processor 502, and the memory 503.
The network interface 501 is used for communicating with an internet of things terminal, an internet of things access gateway, a bearer network, an internet of things service gateway and an application server.
The memory 503 may be a permanent memory such as a hard disk drive and a flash memory, with software modules and device drivers in the memory 503. The software module can execute various functional modules of the method; the device drivers may be network and interface drivers.
At startup, these software components are loaded into memory 503 and then accessed by processor 502 and executed by the following instructions:
receiving an information update request message, the information update request message including: information to be updated and a copy group number;
inquiring a copy group information table according to the copy group number to obtain a node number, wherein the copy group information table comprises: the corresponding relation between the copy group number and the node number;
and sending the information to be updated to the node corresponding to the node number, so that the node completes information updating according to the information to be updated.
The nodes comprise a first node and a second node; the application program further includes instructions operable to cause the processor and the device to:
when information updating success information sent by the first node is received, taking the first node as a main node;
and storing the node number of the first node in the copy group information table.
Further, after the processor accesses the software components of the memory 503, the application program may further include instructions operable to cause the processor and the device to:
and after receiving information updating failure information sent by the second node, indicating the first node to send the information to be updated to the second node, so that the second node completes information updating according to the information to be updated.
After the processor accesses the software components of memory 503, the application program further includes instructions operable to cause the processor and the device to:
the information updating request message comprises writing request information and reading request information, the writing request information is request information indicating writing operation, and the reading request information is request information indicating browsing operation.
In the information updating apparatus provided in the fourth embodiment of the present invention, an information updating request message is received by a switch, where the information updating request message includes: information to be updated and a copy group number; inquiring a copy group information table according to the copy group number to obtain a node number; and sending the information to be updated to the node corresponding to the node number, so that the node completes information updating according to the information to be updated. The information updating request information is directly forwarded to all the node numbers of the stored copies by the switch, so that the forwarding times are reduced when the information updating request information is sent, waiting is not needed, the time is saved, and the efficiency is high. The client can receive the response information in time, time consumption caused by waiting for the completion of the information updating of all the nodes is avoided, time is saved, and efficiency is high. And after information updating failure information sent by the second node is received, the first node is indicated to send the information to be updated to the second node, so that the second node completes information updating according to the information to be updated, and all nodes can complete information updating quickly and conveniently.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (12)

  1. A method of information updating, the method comprising:
    receiving an information update request message, the information update request message including: information to be updated and a copy group number;
    inquiring a copy group information table according to the copy group number to obtain a node number, wherein the copy group information table comprises: the corresponding relation between the copy group number and the node number;
    and sending the information to be updated to the node corresponding to the node number, so that the node completes information updating according to the information to be updated.
  2. The method of claim 1, wherein the nodes comprise a first node, a second node;
    when information updating success information sent by the first node is received, taking the first node as a main node;
    and storing the node number of the first node in the copy group information table.
  3. The method of claim 2, wherein after receiving information update failure information sent by the second node, instructing the first node to send the information to be updated to the second node, so that the second node completes information update according to the information to be updated.
  4. The method according to any one of claims 1 to 3, wherein the information update request message includes write request information and read request information, the write request information being request information indicating a write operation, the read request information being request information indicating a browse operation.
  5. An apparatus for information updating, the apparatus comprising:
    a receiving unit, configured to receive an information update request message, where the information update request message includes: information to be updated and a copy group number;
    a processing unit, configured to query a copy group information table according to the copy group number, and obtain a node number, where the copy group information table includes: the corresponding relation between the copy group number and the node number;
    and the sending unit is used for sending the information to be updated to the node corresponding to the node number, so that the node completes information updating according to the information to be updated.
  6. The apparatus for information updating of claim 5, wherein the nodes comprise a first node, a second node;
    the processing unit is further configured to, when information update success information sent by the first node is received, use the first node as a master node; and storing the node number of the first node in the copy group information table.
  7. The information updating apparatus of claim 6,
    the processing unit is further configured to instruct the first node to send the information to be updated to the second node after receiving information update failure information sent by the second node, so that the second node completes information update according to the information to be updated.
  8. The apparatus of any of claims 5-7,
    the information updating request message comprises writing request information and reading request information, the writing request information is request information indicating writing operation, and the reading request information is request information indicating browsing operation.
  9. An apparatus for information update, the apparatus comprising:
    a network interface;
    a processor;
    a memory;
    an application program physically stored in the memory, the application program comprising instructions operable to cause the processor to:
    receiving an information update request message, the information update request message including: information to be updated and a copy group number;
    inquiring a copy group information table according to the copy group number to obtain a node number, wherein the copy group information table comprises: the corresponding relation between the copy group number and the node number;
    and sending the information to be updated to the node corresponding to the node number, so that the node completes information updating according to the information to be updated.
  10. The apparatus of claim 9, wherein the nodes comprise a first node, a second node; the application program further includes instructions operable to cause the processor to:
    when information updating success information sent by the first node is received, taking the first node as a main node;
    and storing the node number of the first node in the copy group information table.
  11. The device of claim 9, wherein the application further comprises instructions operable to cause the processor to:
    and after receiving information updating failure information sent by the second node, indicating the first node to send the information to be updated to the second node, so that the second node completes information updating according to the information to be updated.
  12. The apparatus of any of claims 9-11, wherein the application further comprises instructions operable to cause the processor to:
    the information updating request message comprises writing request information and reading request information, the writing request information is request information indicating writing operation, and the reading request information is request information indicating browsing operation.
CN201480037163.5A 2014-10-29 2014-10-29 Information updating method, apparatus, and device Pending CN105765948A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/089758 WO2016065545A1 (en) 2014-10-29 2014-10-29 Information updating method, apparatus, and device

Publications (1)

Publication Number Publication Date
CN105765948A true CN105765948A (en) 2016-07-13

Family

ID=55856365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201480037163.5A Pending CN105765948A (en) 2014-10-29 2014-10-29 Information updating method, apparatus, and device

Country Status (2)

Country Link
CN (1) CN105765948A (en)
WO (1) WO2016065545A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770281A (en) * 2017-11-01 2018-03-06 深圳市金立通信设备有限公司 A kind of method, server and computer-readable recording medium for notifying trade company's reimbursement information

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630334A (en) * 2009-08-25 2010-01-20 上海电机学院 Data-updating method in distributed system
CN103036717A (en) * 2012-12-12 2013-04-10 北京邮电大学 Consistency maintenance system and methods for distributed-type data
CN103297268A (en) * 2013-05-13 2013-09-11 北京邮电大学 P2P (peer to peer) technology based distributed data consistency maintaining system and method
CN103294675A (en) * 2012-02-23 2013-09-11 上海盛霄云计算技术有限公司 Method and device for updating data in distributed storage system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102780763B (en) * 2012-06-29 2015-03-04 华中科技大学 Distributed home subscriber server (HSS) data storage method and distributed HSS data extraction method
CN103530362B (en) * 2013-10-12 2017-01-04 清华大学 A kind of computer data reading/writing method for many copies distributed system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630334A (en) * 2009-08-25 2010-01-20 上海电机学院 Data-updating method in distributed system
CN103294675A (en) * 2012-02-23 2013-09-11 上海盛霄云计算技术有限公司 Method and device for updating data in distributed storage system
CN103036717A (en) * 2012-12-12 2013-04-10 北京邮电大学 Consistency maintenance system and methods for distributed-type data
CN103297268A (en) * 2013-05-13 2013-09-11 北京邮电大学 P2P (peer to peer) technology based distributed data consistency maintaining system and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770281A (en) * 2017-11-01 2018-03-06 深圳市金立通信设备有限公司 A kind of method, server and computer-readable recording medium for notifying trade company's reimbursement information

Also Published As

Publication number Publication date
WO2016065545A1 (en) 2016-05-06

Similar Documents

Publication Publication Date Title
US9411869B2 (en) Replication between sites using keys associated with modified data
CN110493122B (en) Session information synchronization method and device, computing equipment and storage medium
US20170063747A1 (en) Searchable peer-to-peer system through instant messaging based topic indexes
JP6700308B2 (en) Data copy method and device
CN102769640B (en) The update method of user profile, server and system
CN106777311B (en) Flight space state caching method and system
US20160105323A1 (en) Node identification using clusters
CN108880972B (en) Information processing method, server and terminal
US10938633B2 (en) Facilitating resilient and fault tolerant asynchronous messaging
WO2017036305A1 (en) Method for establishing data connection, server side, and mobile terminal
JP2010277467A (en) Distributed data management system, data management apparatus, data management method and program
CN109684128B (en) Cluster overall fault recovery method of message middleware, server and storage medium
CN115079935A (en) Method, electronic device and computer program product for storing and querying data
CN105765948A (en) Information updating method, apparatus, and device
CN102761520B (en) Method and system for processing authentication information
CN112749172A (en) Data synchronization method and system between cache and database
CN111078425B (en) Message processing method and device, storage medium and electronic equipment
WO2021082538A1 (en) Session processing method and apparatus, device, and medium
CN109325057B (en) Middleware management method, device, computer equipment and storage medium
CN112671636A (en) Group message pushing method and device, computer equipment and storage medium
CN101764766B (en) Method and terminal for email attachment information prompt
CN116361309B (en) Data query system and method for updating cache data
CN107153594B (en) HA component main selection method and system of distributed database system
CN110932980B (en) Communication method, terminal, and computer-readable storage medium
CN106878399B (en) Data sending method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160713