CN111628895B - Configuration data synchronization method, device, equipment and readable storage medium - Google Patents

Configuration data synchronization method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN111628895B
CN111628895B CN202010470865.XA CN202010470865A CN111628895B CN 111628895 B CN111628895 B CN 111628895B CN 202010470865 A CN202010470865 A CN 202010470865A CN 111628895 B CN111628895 B CN 111628895B
Authority
CN
China
Prior art keywords
configuration data
memory
data
changed
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010470865.XA
Other languages
Chinese (zh)
Other versions
CN111628895A (en
Inventor
李国栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010470865.XA priority Critical patent/CN111628895B/en
Publication of CN111628895A publication Critical patent/CN111628895A/en
Application granted granted Critical
Publication of CN111628895B publication Critical patent/CN111628895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种配置数据同步方法,包括:检测是否存在目标业务模块的配置数据被变更;其中,每个控制节点的配置数据均存储在每个控制节点的内存池中;若是,则将变更的配置数据发送至其他控制节点,以通过所述其他控制节点根据所述变更的配置数据,对所述其他控制节点的内存池中存储的配置数据进行配置数据同步。可见,在本申请中,在对配置数据进行同步时,将原来的通过事件驱动的方式变更为通过内存池进行数据同步方式,从而使得业务模块的处理逻辑与配置数据分离,这种同步方式更加通用,便于业务模块的拓展。本发明还公开了一种配置数据同步装置、设备及计算机可读存储介质,同样能实现上述技术效果。

Figure 202010470865

The invention discloses a configuration data synchronization method, comprising: detecting whether the configuration data of a target service module is changed; wherein, the configuration data of each control node is stored in the memory pool of each control node; The changed configuration data is sent to other control nodes, so that the other control nodes perform configuration data synchronization on the configuration data stored in the memory pools of the other control nodes according to the changed configuration data. It can be seen that in this application, when synchronizing the configuration data, the original event-driven method is changed to the data synchronization method through the memory pool, so that the processing logic of the business module is separated from the configuration data. This synchronization method is more Universal, easy to expand business modules. The invention also discloses a configuration data synchronization device, equipment and a computer-readable storage medium, which can also achieve the above technical effects.

Figure 202010470865

Description

一种配置数据同步方法、装置、设备及可读存储介质A configuration data synchronization method, apparatus, device and readable storage medium

技术领域technical field

本发明涉及数据同步技术领域,更具体地说,涉及一种配置数据同步方法、装置、设备及计算机可读存储介质。The present invention relates to the technical field of data synchronization, and more particularly, to a configuration data synchronization method, apparatus, device, and computer-readable storage medium.

背景技术Background technique

存储系统中的集群系统,是一种小型分布式的控制节点集群系统,控制节点之间的配置数据需要随着业务流程的进行随时同步,并且这种同步是基于事件的,例如:其中一个控制节点收到了来自用户的的配置命令,则需要发送事件给集群内其他节点,以保持配置数据在集群内各个控制节点间同步,该配置数据包括:配置数据卷的信息、每个数据卷的LBA(Logical Block Address,逻辑区块地址)、每个数据卷的容量大小、状态等等。基于事件的配置数据同步与业务逻辑之间通常紧紧耦合,在添加新的业务模块时需要定义新的事件,因此不利于业务模块的拓展。The cluster system in the storage system is a small distributed cluster system of control nodes. The configuration data between the control nodes needs to be synchronized at any time with the business process, and this synchronization is based on events. For example, one of the control nodes needs to be synchronized at any time. When the node receives the configuration command from the user, it needs to send events to other nodes in the cluster to keep the configuration data synchronized between the control nodes in the cluster. The configuration data includes: the information of the configuration data volume, the LBA of each data volume (Logical Block Address, logical block address), the capacity of each data volume, status, and so on. Event-based configuration data synchronization and business logic are usually tightly coupled, and new events need to be defined when adding new business modules, which is not conducive to the expansion of business modules.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种配置数据同步方法、装置、设备及计算机可读存储介质,以实现不同控制节点间的配置数据同步。The purpose of the present invention is to provide a configuration data synchronization method, apparatus, device and computer-readable storage medium, so as to realize the configuration data synchronization between different control nodes.

为实现上述目的,本发明提供一种配置数据同步方法,包括:To achieve the above object, the present invention provides a configuration data synchronization method, comprising:

检测是否存在目标业务模块的配置数据被变更;其中,每个控制节点的配置数据均存储在每个控制节点的内存池中;Detecting whether the configuration data of the target business module has been changed; wherein, the configuration data of each control node is stored in the memory pool of each control node;

若是,则将变更的配置数据发送至其他控制节点,以通过所述其他控制节点根据所述变更的配置数据,对所述其他控制节点的内存池中存储的配置数据进行配置数据同步。If so, the changed configuration data is sent to other control nodes, so that the other control nodes perform configuration data synchronization on the configuration data stored in the memory pools of the other control nodes according to the changed configuration data.

其中,所述检测是否存在目标业务模块的配置数据被变更之前,还包括:Wherein, before the detecting whether the configuration data of the target business module is changed, the method further includes:

每个控制节点将本控制节点申请的内存池划分为内存块,每个内存块具有唯一对应的内存块对应号,并记录每个内存块对应号与内存线性地址的对应关系;所述内存池通过内核的巨页机制创建,且存在于RAM中;Each control node divides the memory pool applied for by the control node into memory blocks, each memory block has a unique corresponding number of the memory block, and records the correspondence between the corresponding number of each memory block and the memory linear address; the memory pool Created by the kernel's huge page mechanism and exists in RAM;

业务模块向控制节点的内存池申请内存块,并接收内存池返回的内存块对应号及对应的内存线性地址;所述业务模块所分配的内存块组成所述业务模块的业务数据块,且不同业务数据块具有唯一对应的的业务数据块对应号。The service module applies for a memory block from the memory pool of the control node, and receives the memory block corresponding number and the corresponding memory linear address returned by the memory pool; the memory blocks allocated by the service module constitute the service data blocks of the service module, and are different from each other. The service data block has a unique corresponding service data block corresponding number.

其中,所述将变更的配置数据发送至其他控制节点,包括:Wherein, the sending of the changed configuration data to other control nodes includes:

将变更的内存块数据、变更内存块的内存块对应号、业务数据块对应号、变更时间戳和变更序列号发送至其他控制节点。Send the changed memory block data, the corresponding number of the memory block of the changed memory block, the corresponding number of the business data block, the change time stamp and the change sequence number to other control nodes.

其中,所述其他控制节点根据所述变更的配置数据,对所述其他控制节点的内存池中存储的配置数据进行配置数据同步,包括:Wherein, the other control nodes perform configuration data synchronization on the configuration data stored in the memory pools of the other control nodes according to the changed configuration data, including:

所述其他控制节点接收所述配置数据;the other control nodes receive the configuration data;

将所述配置数据在所述其他控制节点的内存池中进行缓存,并根据所述配置数据中的业务数据块对应号、变更时间戳和变更序列号向所述目标业务模块发送变更通知;Cache the configuration data in the memory pools of the other control nodes, and send a change notification to the target service module according to the corresponding number of the service data block, the change time stamp and the change sequence number in the configuration data;

若所述目标业务模块的返回结果为需要变更,则利用所述配置数据中的变更的内存块数据、变更内存块的内存块对应号,对所述其他控制节点的内存池中的对应内存块进行数据同步。If the return result of the target service module is that it needs to be changed, use the changed memory block data in the configuration data and the corresponding number of the memory block of the changed memory block to compare the corresponding memory blocks in the memory pools of the other control nodes. Perform data synchronization.

其中,所述将所述配置数据在所述其他控制节点的内存池中进行缓存之后,还包括:Wherein, after caching the configuration data in the memory pools of the other control nodes, the method further includes:

判断缓存的配置数据的数量是否达到预定阈值;Determine whether the number of cached configuration data reaches a predetermined threshold;

若是,则执行所述根据所述配置数据中的业务数据块对应号、变更时间戳和变更序列号向所述目标业务模块发送变更通知的步骤。If yes, execute the step of sending a change notification to the target service module according to the corresponding number of the service data block, the change time stamp and the change sequence number in the configuration data.

其中,所述根据所述配置数据中的业务数据块对应号、变更时间戳和变更序列号向所述目标业务模块发送变更通知时,还包括:Wherein, when the change notification is sent to the target service module according to the corresponding number of the service data block, the change time stamp and the change sequence number in the configuration data, the method further includes:

若与同一个业务模块对应的配置数据的数量大于一个,则将与同一个业务模块对应的配置数据的变更通知合并,仅向对应的业务模块发送一个变更通知。If the quantity of configuration data corresponding to the same service module is greater than one, the change notifications of the configuration data corresponding to the same service module are merged, and only one change notification is sent to the corresponding service module.

其中,本方案还包括:将内存池中的数据备份至ROM或者硬盘。The solution further includes: backing up the data in the memory pool to the ROM or the hard disk.

为实现上述目的,本发明进一步提供一种配置数据同步装置,包括:In order to achieve the above object, the present invention further provides a configuration data synchronization device, comprising:

检测模块,用于检测是否存在目标业务模块的配置数据被变更;其中,每个控制节点的配置数据均存储在每个控制节点的内存池中;a detection module for detecting whether the configuration data of the target business module is changed; wherein, the configuration data of each control node is stored in the memory pool of each control node;

发送模块,用于存在目标业务模块的配置数据被变更时,将变更的配置数据发送至其他控制节点,以通过所述其他控制节点根据所述变更的配置数据,对所述其他控制节点的内存池中存储的配置数据进行配置数据同步。The sending module is used to send the changed configuration data to other control nodes when the configuration data of the target service module is changed, so that the memory of the other control nodes can be sent to the memory of the other control nodes by the other control nodes according to the changed configuration data. The configuration data stored in the pool is synchronized with the configuration data.

为实现上述目的,本发明进一步提供一种电子设备,包括:To achieve the above object, the present invention further provides an electronic device, comprising:

存储器,用于存储计算机程序;处理器,用于执行所述计算机程序时实现上述的配置数据同步方法的步骤。The memory is used to store the computer program; the processor is used to implement the steps of the above-mentioned configuration data synchronization method when the computer program is executed.

为实现上述目的,本发明进一步提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述的配置数据同步方法的步骤。To achieve the above object, the present invention further provides a computer-readable storage medium, where a computer program is stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned configuration data synchronization method are implemented.

通过以上方案可知,本发明实施例提供的一种配置数据同步方法,包括:检测是否存在目标业务模块的配置数据被变更;其中,每个控制节点的配置数据均存储在每个控制节点的内存池中;若是,则将变更的配置数据发送至其他控制节点,以通过所述其他控制节点根据所述变更的配置数据,对所述其他控制节点的内存池中存储的配置数据进行配置数据同步。It can be seen from the above solutions that a configuration data synchronization method provided by an embodiment of the present invention includes: detecting whether the configuration data of the target service module is changed; wherein, the configuration data of each control node is stored in the memory of each control node. If yes, send the changed configuration data to other control nodes, so that the other control nodes can synchronize the configuration data stored in the memory pools of the other control nodes according to the changed configuration data. .

可见,在本申请中,在对配置数据进行同步时,将原来的通过事件驱动的方式变更为通过内存池进行数据同步方式,从而使得业务模块的处理逻辑与配置数据分离,这种同步方式更加通用,便于业务模块的拓展。本发明还公开了一种配置数据同步装置、设备及计算机可读存储介质,同样能实现上述技术效果。It can be seen that in this application, when synchronizing the configuration data, the original event-driven method is changed to the data synchronization method through the memory pool, so that the processing logic of the business module is separated from the configuration data, and this synchronization method is more Universal, easy to expand business modules. The invention also discloses a configuration data synchronization device, equipment and a computer-readable storage medium, which can also achieve the above technical effects.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1为本发明实施例公开的一种配置数据同步方法流程示意图;1 is a schematic flowchart of a configuration data synchronization method disclosed in an embodiment of the present invention;

图2为本发明实施例公开的一种配置数据同步装置结构示意图;2 is a schematic structural diagram of a configuration data synchronization apparatus disclosed in an embodiment of the present invention;

图3为本发明实施例公开的一种电子设备结构示意图。FIG. 3 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

本发明实施例公开了一种配置数据同步方法、装置、设备及计算机可读存储介质,以实现不同控制节点间的配置数据同步。Embodiments of the present invention disclose a configuration data synchronization method, apparatus, device, and computer-readable storage medium, so as to realize configuration data synchronization between different control nodes.

参见图1,本发明实施例提供的一种配置数据同步方法,包括:Referring to FIG. 1, a configuration data synchronization method provided by an embodiment of the present invention includes:

S101、检测是否存在目标业务模块的配置数据被变更;其中,每个控制节点的配置数据均存储在每个控制节点的内存池中;S101, detecting whether the configuration data of the target service module is changed; wherein, the configuration data of each control node is stored in the memory pool of each control node;

若是,则执行S102;若否,则继续执行S101;If yes, execute S102; if not, continue to execute S101;

其中,所述检测是否存在目标业务模块的配置数据被变更之前,还包括:Wherein, before the detecting whether the configuration data of the target business module is changed, the method further includes:

每个控制节点将本控制节点申请的内存池划分为内存块,每个内存块具有唯一对应的内存块对应号,并记录每个内存块对应号与内存线性地址的对应关系;所述内存池通过内核的巨页机制创建,且存在于RAM中;Each control node divides the memory pool applied for by the control node into memory blocks, each memory block has a unique corresponding number of the memory block, and records the correspondence between the corresponding number of each memory block and the memory linear address; the memory pool Created by the kernel's huge page mechanism and exists in RAM;

业务模块向控制节点的内存池申请内存块,并接收内存池返回的内存块对应号及对应的内存线性地址;所述业务模块所分配的内存块组成所述业务模块的业务数据块,且不同业务数据块具有唯一对应的的业务数据块对应号。The service module applies for a memory block from the memory pool of the control node, and receives the memory block corresponding number and the corresponding memory linear address returned by the memory pool; the memory blocks allocated by the service module constitute the service data blocks of the service module, and are different from each other. The service data block has a unique corresponding service data block corresponding number.

在本申请中,该配置数据是集群内各个控制节点需要同步的数据,包括:数据卷的信息、每个数据卷的LBA、每个数据卷的容量大小、状态等等;并且,本申请中的业务模块具体为存储软件系统中的cache模块、协议处理模块、raid模块等等。In this application, the configuration data is the data that needs to be synchronized by each control node in the cluster, including: data volume information, LBA of each data volume, capacity size, status of each data volume, etc.; and, in this application The business modules are specifically the cache module, protocol processing module, raid module and so on in the storage software system.

需要说明的是,在本申请中,每个控制节点均设置有特殊的内存池DATA POOL,每个控制节点的配置数据存储在每个控制节点的内存池中。具体来说,DATA POOL在创建时,使用内核的巨页机制,常驻内存,降低频繁swap交换所带来的性能开销。DATA POOL从OS(Operating System,操作系统)申请内存大块,并在页内划分为合适的内存块,每个内存块具有对应的内存块对应号,记录内存块对应号与内存线性地址的对应关系。进一步,业务模块执行操作前需要按指定大小向DATA POOL申请业务业务数据块(WORK DATA CHUNK),DATAPOOL会返回业务数据块对应号和线性逻辑地址。业务模块在申请业务数据块时同时注册数据块变更通知处理逻辑,用于精细化控制业务流程。It should be noted that, in this application, each control node is provided with a special memory pool DATA POOL, and the configuration data of each control node is stored in the memory pool of each control node. Specifically, when DATA POOL is created, it uses the kernel's huge page mechanism to resident in memory to reduce the performance overhead caused by frequent swaps. DATA POOL applies for a large memory block from the OS (Operating System), and divides it into appropriate memory blocks in the page. Each memory block has a corresponding memory block corresponding number, and records the correspondence between the memory block corresponding number and the memory linear address relation. Further, before the business module performs the operation, it needs to apply for a business data block (WORK DATA CHUNK) to the DATA POOL according to the specified size, and the DATAPOOL will return the corresponding number and linear logical address of the business data block. The business module registers the data block change notification processing logic at the same time when applying for the business data block, which is used to finely control the business process.

其中,DATA POOL分配给业务模块的内存空间是由多个内存块组成的,组成业务数据块的小区块线性空间连续。由于业务模块需要的数据内容、数据大小需要预先设置好,集群内各个控制节点的逻辑基本是相同的,因此可以提前设置好业务模块与业务数据块对应号之间的对应关系。Among them, the memory space allocated to the business module by the DATA POOL is composed of multiple memory blocks, and the small blocks that form the business data block are continuous in linear space. Since the data content and data size required by the business module need to be set in advance, and the logic of each control node in the cluster is basically the same, the corresponding relationship between the business module and the corresponding number of the business data block can be set in advance.

S102、将变更的配置数据发送至其他控制节点,以通过所述其他控制节点根据所述变更的配置数据,对所述其他控制节点的内存池中存储的配置数据进行配置数据同步。S102. Send the changed configuration data to other control nodes, so that the other control nodes perform configuration data synchronization on the configuration data stored in the memory pools of the other control nodes according to the changed configuration data.

其中,所述将变更的配置数据发送至其他控制节点,包括:将变更的内存块数据、变更内存块的内存块对应号、业务数据块对应号、变更时间戳和变更序列号发送至其他控制节点。The sending of the changed configuration data to other control nodes includes: sending the changed memory block data, the corresponding number of the memory block of the changed memory block, the corresponding number of the service data block, the change time stamp and the change sequence number to other control nodes node.

需要说明的是,在本申请中,业务模块变更配置数据时,会触发DATA POOL执行同步动作,DATA POOL会将变更的配置数据(内存块及其他必须数据)同步至集群内其他控制节点,这样,无需业务模块发送特定事件通知其他控制节点,降低了业务模块拓展的复杂度。It should be noted that in this application, when the business module changes the configuration data, it will trigger the DATA POOL to perform a synchronization action, and the DATA POOL will synchronize the changed configuration data (memory blocks and other necessary data) to other control nodes in the cluster, so that , the business module does not need to send specific events to notify other control nodes, which reduces the complexity of business module expansion.

具体来说,本申请中的DATA POOL本身不维护集群关系,在向其他控制节点发送配置数据时,需要获取集群关系,然后使用以太网或FC等方式把变更的内存块数据以及内存块对应号、业务数据块对应号、时间戳、变更sequence等内容扩散至集群内其他节点,其他节点进行配置数据的同步。Specifically, the DATA POOL in this application itself does not maintain the cluster relationship. When sending configuration data to other control nodes, it is necessary to obtain the cluster relationship, and then use Ethernet or FC to transfer the changed memory block data and the corresponding number of the memory block. , the corresponding number, timestamp, and change sequence of the business data block are spread to other nodes in the cluster, and other nodes synchronize the configuration data.

可以看出,在本申请中,在对配置数据进行同步时,将原来的通过事件驱动的方式变更为通过内存池进行数据同步方式,从而使得业务模块的处理逻辑与配置数据分离,这种同步方式更加通用,便于业务模块的拓展。It can be seen that in this application, when synchronizing the configuration data, the original event-driven method is changed to the data synchronization method through the memory pool, so that the processing logic of the business module is separated from the configuration data. This synchronization The method is more general, which is convenient for the expansion of business modules.

基于上述实施例,在本实施例中,所述其他控制节点根据所述变更的配置数据,对所述其他控制节点的内存池中存储的配置数据进行配置数据同步时,具体包括:Based on the foregoing embodiment, in this embodiment, when the other control node performs configuration data synchronization on the configuration data stored in the memory pool of the other control node according to the changed configuration data, it specifically includes:

所述其他控制节点接收所述配置数据;the other control nodes receive the configuration data;

将所述配置数据在所述其他控制节点的内存池中进行缓存,并根据所述配置数据中的业务数据块对应号、变更时间戳和变更序列号向所述目标业务模块发送变更通知;Cache the configuration data in the memory pools of the other control nodes, and send a change notification to the target service module according to the corresponding number of the service data block, the change time stamp and the change sequence number in the configuration data;

若所述目标业务模块的返回结果为需要变更,则利用所述配置数据中的变更的内存块数据、变更内存块的内存块对应号,对所述其他控制节点的内存池中的对应内存块进行数据同步。If the return result of the target service module is that it needs to be changed, use the changed memory block data in the configuration data and the corresponding number of the memory block of the changed memory block to compare the corresponding memory blocks in the memory pools of the other control nodes. Perform data synchronization.

需要说明的是,在本申请中,其他节点收到变更配置信息的通知后,不会直接根据配置信息覆盖本地对应的内存块,而是会先缓存,然后向对应的业务模块发送变更通知,业务逻辑处理该变更通知时,如果判定该变更数据是重复的,则不需要再次覆盖,否则,则需要进行内存块数据的覆盖,内存池通过返回值判断是否覆盖对应的内存块,通过这种方式,可以避免内存块的重复覆盖,节省数据同步时间。It should be noted that, in this application, after other nodes receive a notification of changing configuration information, they will not directly overwrite the corresponding local memory block according to the configuration information, but will cache it first, and then send a change notification to the corresponding business module. When the business logic processes the change notification, if it is determined that the changed data is repeated, it does not need to be overwritten again. Otherwise, the memory block data needs to be overwritten. The memory pool determines whether to overwrite the corresponding memory block through the return value. In this way, repeated coverage of memory blocks can be avoided and data synchronization time can be saved.

进一步的,在本申请中,将所述配置数据在所述其他控制节点的内存池中进行缓存之后,还包括:Further, in this application, after the configuration data is cached in the memory pools of the other control nodes, the method further includes:

判断缓存的配置数据的数量是否达到预定阈值;若是,则执行所述根据所述配置数据中的业务数据块对应号、变更时间戳和变更序列号向所述目标业务模块发送变更通知的步骤。并且,若与同一个业务模块对应的配置数据的数量大于一个,则将与同一个业务模块对应的配置数据的变更通知合并,仅向对应的业务模块发送一个变更通知。Determine whether the number of cached configuration data reaches a predetermined threshold; if so, execute the step of sending a change notification to the target service module according to the service data block corresponding number, change timestamp and change sequence number in the configuration data. Moreover, if the quantity of configuration data corresponding to the same service module is greater than one, the change notifications of the configuration data corresponding to the same service module are merged, and only one change notification is sent to the corresponding service module.

具体来说,本申请先将所有的配置数据进行缓存,若缓存的配置数据的数量到达一定次数,或者达到预定的处理周期时,可向对应的业务模块发送变更通知。并且,若本申请连续收到同一业务数据块中内存块的变更,则将变更进行合并处理,只触发一次变更通知,这是为了避免恶意攻击的情况。需要说明的是,若存在新节点加入集群,则会向已有节点发送数据块请求,用以迅速同步最新的配置数据。Specifically, the present application caches all configuration data first, and if the number of cached configuration data reaches a certain number of times or reaches a predetermined processing period, a change notification can be sent to the corresponding service module. In addition, if the application continuously receives changes to the memory blocks in the same service data block, the changes will be combined and processed, and only one change notification will be triggered, which is to avoid malicious attacks. It should be noted that if a new node joins the cluster, a data block request will be sent to the existing node to quickly synchronize the latest configuration data.

需要说明的是,本申请还可以将内存池中的数据备份至ROM或者硬盘。也即:由于本申请中的DATA POOL存在于RAM中,会有断电丢失的风险,也会有集群节点全灭导致的数据丢失问题。因此本申请可采用定时或基于策略的方式与ROM或硬盘执行配置数据同步机制。同步机制会根据这段时间内的变更记录将变更同步至硬盘,同时也会将收到变更通知的待更新的数据同步,避免缓存问题导致的数据丢失。It should be noted that the application can also back up the data in the memory pool to a ROM or a hard disk. That is, since the DATA POOL in this application exists in the RAM, there is a risk of power failure and loss, and there is also the problem of data loss caused by the complete extinction of cluster nodes. Therefore, the present application can implement the configuration data synchronization mechanism with the ROM or the hard disk in a timing or policy-based manner. The synchronization mechanism will synchronize the changes to the hard disk according to the change records during this period, and will also synchronize the data to be updated after receiving the change notification to avoid data loss caused by cache problems.

综上可以看出,本方案主要是对配置数据同步方式的变更,由原来的通过事件驱动的同步方式变为更加通用的基于内存数据块的同步,只需要定义好不同业务模块的业务数据块对应号,以及业务模块的配置数据的占用空间。将业务逻辑处理与实际配置数据分离,由集群业务逻辑参与的数据同步降低为节点配置数据间的同步,降低了集群发生不同步现象的风险。开发人员全权负责业务数据块变更的逻辑,降低了需要考虑集群这种情况的思维负担。From the above, it can be seen that this solution is mainly to change the synchronization method of configuration data, from the original event-driven synchronization method to a more general synchronization based on memory data blocks, only need to define the business data blocks of different business modules. The corresponding number, and the occupied space of the configuration data of the business module. The business logic processing is separated from the actual configuration data, and the data synchronization participated by the cluster business logic is reduced to the synchronization between the node configuration data, which reduces the risk of the cluster being out of synchronization. Developers are solely responsible for the logic of business data block changes, reducing the need to consider clusters.

下面对本发明实施例提供的同步装置进行介绍,下文描述的同步装置与上文描述的同步方法可以相互参照。The synchronization apparatus provided by the embodiment of the present invention is introduced below, and the synchronization apparatus described below and the synchronization method described above can be referred to each other.

参见图2,本发明实施例提供的一种配置数据同步装置,包括:Referring to FIG. 2, a configuration data synchronization apparatus provided by an embodiment of the present invention includes:

检测模块100,用于检测是否存在目标业务模块的配置数据被变更;其中,每个控制节点的配置数据均存储在每个控制节点的内存池中;The detection module 100 is used to detect whether the configuration data of the target service module is changed; wherein, the configuration data of each control node is stored in the memory pool of each control node;

发送模块200,用于存在目标业务模块的配置数据被变更时,将变更的配置数据发送至其他控制节点,以通过所述其他控制节点根据所述变更的配置数据,对所述其他控制节点的内存池中存储的配置数据进行配置数据同步。The sending module 200 is configured to send the changed configuration data to other control nodes when the configuration data of the target service module is changed, so that the other control nodes can send the changed configuration data to the other control nodes according to the changed configuration data. The configuration data stored in the memory pool is synchronized with the configuration data.

其中,本装置还包括:Wherein, the device also includes:

内存池划分模块,用于每个控制节点将本控制节点申请的内存池划分为内存块,每个内存块具有唯一对应的内存块对应号;The memory pool division module is used for each control node to divide the memory pool applied for by the control node into memory blocks, and each memory block has a unique corresponding memory block number;

记录模块,用于记录每个内存块对应号与内存线性地址的对应关系;所述内存池通过内核的巨页机制创建,且存在于RAM中;a recording module for recording the correspondence between the corresponding number of each memory block and the memory linear address; the memory pool is created by the huge page mechanism of the kernel, and exists in the RAM;

内存块申请模块,用于接收业务模块向控制节点的内存池申请内存块,并接收内存池返回的内存块对应号及对应的内存线性地址;所述业务模块所分配的内存块组成所述业务模块的业务数据块,且不同业务数据块具有唯一对应的的业务数据块对应号。The memory block application module is used for receiving the memory block application from the business module to the memory pool of the control node, and receiving the memory block corresponding number and the corresponding memory linear address returned by the memory pool; the memory blocks allocated by the business module constitute the business The service data block of the module, and different service data blocks have unique corresponding service data block corresponding numbers.

其中,发送模块具体用于:将变更的内存块数据、变更内存块的内存块对应号、业务数据块对应号、变更时间戳和变更序列号发送至其他控制节点。The sending module is specifically used for: sending the changed memory block data, the corresponding number of the memory block of the changed memory block, the corresponding number of the service data block, the change time stamp and the change sequence number to other control nodes.

其中,其他控制节点包括同步模块,包括:Among them, other control nodes include synchronization modules, including:

接收单元,用于接收所述配置数据;a receiving unit, configured to receive the configuration data;

缓存单元,用于将所述配置数据在所述其他控制节点的内存池中进行缓存;a cache unit, configured to cache the configuration data in the memory pools of the other control nodes;

通知发送单元,用于根据所述配置数据中的业务数据块对应号、变更时间戳和变更序列号向所述目标业务模块发送变更通知;a notification sending unit, configured to send a change notification to the target service module according to the corresponding number of the service data block, the change time stamp and the change sequence number in the configuration data;

同步单元,用于在所述目标业务模块的返回结果为需要变更时,利用所述配置数据中的变更的内存块数据、变更内存块的内存块对应号,对所述其他控制节点的内存池中的对应内存块进行数据同步。A synchronization unit, configured to use the changed memory block data in the configuration data and the memory block corresponding number of the changed memory block to update the memory pools of the other control nodes when the return result of the target service module is that it needs to be changed. The corresponding memory block in the data synchronization is performed.

其中,其他控制节点还包括:Among them, other control nodes also include:

判断模块,用于判断缓存的配置数据的数量是否达到预定阈值;a judgment module for judging whether the number of cached configuration data reaches a predetermined threshold;

若是,则触发所述通知发送单元根据所述配置数据中的业务数据块对应号、变更时间戳和变更序列号向所述目标业务模块发送变更通知。If yes, trigger the notification sending unit to send a change notification to the target service module according to the corresponding number of the service data block, the change time stamp and the change sequence number in the configuration data.

其中,若与同一个业务模块对应的配置数据的数量大于一个,则通知发送单元将与同一个业务模块对应的配置数据的变更通知合并,仅向对应的业务模块发送一个变更通知。Wherein, if the quantity of configuration data corresponding to the same service module is greater than one, the notification sending unit merges the change notifications of the configuration data corresponding to the same service module, and only sends one change notification to the corresponding service module.

其中,本装置还包括备份模块,用于将内存池中的数据备份至ROM或者硬盘。Wherein, the device further includes a backup module for backing up the data in the memory pool to the ROM or the hard disk.

参见图3,本发明实施例还公开了一种电子设备,,包括:Referring to FIG. 3, an embodiment of the present invention also discloses an electronic device, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序时实现上述方法实施例所述的配置数据同步方法的步骤。The processor is configured to implement the steps of the configuration data synchronization method described in the above method embodiments when executing the computer program.

在本实施例中,设备可以是PC(Personal Computer,个人电脑),也可以是智能手机、平板电脑、掌上电脑、便携计算机等终端设备。In this embodiment, the device may be a PC (Personal Computer, personal computer), or may be a terminal device such as a smart phone, a tablet computer, a palmtop computer, and a portable computer.

该设备可以包括存储器11、处理器12和总线13。The device may include a memory 11 , a processor 12 and a bus 13 .

其中,存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、磁性存储器、磁盘、光盘等。存储器11在一些实施例中可以是设备的内部存储单元,例如该设备的硬盘。存储器11在另一些实施例中也可以是设备的外部存储设备,例如设备上配备的插接式硬盘,智能存储卡(SmartMedia Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器11还可以既包括设备的内部存储单元也包括外部存储设备。存储器11不仅可以用于存储安装于设备的应用软件及各类数据,例如执行同步方法的程序代码等,还可以用于暂时地存储已经输出或者将要输出的数据。The memory 11 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (eg, SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the device, such as a hard disk of the device. In other embodiments, the memory 11 may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash memory card ( Flash Card), etc. Further, the memory 11 may also include both an internal storage unit of the device and an external storage device. The memory 11 can be used not only to store application software installed in the device and various types of data, such as program codes for executing the synchronization method, etc., but also to temporarily store data that has been output or will be output.

处理器12在一些实施例中可以是一中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器或其他数据处理芯片,用于运行存储器11中存储的程序代码或处理数据,例如执行同步方法的程序代码等。The processor 12 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chips in some embodiments, for running program codes or processing stored in the memory 11 Data, such as program code that executes a synchronized method, etc.

该总线13可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图3中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 13 may be a peripheral component interconnect (PCI for short) bus or an extended industry standard architecture (Extended industry standard architecture, EISA for short) bus or the like. The bus can be divided into address bus, data bus, control bus and so on. For ease of presentation, only one thick line is used in FIG. 3, but it does not mean that there is only one bus or one type of bus.

进一步地,设备还可以包括网络接口14,网络接口14可选的可以包括有线接口和/或无线接口(如WI-FI接口、蓝牙接口等),通常用于在该设备与其他电子设备之间建立通信连接。Further, the device may also include a network interface 14, and the network interface 14 may optionally include a wired interface and/or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used between the device and other electronic devices Establish a communication connection.

可选地,该设备还可以包括用户接口,用户接口可以包括显示器(Display)、输入单元比如键盘(Keyboard),可选的用户接口还可以包括标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在设备中处理的信息以及用于显示可视化的用户界面。Optionally, the device may further include a user interface, and the user interface may include a display (Display), an input unit such as a keyboard (Keyboard), and an optional user interface may further include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, and the like. Among them, the display may also be appropriately referred to as a display screen or a display unit, for displaying information processed in the device and for displaying a visual user interface.

图3仅示出了具有组件11-14的设备,本领域技术人员可以理解的是,图3示出的结构并不构成对设备的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。FIG. 3 only shows the device with components 11-14. Those skilled in the art can understand that the structure shown in FIG. 3 does not constitute a limitation on the device, and may include fewer or more components than those shown. Either some components are combined, or different component arrangements.

本发明实施例还公开了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述方法实施例所述的配置数据同步方法的步骤。Embodiments of the present invention further disclose a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the configuration data synchronization method described in the above method embodiment is implemented. step.

其中,该存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。Wherein, the storage medium may include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various storage media that can store program codes medium.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments can be referred to each other.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (7)

1.一种配置数据同步方法,其特征在于,包括:1. a configuration data synchronization method, is characterized in that, comprises: 每个控制节点将本控制节点申请的内存池划分为内存块,每个内存块具有唯一对应的内存块对应号,并记录每个内存块对应号与内存线性地址的对应关系;所述内存池通过内核的巨页机制创建,且存在于RAM中;Each control node divides the memory pool applied for by the control node into memory blocks, each memory block has a unique corresponding number of the memory block, and records the correspondence between the corresponding number of each memory block and the memory linear address; the memory pool Created by the kernel's huge page mechanism and exists in RAM; 业务模块向控制节点的内存池申请内存块,并接收内存池返回的内存块对应号及对应的内存线性地址;所述业务模块所分配的内存块组成所述业务模块的业务数据块,且不同业务数据块具有唯一对应的业务数据块对应号;The service module applies for a memory block from the memory pool of the control node, and receives the memory block corresponding number and the corresponding memory linear address returned by the memory pool; the memory blocks allocated by the service module constitute the service data blocks of the service module, and are different from each other. The service data block has a unique corresponding service data block corresponding number; 检测是否存在目标业务模块的配置数据被变更;其中,每个控制节点的配置数据均存储在每个控制节点的内存池中;Detecting whether the configuration data of the target business module has been changed; wherein, the configuration data of each control node is stored in the memory pool of each control node; 若是,则将变更的配置数据发送至其他控制节点,以通过所述其他控制节点根据所述变更的配置数据,对所述其他控制节点的内存池中存储的配置数据进行配置数据同步;If so, send the changed configuration data to other control nodes, so that the other control nodes perform configuration data synchronization on the configuration data stored in the memory pools of the other control nodes according to the changed configuration data; 其中,所述将变更的配置数据发送至其他控制节点,包括:将变更的内存块数据、变更内存块的内存块对应号、业务数据块对应号、变更时间戳和变更序列号发送至其他控制节点;The sending of the changed configuration data to other control nodes includes: sending the changed memory block data, the corresponding number of the memory block of the changed memory block, the corresponding number of the service data block, the change time stamp and the change sequence number to other control nodes node; 其中,所述其他控制节点根据所述变更的配置数据,对所述其他控制节点的内存池中存储的配置数据进行配置数据同步,包括:Wherein, the other control nodes perform configuration data synchronization on the configuration data stored in the memory pools of the other control nodes according to the changed configuration data, including: 所述其他控制节点接收所述配置数据;the other control nodes receive the configuration data; 将所述配置数据在所述其他控制节点的内存池中进行缓存,并根据所述配置数据中的业务数据块对应号、变更时间戳和变更序列号向所述目标业务模块发送变更通知;Cache the configuration data in the memory pools of the other control nodes, and send a change notification to the target service module according to the corresponding number of the service data block, the change time stamp and the change sequence number in the configuration data; 若所述目标业务模块的返回结果为需要变更,则利用所述配置数据中的变更的内存块数据、变更内存块的内存块对应号,对所述其他控制节点的内存池中的对应内存块进行数据同步。If the return result of the target service module is that it needs to be changed, use the changed memory block data in the configuration data and the corresponding number of the memory block of the changed memory block to compare the corresponding memory blocks in the memory pools of the other control nodes. Perform data synchronization. 2.根据权利要求1所述的配置数据同步方法,其特征在于,所述将所述配置数据在所述其他控制节点的内存池中进行缓存之后,还包括:2 . The configuration data synchronization method according to claim 1 , wherein after the configuration data is cached in the memory pools of the other control nodes, the method further comprises: 2 . 判断缓存的配置数据的数量是否达到预定阈值;Determine whether the number of cached configuration data reaches a predetermined threshold; 若是,则执行所述根据所述配置数据中的业务数据块对应号、变更时间戳和变更序列号向所述目标业务模块发送变更通知的步骤。If yes, execute the step of sending a change notification to the target service module according to the corresponding number of the service data block, the change time stamp and the change sequence number in the configuration data. 3.根据权利要求2所述的配置数据同步方法,其特征在于,所述根据所述配置数据中的业务数据块对应号、变更时间戳和变更序列号向所述目标业务模块发送变更通知时,还包括:3. configuration data synchronization method according to claim 2, is characterized in that, described according to the service data block correspondence number in described configuration data, change time stamp and change sequence number when sending change notification to described target service module ,Also includes: 若与同一个业务模块对应的配置数据的数量大于一个,则将与同一个业务模块对应的配置数据的变更通知合并,仅向对应的业务模块发送一个变更通知。If the quantity of configuration data corresponding to the same service module is greater than one, the change notifications of the configuration data corresponding to the same service module are merged, and only one change notification is sent to the corresponding service module. 4.根据权利要求1至3任意一项所述的配置数据同步方法,其特征在于,还包括:将内存池中的数据备份至ROM或者硬盘。4 . The configuration data synchronization method according to claim 1 , further comprising: backing up data in the memory pool to a ROM or a hard disk. 5 . 5.一种配置数据同步装置,其特征在于,包括:5. A configuration data synchronization device, comprising: 检测模块,用于检测是否存在目标业务模块的配置数据被变更;其中,每个控制节点的配置数据均存储在每个控制节点的内存池中;a detection module for detecting whether the configuration data of the target business module is changed; wherein, the configuration data of each control node is stored in the memory pool of each control node; 发送模块,用于存在目标业务模块的配置数据被变更时,将变更的配置数据发送至其他控制节点,以通过所述其他控制节点根据所述变更的配置数据,对所述其他控制节点的内存池中存储的配置数据进行配置数据同步;The sending module is used to send the changed configuration data to other control nodes when the configuration data of the target service module is changed, so that the memory of the other control nodes can be sent to the memory of the other control nodes by the other control nodes according to the changed configuration data. The configuration data stored in the pool is synchronized with the configuration data; 内存池划分模块,用于每个控制节点将本控制节点申请的内存池划分为内存块,每个内存块具有唯一对应的内存块对应号;The memory pool division module is used for each control node to divide the memory pool applied for by the control node into memory blocks, and each memory block has a unique corresponding memory block number; 记录模块,用于记录每个内存块对应号与内存线性地址的对应关系;所述内存池通过内核的巨页机制创建,且存在于RAM中;a recording module for recording the correspondence between the corresponding number of each memory block and the memory linear address; the memory pool is created by the huge page mechanism of the kernel, and exists in the RAM; 内存块申请模块,用于接收业务模块向控制节点的内存池申请内存块,并接收内存池返回的内存块对应号及对应的内存线性地址;所述业务模块所分配的内存块组成所述业务模块的业务数据块,且不同业务数据块具有唯一对应的业务数据块对应号;The memory block application module is used for receiving the memory block application from the business module to the memory pool of the control node, and receiving the memory block corresponding number and the corresponding memory linear address returned by the memory pool; the memory blocks allocated by the business module constitute the business The business data block of the module, and different business data blocks have unique corresponding business data block corresponding numbers; 其中,发送模块具体用于:将变更的内存块数据、变更内存块的内存块对应号、业务数据块对应号、变更时间戳和变更序列号发送至其他控制节点;The sending module is specifically used for: sending the changed memory block data, the corresponding number of the memory block of the changed memory block, the corresponding number of the business data block, the change time stamp and the change sequence number to other control nodes; 其中,其他控制节点包括同步模块,包括:Among them, other control nodes include synchronization modules, including: 接收单元,用于接收所述配置数据;a receiving unit, configured to receive the configuration data; 缓存单元,用于将所述配置数据在所述其他控制节点的内存池中进行缓存;a cache unit, configured to cache the configuration data in the memory pools of the other control nodes; 通知发送单元,用于根据所述配置数据中的业务数据块对应号、变更时间戳和变更序列号向所述目标业务模块发送变更通知;a notification sending unit, configured to send a change notification to the target service module according to the corresponding number of the service data block, the change time stamp and the change sequence number in the configuration data; 同步单元,用于在所述目标业务模块的返回结果为需要变更时,利用所述配置数据中的变更的内存块数据、变更内存块的内存块对应号,对所述其他控制节点的内存池中的对应内存块进行数据同步。A synchronization unit, configured to use the changed memory block data in the configuration data and the memory block corresponding number of the changed memory block to update the memory pools of the other control nodes when the return result of the target service module is that it needs to be changed. The corresponding memory block in the data synchronization is performed. 6.一种电子设备,其特征在于,包括:6. An electronic device, characterized in that, comprising: 存储器,用于存储计算机程序;memory for storing computer programs; 处理器,用于执行所述计算机程序时实现如权利要求1至4任一项所述的配置数据同步方法的步骤。The processor is configured to implement the steps of the configuration data synchronization method according to any one of claims 1 to 4 when executing the computer program. 7.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至4任一项所述的配置数据同步方法的步骤。7. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the configuration according to any one of claims 1 to 4 is realized The steps of the data synchronization method.
CN202010470865.XA 2020-05-28 2020-05-28 Configuration data synchronization method, device, equipment and readable storage medium Active CN111628895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010470865.XA CN111628895B (en) 2020-05-28 2020-05-28 Configuration data synchronization method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010470865.XA CN111628895B (en) 2020-05-28 2020-05-28 Configuration data synchronization method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111628895A CN111628895A (en) 2020-09-04
CN111628895B true CN111628895B (en) 2022-06-17

Family

ID=72260845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010470865.XA Active CN111628895B (en) 2020-05-28 2020-05-28 Configuration data synchronization method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111628895B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114650224B (en) * 2020-12-21 2023-06-30 北京金山云网络技术有限公司 Configuration method, device, electronic equipment and system of node function

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528574A (en) * 2015-09-14 2017-03-22 阿里巴巴集团控股有限公司 Data synchronization method and device
CN109167810A (en) * 2018-07-27 2019-01-08 阿里巴巴集团控股有限公司 Monitoring, notice, method for refreshing and device calculate equipment and storage medium
CN109586948A (en) * 2018-10-16 2019-04-05 深圳壹账通智能科技有限公司 Update method, apparatus, computer equipment and the storage medium of system configuration data
CN109729129A (en) * 2017-10-31 2019-05-07 华为技术有限公司 Configuration modification method of storage cluster, storage cluster and computer system
CN110601868A (en) * 2018-06-13 2019-12-20 阿里巴巴集团控股有限公司 Distributed system, method and electronic equipment for distributing configuration information in real time

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528574A (en) * 2015-09-14 2017-03-22 阿里巴巴集团控股有限公司 Data synchronization method and device
CN109729129A (en) * 2017-10-31 2019-05-07 华为技术有限公司 Configuration modification method of storage cluster, storage cluster and computer system
CN110601868A (en) * 2018-06-13 2019-12-20 阿里巴巴集团控股有限公司 Distributed system, method and electronic equipment for distributing configuration information in real time
CN109167810A (en) * 2018-07-27 2019-01-08 阿里巴巴集团控股有限公司 Monitoring, notice, method for refreshing and device calculate equipment and storage medium
CN109586948A (en) * 2018-10-16 2019-04-05 深圳壹账通智能科技有限公司 Update method, apparatus, computer equipment and the storage medium of system configuration data

Also Published As

Publication number Publication date
CN111628895A (en) 2020-09-04

Similar Documents

Publication Publication Date Title
US11397648B2 (en) Virtual machine recovery method and virtual machine management device
KR101644666B1 (en) Programming model for synchronizing browser caches across devices and web services
CN106980625B (en) Data synchronization method, device and system
CN110096302B (en) Software data storage and upgrading method, device, equipment and storage medium
WO2022142665A1 (en) Database cluster-based data processing method and apparatus, and electronic device
CN113778662B (en) Memory recovery method and device
CN104407933A (en) Data backup method and device
CN112748869B (en) Data processing method and device
WO2015051641A1 (en) Method and apparatus for reclaiming space of magnetic disk image
US12293078B2 (en) Storage space organization method and electronic device
CN116048425B (en) A layered cache method, system and related components
CN114443364A (en) Distributed block storage data processing method, device, device and storage medium
WO2023070462A1 (en) File deduplication method and apparatus, and device
WO2021008425A1 (en) System startup method and related device
CN111290836A (en) Virtual machine snapshot creating method and device, storage medium and computer equipment
CN114706870A (en) Database and cache consistency synchronization method, device, equipment and storage medium
CN111628895B (en) Configuration data synchronization method, device, equipment and readable storage medium
CN114942863A (en) A cascade snapshot processing method, device, device and storage medium
CN114579055A (en) Disk storage method, device, equipment and medium
CN116909998B (en) File processing methods and devices under overlay file system
CN116721007B (en) Mission control methods, systems and devices, electronic equipment and storage media
CN109933435B (en) Control method and device and computer equipment
CN111625350A (en) Memory allocation method, device, equipment and storage medium for network message data
CN114860380B (en) Data synchronization method, device, electronic device and computer-readable storage medium
CN114996014B (en) Memory allocation method, device and electronic device based on ION allocator

Legal Events

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