[go: up one dir, main page]

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

Information updating method, apparatus, and device Download PDF

Info

Publication number
WO2016065545A1
WO2016065545A1 PCT/CN2014/089758 CN2014089758W WO2016065545A1 WO 2016065545 A1 WO2016065545 A1 WO 2016065545A1 CN 2014089758 W CN2014089758 W CN 2014089758W WO 2016065545 A1 WO2016065545 A1 WO 2016065545A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
node
update
updated
copy group
Prior art date
Application number
PCT/CN2014/089758
Other languages
French (fr)
Chinese (zh)
Inventor
徐君
朱冠宇
姜旭栋
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2014/089758 priority Critical patent/WO2016065545A1/en
Priority to CN201480037163.5A priority patent/CN105765948A/en
Publication of WO2016065545A1 publication Critical patent/WO2016065545A1/en

Links

Images

Classifications

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

Definitions

  • the present invention relates to the field of computers, and in particular, to a method, device and device for updating information.
  • Synchronous update The number of copies N, the primary copy is updated first, and then the update command is broadcast to all secondary copies until all the secondary copies are updated, and the update confirmation is returned before the update success information is returned.
  • Asynchronous update the number of copies N, the primary copy is updated first, and then the update command is broadcast to all secondary copies. When any of the secondary copies returns an update confirmation, the update success information is returned, and the other secondary copies continue to be asynchronously updated.
  • the existing information update method needs to update the primary and secondary copies step by step, waiting for the primary copy to be updated and then performing the secondary copy broadcast and update, which takes time; and additionally updating the request information broadcast mode, it is necessary to repeatedly update the update request information.
  • multi-level indirect forwarding update request information which is time consuming, Inefficiency is not conducive to the provision of the latest data services in the first time.
  • the embodiment of the present invention provides a method, a device, and a device for updating information to solve the problem caused by step-by-step updating of primary and secondary copies, multiple forwardings, and multi-level indirect forwarding update request information in the prior art.
  • the efficiency is low.
  • an embodiment of the present invention provides a method for updating an information, the method comprising:
  • the information update request message includes: information to be updated and a copy group number;
  • the copy group information table includes: the copy group number, and the corresponding relationship of the node number;
  • the node includes a first node and a second node
  • the node number of the first node is saved in the copy group information table.
  • the first node after receiving the information update failure information sent by the second node, the first node is instructed to the second node Sending the information to be updated, so that the second node completes the information update according to the information to be updated.
  • the information update request message includes write request information and read request information
  • the write request The information is request information indicating a write operation
  • the read request information indicates a browsing operation Request information
  • 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 the copy group information table according to the copy group number, to obtain a node number, where the copy group information table includes: the copy group number, and the corresponding relationship of the node number;
  • a sending unit 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.
  • the node includes a first node and a second node
  • the processing unit is further configured to: when receiving the information update success information sent by the first node, using the first node as a master node;
  • the node number of the first node is saved in the copy group information table.
  • the processing unit is further configured to: after receiving the information update failure information sent by the second node, indicating the The node sends the information to be updated to the second node, so that the second node completes the information update according to the information to be updated.
  • the information update request message includes write request information and read request information, and the write request The information is request information indicating a write operation, and the read request information is request information indicating a browsing operation.
  • an embodiment of the present invention provides an apparatus for updating information, where the apparatus includes:
  • An application physically stored in the memory comprising The processor and the device execute instructions of the following process:
  • the information update request message includes: information to be updated and a copy group number;
  • the copy group information table includes: the copy group number, and the corresponding relationship of the node number;
  • the node comprises a first node, a second node; the application further comprising instructions operable to cause the processor and the device to perform the following process:
  • the node number of the first node is saved in the copy group information table.
  • the application further includes instructions operable to cause the processor and the device to perform the following process:
  • the application further includes: the processor and the device are configured to perform the following Instruction of the process:
  • the information update request message includes write request information and read request information, the write request information is request information indicating a write operation, and the read request information is request information indicating a browsing operation.
  • the information update method provided by the embodiment of the present invention receives an information update request message by using a switch, where the information update request message includes: information to be updated and a copy group number; and querying the copy group information table according to the copy group number to obtain a node number Sending the to-be-updated information to the node number pair
  • the node in question causes the node to complete the information update according to the information to be updated. Since the switch directly forwards the information update request information to all node numbers of the storage copy, the number of times of forwarding is reduced when the information update request information is sent, and there is no waiting, saving time and high efficiency.
  • the client can receive the response information in time, avoid waiting for all the node update information to be completed, and time-consuming, saving time and high efficiency.
  • FIG. 1 is a schematic diagram of a scenario for updating an information according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for updating information according to Embodiment 1 of the present invention
  • FIG. 3 is a signaling diagram of a method for updating information according to Embodiment 2 of the present invention.
  • FIG. 4 is a schematic diagram of an apparatus for updating information according to Embodiment 3 of the present invention.
  • FIG. 5 is a schematic diagram of an apparatus for updating information according to Embodiment 4 of the present invention.
  • the technical solution of the information update of the present invention can be applied to various scenarios such as email update, document update, and webpage update.
  • the client in the embodiment of the present invention can change information and review information, such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, and the like.
  • the switch in the embodiment of the present invention may be a switch that is responsible for sending or forwarding information update request information, and establishing information forwarding between the client and the node, or is responsible for the sender client.
  • the sent change request information is forwarded to the corresponding node for processing.
  • the node in the embodiment of the present invention may be a server, which is responsible for receiving the information update request information sent by the switch, and correspondingly processing the copy in the node according to the information update request information, sending a response message to the switch, or receiving the switch. After the change request information is sent, and the copy in the server is changed according to the change request information, the update success information is sent to the switch.
  • the information update request information in the embodiment of the present invention includes changing document information, or writing an email, or changing webpage information, or browsing a webpage.
  • FIG. 1 is a schematic diagram of a scenario for updating an information according to an embodiment of the present invention.
  • the switch receives the request information of the changed webpage information sent by the client, and the webpage information includes the webpage information to be changed and the copy group number, and the switch according to the copy group.
  • No. G2 queries the copy group information table.
  • the copy group information table includes: the copy group number G2 and the server number N2, N3, and N4 of the storage copy.
  • the switch obtains the server numbers N2, N3, and N4, and the switch numbers the servers N2, N3, and N4.
  • the corresponding server sends the request information for changing the webpage information, and when the servers N2, N3, and N4 update the stored copy according to the information update request information, the update success information is sent to the switch, and the number of update success information received by the switch is When half of the servers N2, N3, and N4 are half (assuming that the update success information of the servers N2 and N4 is received), the response information corresponding to the information update request information is sent to the computer client, and at this time, the user can pass the computer. The client browses the changed web page information. The server N3 that has not received the update success information continues to update the copy, so that the node completes the information update according to the information to be updated.
  • FIG. 2 is a flowchart of a method for updating information according to the first embodiment of the present invention.
  • the switch 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 a copy group number.
  • the information update request message includes write request information and read request information, the write request information is request information indicating a write operation, and the read request information is request information indicating a browsing operation.
  • the information update request information may be changing document information, or writing an email, or changing/adding webpage information, or browsing a webpage or the like.
  • the document information is changed, the mail is written, the webpage information is changed/added, and the like, and the request information of the write operation is summarized into the write request information, which is similar to the browse webpage, and the request information that the write operation is not the read operation is summarized as the read request information.
  • the information update request information is then divided into write request information and read request information.
  • the client when the user changes the webpage information (write request information) on the computer client, the client sends the request information for changing the webpage information to the switch, and the switch receives the information update request information sent by the client.
  • the client sends the request information for changing the webpage information to the switch, and the switch receives the information update request information sent by the client.
  • multiple clients simultaneously send request information for changing webpage information to the switch, and the switch simultaneously receives multiple write request information sent by multiple clients.
  • the switch receives multiple write request information sent by multiple clients at the same time, and when the multiple write request information belongs to the same copy group, only the write request information sent by the first client is received,
  • the clients include the first client.
  • the switch receives the write request information of multiple changed webpage information sent by multiple clients at the same time.
  • the switch only receives the changed webpage information sent by the first client.
  • Request information, the plurality of clients include the first client, that is, the first client is one of the plurality of clients.
  • the switch only receives one client, instead of the request information for changing the webpage information sent by multiple clients, because it is not easy to control if multiple clients make changes to the same webpage at the same time.
  • a distributed lock may be installed on the switch to control the switch to receive only the request information of the changed webpage information sent by the first client, and the first client may be customized in multiple clients. The highest priority client in the terminal.
  • the switch receives the changed webpage information sent by multiple clients in an orderly manner through the distributed lock. To write the request information, it is only necessary to ensure that the switch receives only one write request message sent by the client at the same time.
  • the switch can simultaneously receive multiple read request messages sent by multiple clients.
  • Step 202 The switch queries the copy group information table according to the copy group number to obtain a node number.
  • the copy group information table includes: a correspondence between the copy group number and the node number.
  • the copy group information table can be saved in the switch.
  • the node can be a server; the node number can be a server code.
  • the copy group information table is the copy group number and the node number of the copy group number corresponding to the storage copy.
  • the switch queries the copy group information table according to the copy group number G2, and the copy group information table includes: a copy group number G2 and a server code N2, N3, and N4, and acquires node numbers N2, N3, and N4.
  • the copy group information table corresponds to the node number of the storage copy.
  • Step 203 The switch sends the information to be updated to the node corresponding to the node number, so that the node completes the information update according to the information to be updated.
  • the switch sends the to-be-updated information to the node N2, the node N3, and the node N4 corresponding to the node number N2, N3, N4, so that the node N2, the node N3, and the node N4 update the copy in the respective node according to the information to be updated, and Receive update success information sent by the node.
  • the switch sends the to-be-updated information to the server code N2, N3, and N4.
  • the server N2 updates the copy in the server N2.
  • the server N2 sends the update success information to the switch; the server N4 updates the copy in the server N4.
  • the server N4 sends the update success information to the switch. If the server N3 has not updated the copy, the update success information is not sent to the switch.
  • the node includes a first node and a second node
  • the switch receives the information update success information sent by the first node, the first node is used as a master node; and the node number of the first node is saved in the copy group information table.
  • the switch receives two update success messages sent by the server N2 and the server N4, the replicas of the server N2 and the server N4 are taken as the master copy; the codes of the server N2 and the server N4, N2 and N4 are saved in the copy group of the switch.
  • the switch group information table of the switch increases the node number of the storage master copy.
  • each copy group number corresponds to the node number of the storage copy, and the node number of the storage main copy corresponds.
  • the switch instructs the first node to send the to-be-updated information to the second node, so that the second node is to be updated according to the Information completion information update.
  • the update failure information is sent to the switch.
  • the time threshold may be a customized value, such as 1 minute.
  • the server N3 After the server N3 receives the information to be updated for 1 minute, if the server N3 has not completed the update copy, the server N3 sends an update failure message to the switch, at this time, the switch After receiving the information update failure information sent by the server N3, the server N2 or the server N4 is instructed 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 acquired master copy. The copy causes the server N3 to complete the information update according to the information to be updated.
  • the method for updating information receives an information update request message by using a switch, where the information update request message includes: information to be updated and a copy group number; and querying the copy group information table according to the copy group number to acquire a node Sending the information to be updated to the node corresponding to the node number, so that the node completes the information update according to the information to be updated.
  • the switch forwards the information update request information directly to all the node numbers of the storage copy, so that the number of times of forwarding is reduced when the information update request information is sent, without waiting, saving time and high efficiency.
  • the client can receive the response information in time, avoid waiting for all the node update information to be completed, and time-consuming, saving time and high efficiency.
  • FIG. 3 is a signaling diagram of a method for updating information according to Embodiment 2 of the present invention. As shown in FIG. 3, the signaling interaction process of the method for updating information provided by Embodiment 2 of the present invention is described in detail below, and 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 a copy group number.
  • the information update request message includes write request information and read request information, the write request information is request information indicating a write operation, and the read request information is request information indicating a browsing operation.
  • Step 302 The switch queries the copy group information table according to the copy group number to obtain a node number.
  • the copy group information table includes: a copy group number, and a correspondence relationship between the node numbers;
  • Step 303 The switch sends the information to be updated to the node corresponding to the node number, so that the node completes the information update according to the information to be updated.
  • the node includes a first node and a second node.
  • Step 304 The node updates the copy according to the update request information.
  • Step 305 When the switch receives the information update success information sent by the first node, the first node is used as the master node.
  • Step 306 Save the node number of the first node in the copy group information table.
  • Step 307 When the number of update completion information received by the switch is half of the number of nodes, the response information corresponding to the information update request information is sent to the client.
  • Step 308 After receiving the information update failure information sent by the second node, instructing the first node to send the to-be-updated information to the second node.
  • the second node is configured to complete information update according to the information to be updated.
  • Step 309 The first node sends a primary copy to the second node.
  • step 310 the second node updates the copy by acquiring the master copy.
  • the information update method provided by the second embodiment of the present invention receives an information update request message by using a switch, where the information update request message includes: information to be updated and a copy group number; and querying the copy group information table according to the copy group number to obtain a node Sending the information to be updated to the node corresponding to the node number, so that the node completes the information update according to the information to be updated.
  • the switch forwards the information update request information directly to all the node numbers of the storage copy, so that the number of times of forwarding is reduced when the information update request information is sent, without waiting, saving time and high efficiency.
  • the client can receive the response information in time, avoid waiting for all the node update information to be completed, and time-consuming, saving time and high efficiency.
  • the first embodiment describes a method for updating information by using a switch as an execution subject. Accordingly, the present invention further provides an apparatus for updating information.
  • FIG. 4 is a schematic diagram of an apparatus for updating information according to Embodiment 3 of the present invention.
  • the system for information update includes a receiving unit 401, a processing unit 402, and a transmitting unit 403.
  • the receiving unit 401 is configured to receive an information update request message, where the information update request message includes: information to be updated and a copy group number;
  • the processing unit 402 is configured to query the copy group information table according to the copy group number to obtain a node number, where the copy group information table includes: the copy group number, and the corresponding relationship between the node numbers;
  • the sending unit 403 is 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.
  • the node includes a first node and a second node
  • the processing unit is further configured to: when receiving the information update success information sent by the first node, use the first node as a master node; and save the node number of the first node in the copy group information table. .
  • the processing unit is further configured to: after receiving the information update failure information sent by the second node, instructing the first node to send the to-be-updated information to the second node, so that the The two nodes complete the information update according to the information to be updated.
  • the information update request message includes write request information and read request information
  • the write request information is request information indicating a write operation
  • the read request information is request information indicating a browsing operation.
  • the method for updating information according to Embodiment 3 of the present invention receives an information update request message by using a switch, where the information update request message includes: information to be updated and a copy group number; and querying the copy group information table according to the copy group number to acquire a node Sending the information to be updated to the node corresponding to the node number, so that the node completes the information update according to the information to be updated.
  • Description switch The information update request information is directly forwarded to all node numbers of the storage copy, so that the number of times of forwarding is reduced when the information update request information is sent, without waiting, saving time and high efficiency.
  • the client can receive the response information in time, avoid waiting for all the node update information to be completed, and time-consuming, saving time and high efficiency.
  • the first embodiment describes a method for updating information by using a switch as an execution subject.
  • the fourth embodiment of the present invention further provides a device for updating information, which is used to implement the method for updating information in the first embodiment.
  • 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 configured to communicate 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 persistent storage such as a hard disk drive and a flash memory having a software module and a device driver therein.
  • the software modules are capable of performing the various functional modules of the above described methods of the present invention; the device drivers can be network and interface drivers.
  • the information update request message includes: information to be updated and a copy group number;
  • the copy group information table includes: the copy group number, and the corresponding relationship of the node number;
  • the node includes a first node and a second node; the application further includes The processor and the device execute instructions of the following process:
  • the node number of the first node is saved in the copy group information table.
  • the application further includes instructions operable to cause the processor and the device to perform the following process:
  • the application further includes instructions operable to cause the processor and the device to perform the following process:
  • the information update request message includes write request information and read request information, the write request information is request information indicating a write operation, and the read request information is request information indicating a browsing operation.
  • the information update device receives an information update request message by using a switch, where the information update request message includes: information to be updated and a copy group number; and querying the copy group information table according to the copy group number to acquire a node Sending the information to be updated to the node corresponding to the node number, so that the node completes the information update according to the information to be updated.
  • the switch forwards the information update request information directly to all the node numbers of the storage copy, so that the number of times of forwarding is reduced when the information update request information is sent, without waiting, saving time and high efficiency.
  • the client can receive the response information in time, avoid waiting for all the node update information to be completed, and time-consuming, saving time and high efficiency.
  • the steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both.
  • the software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.

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

信息更新的方法、装置及设备Method, device and device for updating information 技术领域Technical field
本发明涉及计算机领域,尤其涉及一种信息更新的方法、装置及设备。The present invention relates to the field of computers, and in particular, to a method, device and device for updating information.
背景技术Background technique
在分布式文件系统中,通常采用多副本方式进行数据布局,用以协调负载和故障恢复。但对于在信息更新时引起的多副本更新不一致的问题,通常有以下几个思路:(1)主副本更新完后,发起邻居转发消息模式:通过转发给所有或部分邻居节点的方式将更新消息传遍网络中;(2)副本树方式:以主副本为根节点,在第一次以邻居节点转发更新消息时,建立由所有副本节点构成的n叉树,以后的更新消息都只在此“树”中进行。In a distributed file system, multiple copies are usually used for data layout to coordinate load and failure recovery. However, for the problem of inconsistent multi-copy update caused by information update, there are usually the following ideas: (1) After the primary copy is updated, the neighbor forwarding message mode is initiated: the message is updated by forwarding to all or part of the neighbor nodes. (2) Copy tree mode: The primary copy is the root node. When the update message is forwarded by the neighbor node for the first time, an n-tree consisting of all replica nodes is established. The subsequent update messages are only here. In the "tree".
目前有如下几种多副本更新信息的方法:同步更新,异步更新和强一致性异步更新。同步更新:副本数N,先更新主副本,再向所有次副本广播更新命令,直到所有次副本更新完毕,均返回更新确认后,才返回更新成功信息。异步更新:副本数N,先更新主副本,再向所有次副本广播更新命令,当有任意一个次副本返回更新确认后,即返回更新成功信息,其它次副本继续异步更新。强一致性异步更新:副本数N,先更新主副本,再由主副本根据在本节点保存的次副本位置信息,再向次广播更新命令,并等待副本更新确认,当有W>N/2个更新确认返回后,即可返回更新成功。后续只要保证有R个(W+R>N)读返回即可保证能读到最新数据。There are currently several ways to update information in multiple copies: synchronous updates, asynchronous updates, and strong consistent asynchronous updates. Synchronous update: The number of copies N, the primary copy is updated first, and then the update command is broadcast to all secondary copies until all the secondary copies are updated, and the update confirmation is returned before the update success information is returned. Asynchronous update: the number of copies N, the primary copy is updated first, and then the update command is broadcast to all secondary copies. When any of the secondary copies returns an update confirmation, the update success information is returned, and the other secondary copies continue to be asynchronously updated. Strongly consistent asynchronous update: the number of copies N, the primary copy is updated first, and then the primary copy updates the command according to the secondary copy location information saved in the node, and waits for the copy update confirmation, when there is W>N/2 After the update confirmation returns, the update is successful. Subsequent guarantees that only R (W+R>N) read returns ensure that the latest data can be read.
但是现有的信息更新的方法,需要分步更新主次副本,等待主副本更新完毕再进行次副本广播与更新,耗时;另外更新请求信息的广播方式,需要经过多次转发更新请求信息,以及多级间接转发更新请求信息,比较耗时, 效率低,不利于第一时间对外提供最新数据的服务。However, the existing information update method needs to update the primary and secondary copies step by step, waiting for the primary copy to be updated and then performing the secondary copy broadcast and update, which takes time; and additionally updating the request information broadcast mode, it is necessary to repeatedly update the update request information. And multi-level indirect forwarding update request information, which is time consuming, Inefficiency is not conducive to the provision of the latest data services in the first time.
发明内容Summary of the invention
有鉴于此,本发明实施例提供了一种信息更新的方法、装置及设备,以解决现有技术中由于分步更新主次副本,多次转发以及多级间接转发更新请求信息,引起的耗时,效率低等问题。In view of this, the embodiment of the present invention provides a method, a device, and a device for updating information to solve the problem caused by step-by-step updating of primary and secondary copies, multiple forwardings, and multi-level indirect forwarding update request information in the prior art. When the efficiency is low.
在第一方面,本发明实施例提供了一种信息更新的方法,该方法包括:In a first aspect, an embodiment of the present invention provides a method for updating an information, the method comprising:
接收信息更新请求消息,所述信息更新请求消息包括:待更新信息和副本组号;Receiving an information update request message, where the information update request message includes: information to be updated and a copy group number;
根据所述副本组号查询副本组信息表,获取节点号,所述副本组信息表包括:所述副本组号,和所述节点号的对应关系;Querying the copy group information table according to the copy group number, and obtaining a node number, where the copy group information table includes: the copy group number, and the corresponding relationship of the node number;
将所述待更新信息发送至所述节点号对应的节点,使得所述节点根据所述待更新信息完成信息更新。Sending the to-be-updated information to a node corresponding to the node number, so that the node completes information update according to the to-be-updated information.
在第一方面的第一种可能的实现方式中,所述节点包括第一节点、第二节点;In a first possible implementation manner of the first aspect, the node includes a first node and a second node;
接收所述第一节点发送的信息更新成功信息时,将所述第一节点作为主节点;Receiving the information update success information sent by the first node, using the first node as a master node;
将所述第一节点的节点号保存在所述副本组信息表中。The node number of the first node is saved in the copy group information table.
结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中,接收到所述第二节点发送的信息更新失败信息后,指示所述第一节点向所述第二节点发送所述待更新信息,使得所述第二节点根据所述待更新信息完成信息更新。With reference to the first possible implementation manner of the first aspect, in a second possible implementation, after receiving the information update failure information sent by the second node, the first node is instructed to the second node Sending the information to be updated, so that the second node completes the information update according to the information to be updated.
结合第一方面或第一方面的第一种或第二种可能的实现方式,在第三种可能的实现方式中,所述信息更新请求消息包括写请求信息和读请求信息,所述写请求信息为指示写操作的请求信息,所述读请求信息为指示浏览操作 的请求信息。In conjunction with the first aspect or the first or second possible implementation of the first aspect, in a third possible implementation, the information update request message includes write request information and read request information, the write request The information is request information indicating a write operation, and the read request information indicates a browsing operation Request information.
在第二方面,本发明实施例提供了一种信息更新的装置,该装置包括: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 the copy group information table according to the copy group number, to obtain a node number, where the copy group information table includes: the copy group number, and the corresponding relationship of the node number;
发送单元,用于将所述待更新信息发送至所述节点号对应的节点,使得所述节点根据所述待更新信息完成信息更新。And a sending unit, 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.
在第二方面的第一种可能的实现方式中,所述节点包括第一节点、第二节点;In a first possible implementation manner of the second aspect, the node includes a first node and a second node;
所述处理单元,还用于接收所述第一节点发送的信息更新成功信息时,将所述第一节点作为主节点;The processing unit is further configured to: when receiving the information update success information sent by the first node, using the first node as a master node;
将所述第一节点的节点号保存在所述副本组信息表中。The node number of the first node is saved in the copy group information table.
结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述处理单元,还用于接收到所述第二节点发送的信息更新失败信息后,指示所述第一节点向所述第二节点发送所述待更新信息,使得所述第二节点根据所述待更新信息完成信息更新。With reference to the first possible implementation of the second aspect, in a second possible implementation, the processing unit is further configured to: after receiving the information update failure information sent by the second node, indicating the The node sends the information to be updated to the second node, so that the second node completes the 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, and the write request The information is request information indicating a write operation, and the read request information is request information indicating a browsing operation.
在第三方面,本发明实施例提供了一种信息更新的设备,该设备包括:In a third aspect, an embodiment of the present invention provides an apparatus for updating information, where the apparatus includes:
网络接口;Network Interface;
处理器;processor;
存储器;Memory
物理存储在所述存储器中的应用程序,所述应用程序包括可用于使所述 处理器和所述设备执行以下过程的指令:An application physically stored in the memory, the application comprising The processor and the device execute instructions of the following process:
接收信息更新请求消息,所述信息更新请求消息包括:待更新信息和副本组号;Receiving an information update request message, where the information update request message includes: information to be updated and a copy group number;
根据所述副本组号查询副本组信息表,获取节点号,所述副本组信息表包括:所述副本组号,和所述节点号的对应关系;Querying the copy group information table according to the copy group number, and obtaining a node number, where the copy group information table includes: the copy group number, and the corresponding relationship of the node number;
将所述待更新信息发送至所述节点号对应的节点,使得所述节点根据所述待更新信息完成信息更新。Sending the to-be-updated information to a node corresponding to the node number, so that the node completes information update according to the to-be-updated information.
在第三方面的第一种可能的实现方式中,所述节点包括第一节点、第二节点;所述应用程序还包括可用于使所述处理器和所述设备执行以下过程的指令:In a first possible implementation of the third aspect, the node comprises a first node, a second node; the application further comprising instructions operable to cause the processor and the device to perform the following process:
接收所述第一节点发送的信息更新成功信息时,将所述第一节点作为主节点;Receiving the information update success information sent by the first node, using the first node as a master node;
将所述第一节点的节点号保存在所述副本组信息表中。The node number of the first node is saved in the copy group information table.
结合第三方面的第一种可能的实现方式,在第二种可能的实现方式中,所述应用程序还包括可用于使所述处理器和所述设备执行以下过程的指令:In conjunction with the first possible implementation of the third aspect, in a second possible implementation, the application further includes instructions operable to cause the processor and the device to perform the following process:
接收到所述第二节点发送的信息更新失败信息后,指示所述第一节点向所述第二节点发送所述待更新信息,使得所述第二节点根据所述待更新信息完成信息更新。And after receiving the information update failure information sent by the second node, instructing the first node to send the to-be-updated information to the second node, so that the second node completes information update according to the to-be-updated information.
结合第三方面或第三方面的第一种或第二种可能的实现方式,在第三种可能的实现方式中,所述应用程序还包括可用于使所述处理器和所述设备执行以下过程的指令:With reference to the third aspect or the first or second possible implementation manner of the third aspect, in a third possible implementation, the application further includes: the processor and the device are configured to perform the following Instruction of the process:
所述信息更新请求消息包括写请求信息和读请求信息,所述写请求信息为指示写操作的请求信息,所述读请求信息为指示浏览操作的请求信息。The information update request message includes write request information and read request information, the write request information is request information indicating a write operation, and the read request information is request information indicating a browsing operation.
本发明实施例提供的信息更新的方法,通过交换机接收信息更新请求消息,所述信息更新请求消息包括:待更新信息和副本组号;根据所述副本组号查询副本组信息表,获取节点号;将所述待更新信息发送至所述节点号对 应的节点,使得所述节点根据所述待更新信息完成信息更新。由于交换机将信息更新请求信息直接转发给存储副本的所有节点号,使得发送信息更新请求信息时减少了转发的次数,无需等待,节省了时间,效率高。使得客户端能及时地接收响应信息,避免等待所有的节点更新信息完成而耗时,节省了时间,效率高。The information update method provided by the embodiment of the present invention receives an information update request message by using a switch, where the information update request message includes: information to be updated and a copy group number; and querying the copy group information table according to the copy group number to obtain a node number Sending the to-be-updated information to the node number pair The node in question causes the node to complete the information update according to the information to be updated. Since the switch directly forwards the information update request information to all node numbers of the storage copy, the number of times of forwarding is reduced when the information update request information is sent, and there is no waiting, saving time and high efficiency. The client can receive the response information in time, avoid waiting for all the node update information to be completed, and time-consuming, saving time and high efficiency.
附图说明DRAWINGS
图1为本发明实施例提供的信息更新的场景示意图;FIG. 1 is a schematic diagram of a scenario for updating an information according to an embodiment of the present invention;
图2为本发明实施例一提供的一种信息更新的方法流程图;2 is a flowchart of a method for updating information according to Embodiment 1 of the present invention;
图3为本发明实施例二提供的信息更新的方法的信令图;3 is a signaling diagram of a method for updating information according to Embodiment 2 of the present invention;
图4为本发明实施例三提供的信息更新的装置示意图;4 is a schematic diagram of an apparatus for updating information according to Embodiment 3 of the present invention;
图5为本发明实施例四提供的信息更新的设备示意图。FIG. 5 is a schematic diagram of an apparatus for updating information according to Embodiment 4 of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,下面结合附图对本发明具体实施例作进一步的详细描述。显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the objects, technical solutions and advantages of the present invention more comprehensible, the embodiments of the present invention are further described in detail below. It is apparent that the described embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明信息更新的技术方案可以应用于电子邮件更新,文档更新,网页更新等多种情景中。The technical solution of the information update of the present invention can be applied to various scenarios such as email update, document update, and webpage update.
本发明实施例中的客户端,可以更改信息,审阅信息,例如可以为手机、平板电脑、笔记本电脑、台式机等等。The client in the embodiment of the present invention can change information and review information, such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, and the like.
本发明实施例中的交换机,可以是负责发送或转发信息更新请求信息,并在客户端和节点之间建立信息转发的交换机,或者是负责将发送方客户端 发送的更改请求信息,转发给相应的节点进行处理。The switch in the embodiment of the present invention may be a switch that is responsible for sending or forwarding information update request information, and establishing information forwarding between the client and the node, or is responsible for the sender client. The sent change request information is forwarded to the corresponding node for processing.
本发明实施例中的节点,可以是服务器,负责接收交换机发送的信息更新请求信息,并根据信息更新请求信息对节点中的副本进行相应的处理后,向交换机发送响应信息,或者是负责接收交换机发送的更改请求信息,并根据更改请求信息对服务器中的副本进行更改后,向交换机发送更新成功信息。The node in the embodiment of the present invention may be a server, which is responsible for receiving the information update request information sent by the switch, and correspondingly processing the copy in the node according to the information update request information, sending a response message to the switch, or receiving the switch. After the change request information is sent, and the copy in the server is changed according to the change request information, the update success information is sent to the switch.
本发明实施例中的信息更新请求信息,包括更改文档信息,或者写邮件,或者更改网页信息,或者浏览网页等。The information update request information in the embodiment of the present invention includes changing document information, or writing an email, or changing webpage information, or browsing a webpage.
图1为本发明实施例提供的信息更新的场景示意图。如图1所示,例如:当用户通过电脑客户端更改网页信息时,交换机接收到客户端发送的更改网页信息的请求信息,更改网页信息包括待更改网页信息和副本组号,交换机根据副本组号G2查询副本组信息表,副本组信息表包括:副本组号G2和存储副本的服务器编号N2、N3和N4,交换机获取服务器编号N2、N3和N4,交换机向服务器编号为N2、N3和N4对应的服务器,发送更改网页信息的请求信息,用以服务器N2、N3和N4根据信息更新请求信息更新存储的副本时,向交换机发送更新成功信息,当交换机接收到的更新成功信息的个数为,服务器N2、N3和N4三个服务器数量的一半时(假设接收到服务器N2和N4的更新成功信息),向电脑客户端发送对应于信息更新请求信息的响应信息,此时,用户可以通过电脑客户端浏览更改后的网页信息。将未接收到更新成功信息的服务器N3继续更新副本,使得所述节点根据所述待更新信息完成信息更新。FIG. 1 is a schematic diagram of a scenario for updating an information according to an embodiment of the present invention. As shown in FIG. 1 , for example, when the user changes the webpage information through the computer client, the switch receives the request information of the changed webpage information sent by the client, and the webpage information includes the webpage information to be changed and the copy group number, and the switch according to the copy group. No. G2 queries the copy group information table. The copy group information table includes: the copy group number G2 and the server number N2, N3, and N4 of the storage copy. The switch obtains the server numbers N2, N3, and N4, and the switch numbers the servers N2, N3, and N4. The corresponding server sends the request information for changing the webpage information, and when the servers N2, N3, and N4 update the stored copy according to the information update request information, the update success information is sent to the switch, and the number of update success information received by the switch is When half of the servers N2, N3, and N4 are half (assuming that the update success information of the servers N2 and N4 is received), the response information corresponding to the information update request information is sent to the computer client, and at this time, the user can pass the computer. The client browses the changed web page information. The server N3 that has not received the update success information continues to update the copy, so that the node completes the information update according to the information to be updated.
实施例一Embodiment 1
下面以图2为例详细说明本发明实施例一提供的信息更新的方法,图2为本发明实施例一提供的一种信息更新的方法流程图,在本发明实施例一中实施主体可以为交换机,所述方法具体包括以下步骤:The following is a detailed description of the method for updating information according to the first embodiment of the present invention, and FIG. 2 is a flowchart of a method for updating information according to the first embodiment of the present invention. The switch specifically includes the following steps:
步骤201,交换机接收信息更新请求消息,信息更新请求消息包括:待更新信息和副本组号。 Step 201: The switch receives an information update request message, where the information update request message includes: information to be updated and a copy group number.
所述信息更新请求消息包括写请求信息和读请求信息,所述写请求信息为指示写操作的请求信息,所述读请求信息为指示浏览操作的请求信息。The information update request message includes write request information and read request information, the write request information is request information indicating a write operation, and the read request information is request information indicating a browsing operation.
例如,信息更新请求信息可以是更改文档信息,或者写邮件,或者更改/添加网页信息,或者浏览网页等。更改文档信息,写邮件,更改/添加网页信息等,这些存在写操作的请求信息归纳为写请求信息,将类似浏览网页,这些不存在写操作只是读操作的请求信息归纳为读请求信息。于是将信息更新请求信息分为了写请求信息和读请求信息。For example, the information update request information may be changing document information, or writing an email, or changing/adding webpage information, or browsing a webpage or the like. The document information is changed, the mail is written, the webpage information is changed/added, and the like, and the request information of the write operation is summarized into the write request information, which is similar to the browse webpage, and the request information that the write operation is not the read operation is summarized as the read request information. The information update request information is then divided into write request information and read request information.
例如:当用户在电脑客户端上进行更改网页信息(写请求信息)时,此时客户端向交换机发送更改网页信息的请求信息,交换机接收到客户端发送的该信息更新请求信息。For example, when the user changes the webpage information (write request information) on the computer client, the client sends the request information for changing the webpage information to the switch, and the switch receives the information update request information sent by the client.
当多个用户在多个电脑客户端上,进行更改网页信息时,此时多个客户端同时向交换机发送更改网页信息的请求信息,交换机同时接收多个客户端发送的多个写请求信息。When multiple users perform change webpage information on multiple computer clients, at this time, multiple clients simultaneously send request information for changing webpage information to the switch, and the switch simultaneously receives multiple write request information sent by multiple clients.
可选地,所述交换机同时接收多个客户端发送的多个写请求信息,当所述多个写请求信息属于同一副本组时,只接收第一客户端发送的写请求信息,所述多个客户端包括第一客户端。Optionally, the switch receives multiple write request information sent by multiple clients at the same time, and when the multiple write request information belongs to the same copy group, only the write request information sent by the first client is received, The clients include the first client.
例如:交换机同时接收多个客户端发送的多个更改网页信息的写请求信息,当多个更改网页信息的写请求信息属于同一副本组G2时,交换机只接收第一客户端发送的更改网页信息的请求信息,多个客户端包括第一客户端,即第一客户端是多个客户端中的其中一个客户端。For example, the switch receives the write request information of multiple changed webpage information sent by multiple clients at the same time. When the write request information of the plurality of changed webpage information belongs to the same copy group G2, the switch only receives the changed webpage information sent by the first client. Request information, the plurality of clients include the first client, that is, the first client is one of the plurality of clients.
交换机只接收一个客户端,而不是多个客户端发送的更改网页信息的请求信息,是因为如果多个客户端同时对同一网页进行更改,不便于控制。在本发明实施例中,在交换机上可以安装一个分布式锁加以控制,用以控制交换机只接收第一客户端发送的更改网页信息的请求信息,第一客户端可以是自定义在多个客户端中优先级最高的客户端。可选地,将多个客户端的优先级排序后,交换机通过分布式锁有序地接收多个客户端发送的更改网页信息 的写请求信息,只需保证交换机同一时间只接收一个客户端发送的写请求信息。The switch only receives one client, instead of the request information for changing the webpage information sent by multiple clients, because it is not easy to control if multiple clients make changes to the same webpage at the same time. In the embodiment of the present invention, a distributed lock may be installed on the switch to control the switch to receive only the request information of the changed webpage information sent by the first client, and the first client may be customized in multiple clients. The highest priority client in the terminal. Optionally, after the priorities of the multiple clients are sorted, the switch receives the changed webpage information sent by multiple clients in an orderly manner through the distributed lock. To write the request information, it is only necessary to ensure that the switch receives only one write request message sent by the client at the same time.
但是,交换机同时可以接收多个客户端发送的多个读请求信息。However, the switch can simultaneously receive multiple read request messages sent by multiple clients.
步骤202,交换机根据所述副本组号查询副本组信息表,获取节点号。Step 202: The switch queries the copy group information table according to the copy group number to obtain a node number.
所述副本组信息表包括:所述副本组号,和所述节点号的对应关系。副本组信息表可以保存在交换机内。The copy group information table includes: a correspondence between the copy group number and the node number. The copy group information table can be saved in the switch.
节点可以是服务器;节点号,可以是服务器编码。副本组信息表是副本组号以及副本组号对应着存储副本的节点号。The node can be a server; the node number can be a server code. The copy group information table is the copy group number and the node number of the copy group number corresponding to the storage copy.
例如:交换机根据所述副本组号G2,查询副本组信息表,所述副本组信息表包括:副本组号G2和服务器的编码N2、N3和N4,获取节点号N2、N3和N4。如表一所示的副本组信息表,每个副本组号与存储副本的节点号对应。For example, the switch queries the copy group information table according to the copy group number G2, and the copy group information table includes: a copy group number G2 and a server code N2, N3, and N4, and acquires node numbers N2, N3, and N4. As shown in Table 1, the copy group information table corresponds to the node number of the storage copy.
表一Table I
副本组号Copy group number 节点号Node number
G1G1 N1,N2,N3N1, N2, N3
G2G2 N2,N3,N4N2, N3, N4
G3G3 N5,N6,N7N5, N6, N7
G4G4 N6,N8,N9N6, N8, N9
... ...
GmGm Ni,Nj,NkNi, Nj, Nk
步骤203,交换机将待更新信息发送至所述节点号对应的节点,使得节点根据所述待更新信息完成信息更新。Step 203: The switch sends the information to be updated to the node corresponding to the node number, so that the node completes the information update according to the information to be updated.
交换机将所述待更新信息发送至节点号N2,N3,N4对应的节点N2,节点N3和节点N4,使得节点N2,节点N3和节点N4根据所述待更新信息更新各自节点中的副本,并接收节点发送的更新成功信息。The switch sends the to-be-updated information to the node N2, the node N3, and the node N4 corresponding to the node number N2, N3, N4, so that the node N2, the node N3, and the node N4 update the copy in the respective node according to the information to be updated, and Receive update success information sent by the node.
例如:交换机将所述待更新信息发送至服务器编码N2,N3,N4对应的服 务器N2,服务器N3和服务器N4,使得服务器N2,服务器N3和服务器N4根据所述待更新更新存储在各自服务器中的副本时,并接收服务器发送的更新成功信息。服务器N2更新服务器N2中的副本,更新成功后,服务器N2向所述交换机发送更新成功信息;服务器N4更新服务器N4中的副本,更新成功后,服务器N4向所述交换机发送更新成功信息。服务器N3还未更新副本,则不向所述交换机发送更新成功信息。For example, the switch sends the to-be-updated information to the server code N2, N3, and N4. Server N2, server N3 and server N4, such that server N2, server N3 and server N4 receive the update success information sent by the server when the copy stored in the respective server is updated according to the update to be updated. The server N2 updates the copy in the server N2. After the update is successful, the server N2 sends the update success information to the switch; the server N4 updates the copy in the server N4. After the update is successful, the server N4 sends the update success information to the switch. If the server N3 has not updated the copy, the update success information is not sent to the switch.
可选地,所述节点包括第一节点、第二节点;Optionally, the node includes a first node and a second node;
交换机接收所述第一节点发送的信息更新成功信息时,将所述第一节点作为主节点;将所述第一节点的节点号保存在所述副本组信息表中。And when the switch receives the information update success information sent by the first node, the first node is used as a master node; and the node number of the first node is saved in the copy group information table.
例如:交换机接收到服务器N2和服务器N4发送的2个更新成功信息时,将服务器N2和服务器N4中的副本作为主副本;将服务器N2和服务器N4的编码,N2和N4保存在交换机的副本组信息表中,此时交换机的副本组信息表增加了存储主副本的节点号。如表二所示的保存节点号后的副本组信息表,每个副本组号与存储副本的节点号对应,以及存储主副本的节点号对应。For example, when the switch receives two update success messages sent by the server N2 and the server N4, the replicas of the server N2 and the server N4 are taken as the master copy; the codes of the server N2 and the server N4, N2 and N4 are saved in the copy group of the switch. In the information table, the switch group information table of the switch at this time increases the node number of the storage master copy. As shown in Table 2, the copy group information table after the node number is saved, each copy group number corresponds to the node number of the storage copy, and the node number of the storage main copy corresponds.
表二Table II
副本组号Copy group number 节点号Node number 主节点号Master node number
G1G1 N1,N2,N3N1, N2, N3 N1,N2N1, N2
G2G2 N2,N3,N4N2, N3, N4 N2,N4N2, N4
G3G3 N5,N6,N7N5, N6, N7 N6,N7N6, N7
G4G4 N6,N8,N9N6, N8, N9 N6,N8N6, N8
... ... ...
GmGm Ni,Nj,NkNi, Nj, Nk Nx,NyNx, Ny
可选地,交换机接收到所述第二节点发送的信息更新失败信息后,指示所述第一节点向所述第二节点发送所述待更新信息,使得所述第二节点根据所述待更新信息完成信息更新。 Optionally, after receiving the information update failure information sent by the second node, the switch instructs the first node to send the to-be-updated information to the second node, so that the second node is to be updated according to the Information completion information update.
可选地,当达到时间阈值时,如果节点将待更新信息还未完成更新,则向交换机发送更新失败信息。Optionally, when the time threshold is reached, if the node has not updated the information to be updated, the update failure information is sent to the switch.
例如,时间阈值可以是自定义的值,比如1分钟,服务器N3在接收到待更新信息1分钟后,如服务器N3还未完成更新副本,则服务器N3向交换机发送更新失败信息,这时,交换机接收到服务器N3发送的信息更新失败信息后,指示服务器N2或服务器N4向服务器N3发送待更新信息,具体地,服务器N2或服务器N4将主副本发送给服务器N3,服务器N3通过获取的主副本更新副本,使得服务器N3根据所述待更新信息完成信息更新。For example, the time threshold may be a customized value, such as 1 minute. After the server N3 receives the information to be updated for 1 minute, if the server N3 has not completed the update copy, the server N3 sends an update failure message to the switch, at this time, the switch After receiving the information update failure information sent by the server N3, the server N2 or the server N4 is instructed 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 acquired master copy. The copy causes the server N3 to complete the information update according to the information to be updated.
本发明实施例一提供的信息更新的方法,通过交换机接收信息更新请求消息,所述信息更新请求消息包括:待更新信息和副本组号;根据所述副本组号查询副本组信息表,获取节点号;将所述待更新信息发送至所述节点号对应的节点,使得所述节点根据所述待更新信息完成信息更新。说明交换机将信息更新请求信息直接转发给存储副本的所有节点号,使得发送信息更新请求信息时减少了转发的次数,无需等待,节省了时间,效率高。使得客户端能及时地接收响应信息,避免等待所有的节点更新信息完成而耗时,节省了时间,效率高。接收到所述第二节点发送的信息更新失败信息后,指示所述第一节点向所述第二节点发送所述待更新信息,使得所述第二节点根据所述待更新信息完成信息更新,使得所有的节点能够快捷方便地完成信息更新。The method for updating information according to the first embodiment of the present invention receives an information update request message by using a switch, where the information update request message includes: information to be updated and a copy group number; and querying the copy group information table according to the copy group number to acquire a node Sending the information to be updated to the node corresponding to the node number, so that the node completes the information update according to the information to be updated. The switch forwards the information update request information directly to all the node numbers of the storage copy, so that the number of times of forwarding is reduced when the information update request information is sent, without waiting, saving time and high efficiency. The client can receive the response information in time, avoid waiting for all the node update information to be completed, and time-consuming, saving time and high efficiency. After receiving the information update failure information sent by the second node, instructing the first node to send the to-be-updated information to the second node, so that the second node completes information update according to the to-be-updated information, Make all nodes quick and easy to complete information updates.
实施例二Embodiment 2
图3为本发明实施例二提供的信息更新的方法的信令图。如图3所示,下面对本发明实施例二提供的信息更新的方法的信令交互过程进行详述,所述方法包括以下几个步骤:FIG. 3 is a signaling diagram of a method for updating information according to Embodiment 2 of the present invention. As shown in FIG. 3, the signaling interaction process of the method for updating information provided by Embodiment 2 of the present invention is described in detail below, and the method includes the following steps:
步骤301,客户端向交换机发送更新请求信息。In step 301, the client sends update request information to the switch.
所述信息更新请求消息包括:待更新信息和副本组号。The information update request message includes: information to be updated and a copy group number.
所述信息更新请求消息包括写请求信息和读请求信息,所述写请求信息为指示写操作的请求信息,所述读请求信息为指示浏览操作的请求信息。 The information update request message includes write request information and read request information, the write request information is request information indicating a write operation, and the read request information is request information indicating a browsing operation.
步骤302、交换机根据所述副本组号查询副本组信息表,获取节点号。Step 302: The switch queries the copy group information table according to the copy group number to obtain a node number.
所述副本组信息表包括:所述副本组号,和所述节点号的对应关系;The copy group information table includes: a copy group number, and a correspondence relationship between the node numbers;
步骤303、交换机将所述待更新信息发送至所述节点号对应的节点,使得所述节点根据所述待更新信息完成信息更新。Step 303: The switch sends the information to be updated to the node corresponding to the node number, so that the node completes the information update according to the information to be updated.
所述节点包括第一节点、第二节点。The node includes a first node and a second node.
步骤304、节点根据更新请求信息更新副本。Step 304: The node updates the copy according to the update request information.
步骤305、交换机接收所述第一节点发送的信息更新成功信息时,将第一节点作为主节点。Step 305: When the switch receives the information update success information sent by the first node, the first node is used as the master node.
如果节点更新信息成功后,会发送更新成功信息至交换机。If the node update information is successful, an update success message is sent to the switch.
步骤306、将所述第一节点的节点号保存在所述副本组信息表中。Step 306: Save the node number of the first node in the copy group information table.
步骤307,当交换机接收到的更新完成信息的个数为节点数量的一半时,向客户端发送对应于信息更新请求信息的响应信息。Step 307: When the number of update completion information received by the switch is half of the number of nodes, the response information corresponding to the information update request information is sent to the client.
步骤308、接收到所述第二节点发送的信息更新失败信息后,指示所述第一节点向所述第二节点发送所述待更新信息。Step 308: After receiving the information update failure information sent by the second node, instructing the first node to send the to-be-updated information to the second node.
用于所述第二节点根据所述待更新信息完成信息更新。And the second node is configured to complete information update according to the information to be updated.
步骤309、第一节点向第二节点发送主副本。Step 309: The first node sends a primary copy to the second node.
步骤310,第二节点通过获取的主副本更新副本。In step 310, the second node updates the copy by acquiring the master copy.
本发明实施例二提供的信息更新的方法,通过交换机接收信息更新请求消息,所述信息更新请求消息包括:待更新信息和副本组号;根据所述副本组号查询副本组信息表,获取节点号;将所述待更新信息发送至所述节点号对应的节点,使得所述节点根据所述待更新信息完成信息更新。说明交换机将信息更新请求信息直接转发给存储副本的所有节点号,使得发送信息更新请求信息时减少了转发的次数,无需等待,节省了时间,效率高。使得客户端能及时地接收响应信息,避免等待所有的节点更新信息完成而耗时,节省了时间,效率高。接收到所述第二节点发送的信息更新失败信息后,指示所述第一节点向所述第二节点发送所述待更新信息,使得所述第二节点根据所 述待更新信息完成信息更新,使得所有的节点能够快捷方便地完成信息更新。The information update method provided by the second embodiment of the present invention receives an information update request message by using a switch, where the information update request message includes: information to be updated and a copy group number; and querying the copy group information table according to the copy group number to obtain a node Sending the information to be updated to the node corresponding to the node number, so that the node completes the information update according to the information to be updated. The switch forwards the information update request information directly to all the node numbers of the storage copy, so that the number of times of forwarding is reduced when the information update request information is sent, without waiting, saving time and high efficiency. The client can receive the response information in time, avoid waiting for all the node update information to be completed, and time-consuming, saving time and high efficiency. After receiving the information update failure information sent by the second node, instructing the first node to send the to-be-updated information to the second node, so that the second node is configured according to the The update information completion information update is made, so that all nodes can complete the information update quickly and conveniently.
实施例三Embodiment 3
实施例一描述了以交换机为执行主体实现的信息更新的方法,相应地,本发明还提供了信息更新的装置,图4为本发明实施例三提供的信息更新的装置示意图,如图4所示,信息更新的系统包括:接收单元401、处理单元402和发送单元403。The first embodiment describes a method for updating information by using a switch as an execution subject. Accordingly, the present invention further provides an apparatus for updating information. FIG. 4 is a schematic diagram of an apparatus for updating information according to Embodiment 3 of the present invention. The system for information update includes a receiving unit 401, a processing unit 402, and a transmitting unit 403.
接收单元401,用于接收信息更新请求消息,所述信息更新请求消息包括:待更新信息和副本组号;The receiving unit 401 is configured to receive an information update request message, where the information update request message includes: information to be updated and a copy group number;
处理单元402,用于根据所述副本组号查询副本组信息表,获取节点号,所述副本组信息表包括:所述副本组号,和所述节点号的对应关系;The processing unit 402 is configured to query the copy group information table according to the copy group number to obtain a node number, where the copy group information table includes: the copy group number, and the corresponding relationship between the node numbers;
发送单元403,用于将所述待更新信息发送至所述节点号对应的节点,使得所述节点根据所述待更新信息完成信息更新。The sending unit 403 is 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 node includes a first node and a second node;
所述处理单元,还用于接收所述第一节点发送的信息更新成功信息时,将所述第一节点作为主节点;将所述第一节点的节点号保存在所述副本组信息表中。The processing unit is further configured to: when receiving the information update success information sent by the first node, use the first node as a master node; and save the node number of the first node in the copy group information table. .
可选地,所述处理单元,还用于接收到所述第二节点发送的信息更新失败信息后,指示所述第一节点向所述第二节点发送所述待更新信息,使得所述第二节点根据所述待更新信息完成信息更新。Optionally, the processing unit is further configured to: after receiving the information update failure information sent by the second node, instructing the first node to send the to-be-updated information to the second node, so that the The two nodes complete the information update according to the information to be updated.
可选地,所述信息更新请求消息包括写请求信息和读请求信息,所述写请求信息为指示写操作的请求信息,所述读请求信息为指示浏览操作的请求信息。Optionally, the information update request message includes write request information and read request information, the write request information is request information indicating a write operation, and the read request information is request information indicating a browsing operation.
本发明实施例三提供的信息更新的方法,通过交换机接收信息更新请求消息,所述信息更新请求消息包括:待更新信息和副本组号;根据所述副本组号查询副本组信息表,获取节点号;将所述待更新信息发送至所述节点号对应的节点,使得所述节点根据所述待更新信息完成信息更新。说明交换机 将信息更新请求信息直接转发给存储副本的所有节点号,使得发送信息更新请求信息时减少了转发的次数,无需等待,节省了时间,效率高。使得客户端能及时地接收响应信息,避免等待所有的节点更新信息完成而耗时,节省了时间,效率高。接收到所述第二节点发送的信息更新失败信息后,指示所述第一节点向所述第二节点发送所述待更新信息,使得所述第二节点根据所述待更新信息完成信息更新,使得所有的节点能够快捷方便地完成信息更新。The method for updating information according to Embodiment 3 of the present invention receives an information update request message by using a switch, where the information update request message includes: information to be updated and a copy group number; and querying the copy group information table according to the copy group number to acquire a node Sending the information to be updated to the node corresponding to the node number, so that the node completes the information update according to the information to be updated. Description switch The information update request information is directly forwarded to all node numbers of the storage copy, so that the number of times of forwarding is reduced when the information update request information is sent, without waiting, saving time and high efficiency. The client can receive the response information in time, avoid waiting for all the node update information to be completed, and time-consuming, saving time and high efficiency. After receiving the information update failure information sent by the second node, instructing the first node to send the to-be-updated information to the second node, so that the second node completes information update according to the to-be-updated information, Make all nodes quick and easy to complete information updates.
实施例四Embodiment 4
实施例一描述了以交换机为执行主体实现的信息更新的方法,相应地,本发明实施例四还提供了信息更新的设备,用以实现实施例一中的信息更新的方法,图5为本发明实施例四提供的信息更新的设备示意图,如图5所示,所述系统包括:网络接口501、处理器502、存储器503。系统总线504用于连接网络接口501、处理器502、存储器503。The first embodiment describes a method for updating information by using a switch as an execution subject. Correspondingly, the fourth embodiment of the present invention further provides a device for updating information, which is used to implement the method for updating information in the first embodiment. 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.
网络接口501用于与物联网终端、物联网接入网关、承载网、物联网服务网关和应用服务器通信。The network interface 501 is configured to communicate 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.
存储器503可以是永久存储器,例如硬盘驱动器和闪存,存储器503中具有软件模块和设备驱动程序。软件模块能够执行本发明上述方法的各种功能模块;设备驱动程序可以是网络和接口驱动程序。The memory 503 may be a persistent storage such as a hard disk drive and a flash memory having a software module and a device driver therein. The software modules are capable of performing the various functional modules of the above described methods of the present invention; the device drivers can be network and interface drivers.
在启动时,这些软件组件被加载到存储器503中,然后被处理器502访问并执行如下指令:At startup, these software components are loaded into memory 503 and then accessed by processor 502 and executed as follows:
接收信息更新请求消息,所述信息更新请求消息包括:待更新信息和副本组号;Receiving an information update request message, where the information update request message includes: information to be updated and a copy group number;
根据所述副本组号查询副本组信息表,获取节点号,所述副本组信息表包括:所述副本组号,和所述节点号的对应关系;Querying the copy group information table according to the copy group number, and obtaining a node number, where the copy group information table includes: the copy group number, and the corresponding relationship of the node number;
将所述待更新信息发送至所述节点号对应的节点,使得所述节点根据所述待更新信息完成信息更新。Sending the to-be-updated information to a node corresponding to the node number, so that the node completes information update according to the to-be-updated information.
所述节点包括第一节点、第二节点;所述应用程序还包括可用于使所述 处理器和所述设备执行以下过程的指令:The node includes a first node and a second node; the application further includes The processor and the device execute instructions of the following process:
接收所述第一节点发送的信息更新成功信息时,将所述第一节点作为主节点;Receiving the information update success information sent by the first node, using the first node as a master node;
将所述第一节点的节点号保存在所述副本组信息表中。The node number of the first node is saved in the copy group information table.
进一步的,所述处理器访问存储器503的软件组件后,所述应用程序还包括可用于使所述处理器和所述设备执行以下过程的指令:Further, after the processor accesses the software component of the memory 503, the application further includes instructions operable to cause the processor and the device to perform the following process:
接收到所述第二节点发送的信息更新失败信息后,指示所述第一节点向所述第二节点发送所述待更新信息,使得所述第二节点根据所述待更新信息完成信息更新。And after receiving the information update failure information sent by the second node, instructing the first node to send the to-be-updated information to the second node, so that the second node completes information update according to the to-be-updated information.
所述处理器访问存储器503的软件组件后,所述应用程序还包括可用于使所述处理器和所述设备执行以下过程的指令:After the processor accesses the software component of the memory 503, the application further includes instructions operable to cause the processor and the device to perform the following process:
所述信息更新请求消息包括写请求信息和读请求信息,所述写请求信息为指示写操作的请求信息,所述读请求信息为指示浏览操作的请求信息。The information update request message includes write request information and read request information, the write request information is request information indicating a write operation, and the read request information is request information indicating a browsing operation.
本发明实施例四提供的信息更新的设备,通过交换机接收信息更新请求消息,所述信息更新请求消息包括:待更新信息和副本组号;根据所述副本组号查询副本组信息表,获取节点号;将所述待更新信息发送至所述节点号对应的节点,使得所述节点根据所述待更新信息完成信息更新。说明交换机将信息更新请求信息直接转发给存储副本的所有节点号,使得发送信息更新请求信息时减少了转发的次数,无需等待,节省了时间,效率高。使得客户端能及时地接收响应信息,避免等待所有的节点更新信息完成而耗时,节省了时间,效率高。接收到所述第二节点发送的信息更新失败信息后,指示所述第一节点向所述第二节点发送所述待更新信息,使得所述第二节点根据所述待更新信息完成信息更新,使得所有的节点能够快捷方便地完成信息更新。The information update device provided by the fourth embodiment of the present invention receives an information update request message by using a switch, where the information update request message includes: information to be updated and a copy group number; and querying the copy group information table according to the copy group number to acquire a node Sending the information to be updated to the node corresponding to the node number, so that the node completes the information update according to the information to be updated. The switch forwards the information update request information directly to all the node numbers of the storage copy, so that the number of times of forwarding is reduced when the information update request information is sent, without waiting, saving time and high efficiency. The client can receive the response information in time, avoid waiting for all the node update information to be completed, and time-consuming, saving time and high efficiency. After receiving the information update failure information sent by the second node, instructing the first node to send the to-be-updated information to the second node, so that the second node completes information update according to the to-be-updated information, Make all nodes quick and easy to complete information updates.
专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能 一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。A person skilled in the art should further appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, in order to clearly illustrate hardware and software. Interchangeability, according to the above description The composition and steps of the various examples are generally described. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of a method or algorithm described in connection with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be placed in random access memory (RAM), memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or technical field. Any other form of storage medium known.
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The specific embodiments of the present invention have been described in detail with reference to the preferred embodiments of the present invention. All modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (12)

  1. 一种信息更新的方法,其特征在于,所述方法包括:A method for updating information, characterized in that the method comprises:
    接收信息更新请求消息,所述信息更新请求消息包括:待更新信息和副本组号;Receiving an information update request message, where the information update request message includes: information to be updated and a copy group number;
    根据所述副本组号查询副本组信息表,获取节点号,所述副本组信息表包括:所述副本组号,和所述节点号的对应关系;Querying the copy group information table according to the copy group number, and obtaining a node number, where the copy group information table includes: the copy group number, and the corresponding relationship of the node number;
    将所述待更新信息发送至所述节点号对应的节点,使得所述节点根据所述待更新信息完成信息更新。Sending the to-be-updated information to a node corresponding to the node number, so that the node completes information update according to the to-be-updated information.
  2. 如权利要求1所述的方法,其特征在于,所述节点包括第一节点、第二节点;The method of claim 1 wherein said node comprises a first node and a second node;
    接收所述第一节点发送的信息更新成功信息时,将所述第一节点作为主节点;Receiving the information update success information sent by the first node, using the first node as a master node;
    将所述第一节点的节点号保存在所述副本组信息表中。The node number of the first node is saved in the copy group information table.
  3. 如权利要求2所述的方法,其特征在于,接收到所述第二节点发送的信息更新失败信息后,指示所述第一节点向所述第二节点发送所述待更新信息,使得所述第二节点根据所述待更新信息完成信息更新。The method according to claim 2, after receiving the information update failure information sent by the second node, instructing the first node to send the to-be-updated information to the second node, so that the The second node completes the information update according to the information to be updated.
  4. 如权利要求1-3任一所述的方法,其特征在于,所述信息更新请求消息包括写请求信息和读请求信息,所述写请求信息为指示写操作的请求信息,所述读请求信息为指示浏览操作的请求信息。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 is request information indicating a write operation, and the read request information Request information indicating the browsing operation.
  5. 一种信息更新的装置,其特征在于,所述装置包括:An apparatus for updating information, characterized in that the apparatus comprises:
    接收单元,用于接收信息更新请求消息,所述信息更新请求消息包括:待更新信息和副本组号;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 the copy group information table according to the copy group number, to obtain a node number, where the copy group information table includes: the copy group number, and the corresponding relationship of the node number;
    发送单元,用于将所述待更新信息发送至所述节点号对应的节点,使得所述节点根据所述待更新信息完成信息更新。 And a sending unit, 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.
  6. 如权利要求5所述的信息更新的装置,其特征在于,所述节点包括第一节点、第二节点;The apparatus for updating information according to claim 5, wherein the node comprises a first node and a second node;
    所述处理单元,还用于接收所述第一节点发送的信息更新成功信息时,将所述第一节点作为主节点;将所述第一节点的节点号保存在所述副本组信息表中。The processing unit is further configured to: when receiving the information update success information sent by the first node, use the first node as a master node; and save the node number of the first node in the copy group information table. .
  7. 如权利要求6所述的信息更新的装置,其特征在于,The apparatus for updating information according to claim 6, wherein
    所述处理单元,还用于接收到所述第二节点发送的信息更新失败信息后,指示所述第一节点向所述第二节点发送所述待更新信息,使得所述第二节点根据所述待更新信息完成信息更新。The processing unit is further configured to: after receiving the information update failure information sent by the second node, instructing the first node to send the to-be-updated information to the second node, so that the second node is configured according to the The update information completion information update is described.
  8. 如权利要求5-7任一所述的装置,其特征在于,A device according to any of claims 5-7, wherein
    所述信息更新请求消息包括写请求信息和读请求信息,所述写请求信息为指示写操作的请求信息,所述读请求信息为指示浏览操作的请求信息。The information update request message includes write request information and read request information, the write request information is request information indicating a write operation, and the read request information is request information indicating a browsing operation.
  9. 一种信息更新的设备,其特征在于,所述设备包括:A device for updating information, characterized in that the device comprises:
    网络接口;Network Interface;
    处理器;processor;
    存储器;Memory
    物理存储在所述存储器中的应用程序,所述应用程序包括可用于使所述处理器执行以下过程的指令:An application physically stored in the memory, the application comprising instructions operable to cause the processor to:
    接收信息更新请求消息,所述信息更新请求消息包括:待更新信息和副本组号;Receiving an information update request message, where the information update request message includes: information to be updated and a copy group number;
    根据所述副本组号查询副本组信息表,获取节点号,所述副本组信息表包括:所述副本组号,和所述节点号的对应关系;Querying the copy group information table according to the copy group number, and obtaining a node number, where the copy group information table includes: the copy group number, and the corresponding relationship of the node number;
    将所述待更新信息发送至所述节点号对应的节点,使得所述节点根据所述待更新信息完成信息更新。Sending the to-be-updated information to a node corresponding to the node number, so that the node completes information update according to the to-be-updated information.
  10. 如权利要求9所述的设备,其特征在于,所述节点包括第一节点、第二节点;所述应用程序还包括可用于使所述处理器执行以下过程的指令: The device of claim 9 wherein said node comprises a first node, a second node; said application further comprising instructions operable to cause said processor to:
    接收所述第一节点发送的信息更新成功信息时,将所述第一节点作为主节点;Receiving the information update success information sent by the first node, using the first node as a master node;
    将所述第一节点的节点号保存在所述副本组信息表中。The node number of the first node is saved in the copy group information table.
  11. 如权利要求9所述的设备,其特征在于,所述应用程序还包括可用于使所述处理器执行以下过程的指令:The device of claim 9 wherein said application further comprises instructions operable to cause said processor to:
    接收到所述第二节点发送的信息更新失败信息后,指示所述第一节点向所述第二节点发送所述待更新信息,使得所述第二节点根据所述待更新信息完成信息更新。And after receiving the information update failure information sent by the second node, instructing the first node to send the to-be-updated information to the second node, so that the second node completes information update according to the to-be-updated information.
  12. 如权利要求9-11任一所述的设备,其特征在于,所述应用程序还包括可用于使所述处理器执行以下过程的指令:The device of any of claims 9-11, wherein the application further comprises instructions operable to cause the processor to:
    所述信息更新请求消息包括写请求信息和读请求信息,所述写请求信息为指示写操作的请求信息,所述读请求信息为指示浏览操作的请求信息。 The information update request message includes write request information and read request information, the write request information is request information indicating a write operation, and the read request information is request information indicating a browsing operation.
PCT/CN2014/089758 2014-10-29 2014-10-29 Information updating method, apparatus, and device WO2016065545A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2014/089758 WO2016065545A1 (en) 2014-10-29 2014-10-29 Information updating method, apparatus, and device
CN201480037163.5A CN105765948A (en) 2014-10-29 2014-10-29 Method, device and equipment for updating information

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
WO2016065545A1 true WO2016065545A1 (en) 2016-05-06

Family

ID=55856365

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/089758 WO2016065545A1 (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)

Families Citing this family (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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102780763A (en) * 2012-06-29 2012-11-14 华中科技大学 Distributed home subscriber server (HSS) data storage method and distributed HSS data extraction method
CN103294675A (en) * 2012-02-23 2013-09-11 上海盛霄云计算技术有限公司 Method and device for updating data in distributed storage system
CN103530362A (en) * 2013-10-12 2014-01-22 清华大学 Computer data read-write method for multi-copy distributed system

Family Cites Families (3)

* 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
CN103036717B (en) * 2012-12-12 2015-11-04 北京邮电大学 System and method for maintaining consistency of distributed data
CN103297268B (en) * 2013-05-13 2016-04-06 北京邮电大学 Based on the distributed data consistency maintenance system and method for P2P technology

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294675A (en) * 2012-02-23 2013-09-11 上海盛霄云计算技术有限公司 Method and device for updating data in distributed storage system
CN102780763A (en) * 2012-06-29 2012-11-14 华中科技大学 Distributed home subscriber server (HSS) data storage method and distributed HSS data extraction method
CN103530362A (en) * 2013-10-12 2014-01-22 清华大学 Computer data read-write method for multi-copy distributed system

Also Published As

Publication number Publication date
CN105765948A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
US9286298B1 (en) Methods for enhancing management of backup data sets and devices thereof
US8751451B2 (en) Method and apparatus for facilitating switching between devices
JP6700308B2 (en) Data copy method and device
CN110493122B (en) Session information synchronization method and device, computing equipment and storage medium
CN105468302B (en) A method, device and system for processing data
CN110532123A (en) The failover method and device of HBase system
CN105550306A (en) Multi-copy data reading/writing method and system
CN104954444A (en) Cached data migration method and device
CN107678918A (en) The OSD heartbeat mechanisms method to set up and device of a kind of distributed file system
WO2017008506A1 (en) Command processing method and server
CN103580918B (en) A kind of configuration data processing method and device
CN107547593B (en) A method, device and distributed system for realizing log synchronization
CN108228812A (en) Adaptive host node switching method and device
WO2016101759A1 (en) Data routing method, data management device and distributed storage system
US20150213102A1 (en) Synchronous data replication in a content management system
US20200403850A1 (en) Facilitating resilient and fault tolerant asynchronous messaging
US8090695B2 (en) Dynamic restoration of message object search indexes
CN109905260A (en) Device configuration method, management device and service processing device
CN105009513A (en) Method for updating node device in distributed system, node device and distributed system
US20160150010A1 (en) Information processing apparatus, data save method, and information processing system
WO2016065545A1 (en) Information updating method, apparatus, and device
CN106951443B (en) Method, device and system for replica synchronization based on distributed system
WO2019242279A1 (en) Message processing method and device
CN106407320B (en) File processing method, device and system
CN114138895B (en) Data synchronization method and device for multiple data sources, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14905242

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14905242

Country of ref document: EP

Kind code of ref document: A1