CN113282660B - Method and system for synchronizing data in cluster, electronic equipment and storage medium - Google Patents

Method and system for synchronizing data in cluster, electronic equipment and storage medium Download PDF

Info

Publication number
CN113282660B
CN113282660B CN202110568880.2A CN202110568880A CN113282660B CN 113282660 B CN113282660 B CN 113282660B CN 202110568880 A CN202110568880 A CN 202110568880A CN 113282660 B CN113282660 B CN 113282660B
Authority
CN
China
Prior art keywords
event
target
operation result
cluster
target event
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
CN202110568880.2A
Other languages
Chinese (zh)
Other versions
CN113282660A (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.)
Guahao Net Hangzhou Technology Co Ltd
Original Assignee
Guahao Net Hangzhou 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 Guahao Net Hangzhou Technology Co Ltd filed Critical Guahao Net Hangzhou Technology Co Ltd
Priority to CN202110568880.2A priority Critical patent/CN113282660B/en
Publication of CN113282660A publication Critical patent/CN113282660A/en
Application granted granted Critical
Publication of CN113282660B publication Critical patent/CN113282660B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a method and a system for synchronizing data in a cluster, electronic equipment and a storage medium, wherein the method comprises the following steps: the target node responds to a modification operation request sent by background equipment, and carries out event operation processing according to a target event indicated by the modification operation request to obtain a first operation result; if the first operation result indicates that the processing is successful, the target node reports the first operation result of the target event to background equipment, and broadcasts the target event to gateway nodes except the target node in the cluster; the gateway node performs event operation processing according to the target event to obtain a second operation result, and reports the second operation result to the background equipment; and the background equipment determines whether the cluster synchronization is successful or not according to the first operation result and the second operation result of the target event. The scheme can be used for timely seeing the event synchronization state of each gateway node and dynamically giving the success or failure result of the whole cluster synchronization.

Description

Method and system for synchronizing data in cluster, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technology. And more particularly, to a method and system for synchronizing data in a cluster, an electronic device, and a computer readable storage medium.
Background
The gateway cluster is a server cluster formed by more than three gateway servers; each gateway server within the cluster is referred to as a gateway node. The data synchronization between each server in the cluster can ensure the consistency and the correctness of the service data in running.
The existing gateway cluster is synchronous, only operation events after data polling of gateway nodes are executed, no result sensing means is provided after event operation, and subsequent failure compensation or rollback measures cannot be provided by sensing different operation results; similarly to the UDP network protocol, the result of synchronization of the cluster event in all gateway nodes cannot be known after the cluster event is operated, and the result is success or failure, so that consistency and correctness of service data cannot be guaranteed.
Disclosure of Invention
The embodiment of the application provides a synchronization method for intra-cluster operation, which is used for determining whether synchronization is successful or not and guaranteeing the consistency of intra-cluster data.
The embodiment of the application provides a synchronization method for operation in a cluster, wherein the cluster comprises a target node and a gateway node, and the method comprises the following steps:
the target node responds to a modification operation request sent by background equipment, and carries out event operation processing according to a target event indicated by the modification operation request to obtain a first operation result;
if the first operation result indicates that the processing is successful, the target node reports the first operation result of the target event to background equipment and broadcasts the target event to gateway nodes except the target node in a cluster;
the gateway node performs event operation processing according to the target event to obtain a second operation result, and reports the second operation result to background equipment;
and the background equipment determines whether cluster synchronization is successful or not according to the first operation result and the second operation result of the target event.
In an embodiment, the broadcasting the target event to gateway nodes within the cluster other than the target node includes:
the target node reports the target event to background equipment, and the background equipment stores the target event to an event list;
each gateway node periodically polls the event list to obtain unprocessed target events.
In an embodiment, the background device determines whether cluster synchronization is successful according to the first operation result and the second operation result of the target event, including:
the background equipment obtains a first operation result and a second operation result of the target event through query operation;
and if the first operation result and the second operation result of the target event indicate successful processing, the background equipment determines successful cluster synchronization.
In an embodiment, the method further comprises:
if the second operation result of any gateway node indicates that the processing fails, the background equipment sends a re-execution message to the gateway node with the processing failure;
and the gateway node with the failed processing re-executes the target event according to the re-execution message.
In an embodiment, after the target node reports the first operation result of the target event to the background device, the method further includes:
the background equipment stores a first operation result of the target event into a result data table; after the network node reports the second operation result to the background device, the method further includes:
the background device stores the second operation result of the target event into the result data table.
In an embodiment, the target node performs event operation processing according to the target event indicated by the modification operation request, including:
and the plurality of working processes of the target node jointly perform event operation processing on the target event, and remove repeated operation events of the working processes with the same identification.
The embodiment of the application also provides a synchronization system for operation in the cluster, which comprises:
the background equipment is used for sending a modification operation request to the target node;
the target node is used for responding to a modification operation request sent by the background equipment, and carrying out event operation processing according to a target event indicated by the modification operation request to obtain a first operation result; if the first operation result indicates that the processing is successful, reporting the first operation result of the target event to the background equipment, and broadcasting the target event to gateway nodes except the target node in the cluster;
the gateway node is used for carrying out event operation processing according to the target event to obtain a second operation result and reporting the second operation result to background equipment;
the background equipment is further used for determining whether cluster synchronization is successful or not according to a first operation result and a second operation result of the target event.
The embodiment of the application provides a synchronization method of intra-cluster operation, which is applied to a target node and comprises the following steps:
responding to a modification operation request sent by background equipment, and carrying out event operation processing according to a target event indicated by the modification operation request to obtain a first operation result;
if the first operation result indicates that the processing is successful, reporting the first operation result of the target event to background equipment, and broadcasting the target event to gateway nodes except the target node in a cluster;
and broadcasting the target event so that the gateway node performs event operation processing according to the target event to obtain a second operation result, and reporting the second operation result to background equipment, so that the background equipment determines whether cluster synchronization is successful or not according to the first operation result and the second operation result of the target event.
The embodiment of the application provides electronic equipment, which comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the synchronization method of intra-cluster operations described above.
Embodiments of the present application provide a computer readable storage medium storing a computer program executable by a processor to perform the synchronization method of operations within a cluster described above.
The technical scheme provided by the embodiment of the application increases the function of asynchronously reporting the operation result after the cluster event is synchronous, and the operation result reported by the background page through inquiry can timely see the event synchronous state of each gateway node and dynamically give the result of success or failure of the whole cluster synchronization.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly explain the drawings that are required to be used in the embodiments of the present application.
Fig. 1 is a schematic diagram of a system for synchronizing data in a cluster according to an embodiment of the present application;
fig. 2 is a block diagram of an electronic device according to an embodiment of the present application;
FIG. 3 is a flowchart of a method for synchronizing operations within a cluster according to an embodiment of the present disclosure;
fig. 4 is a flowchart of a method for synchronizing operations in a cluster according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Fig. 1 is a schematic diagram of a system for synchronizing data in a cluster according to an embodiment of the present application. As shown in fig. 1, the system includes a background device 110 and a plurality of gateway nodes 130, and for distinction, the gateway node 130 that receives the request for modification operation is referred to as a target node 120 in the embodiment of the present application, and the gateway nodes 130 other than the target node 120 are still referred to as gateway nodes 130. A cluster can be considered to be made up of the target node 120 and the gateway node 130, and the synchronization system includes the background device 110, the target node 120, and the gateway node 130. The background device 110 is communicatively coupled to the target node 120 and the gateway node 130. The background device 110 may be a server, desktop or notebook computer, and the target node 120 and gateway node 130 may be gateway servers.
The background device 110 is configured to send a request for a modification operation to the target node 120.
The target node 120 is configured to respond to a modification operation request sent by the background device 110, and perform event operation processing according to a target event indicated by the modification operation request, so as to obtain a first operation result; if the first operation result indicates that the processing is successful, reporting the first operation result of the target event to the background device 110, and broadcasting the target event to gateway nodes 130 in the cluster except for the target node 120.
The gateway node 130 is configured to perform event operation processing according to the target event to obtain a second operation result, and report the second operation result to the background device 110.
The background device 110 is further configured to determine whether cluster synchronization is successful according to the first operation result and the second operation result of the target event.
The specific process of implementing the above functions by the background device 110, the target node 120, and the gateway node 130 is described in detail below, and will not be described in detail herein.
Fig. 2 is a block diagram of an electronic device provided in an embodiment of the present application. The electronic device 200 may be used as the target node 120, as shown in fig. 2, and the electronic device 200 includes: a processor 210; a memory 220 for storing instructions executable by the processor 210; wherein the processor 210 is configured to perform a synchronization method of operations within the cluster. The method may include: responding to a modification operation request sent by background equipment, and carrying out event operation processing according to a target event indicated by the modification operation request to obtain a first operation result; and if the first operation result indicates that the processing is successful, reporting the first operation result of the target event to background equipment, and broadcasting the target event to gateway nodes except the target node in the cluster.
And broadcasting the target event so that the gateway node performs event operation processing according to the target event to obtain a second operation result, and reporting the second operation result to background equipment, so that the background equipment determines whether cluster synchronization is successful or not according to the first operation result and the second operation result of the target event. Specific implementation of the above method can be found below.
The processor 210 may comprise a Central Processing Unit (CPU), an image processing unit (GPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, may process data from other components in the electronic device 200, and may also control other components in the electronic device 200 to perform desired functions.
The memory 220 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM) and/or cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like. One or more computer program instructions may be stored on the computer readable storage medium that may be executed by the processor 210 to implement the synchronization method for operations within a cluster described above. Various applications and various data, such as various data used and/or generated by the applications, may also be stored in the computer readable storage medium.
Embodiments of the present application also provide a computer readable storage medium storing a computer program executable by a processor to perform a method of synchronizing operations within a cluster, the method may include: responding to a modification operation request sent by background equipment, and carrying out event operation processing according to a target event indicated by the modification operation request to obtain a first operation result; and if the first operation result indicates that the processing is successful, reporting the first operation result of the target event to background equipment, and broadcasting the target event to gateway nodes except the target node in the cluster.
And broadcasting the target event so that the gateway node performs event operation processing according to the target event to obtain a second operation result, and reporting the second operation result to background equipment, so that the background equipment determines whether cluster synchronization is successful or not according to the first operation result and the second operation result of the target event.
Fig. 3 is a flowchart of a synchronization method for intra-cluster operations according to an embodiment of the present application. The cluster includes a target node and a gateway node, the gateway node receiving the request for the modification operation is referred to as the target node in the embodiment of the present application, and the gateway nodes other than the target node are still referred to as gateway nodes. The method can be realized through interaction among the background equipment, the target node and the gateway node. The synchronization method comprises the following steps: step S310 to step S330.
Step S310: and the target node responds to a modification operation request sent by background equipment, and carries out event operation processing according to a target event indicated by the modification operation request to obtain a first operation result.
Event categories may be create route, edit route, delete route, create plug-in, create upload service, edit upload service, delete upload service, etc. Wherein, the modification operation request refers to a request which is sent to the target node by the background equipment and contains any event type. For distinction, the kind of event contained in the modify operation request may be referred to as a target event, so the target event may be considered any of the events listed above. Event manipulation processing refers to performing a task indicated by a target event, and for example, the event manipulation processing may be performing an operation of creating a route.
The first operation result is used for distinguishing from the second operation result below, and the first operation result is a processing result obtained after the target node performs event operation processing of the target event. The first operation result may be a processing success or a processing failure. For example, the first operation result indicates that the process failed if the creation of the route failed, and the first operation result indicates that the process was successful if the creation of the route was successful.
Step S320: and if the first operation result indicates that the processing is successful, the target node reports the first operation result of the target event to background equipment and broadcasts the target event to gateway nodes except the target node in the cluster.
According to the requirement, whether the first operation result indicates that the processing is successful or not, the target node can report the first operation result of the target event to the background equipment. However, only when the first operation result indicates that the processing is successful, the target node broadcasts the target event, so that the situation that the target node does not execute the event is avoided, and the gateway node executes the event, so that cluster synchronization cannot be realized.
After the target node reports the first operation result of the target event to the background device, the background device may store the first operation result of the target event in the result data table. The target event is broadcast so that gateway nodes except the target node can perform event operation processing on the target event.
In one embodiment, the target node may broadcast the target event by the following steps: and the target node reports the target event to background equipment, and the background equipment stores the target event to an event list. It should be noted that, the event list is used to store all the events requesting the operation, and the result data table is used to store the operation results of these events, and the operation results may be considered to be successful or failed.
Each network node periodically polls the event list for unprocessed target events. Each gateway node is independent of the other gateway node, and each gateway node (i.e. asynchronously) acquires unprocessed target events from the event list to perform event operation processing. The timing polling refers to inquiring an event list according to a preset time interval, and carrying out event operation processing when an unprocessed target event is found.
Step S330: and the gateway node performs event operation processing according to the target event to obtain a second operation result, and reports the second operation result to background equipment.
The second operation result refers to a processing result of the gateway node performing event operation processing on the target event, and may be classified as processing success or processing failure. The gateway node may also report the second operation result of the target event to the background device, and further the background device may store the second operation result of the target event in the result data table.
There may be a plurality of gateway nodes other than the target node, so that the result data table may store the first operation result of the target node on the target event and the second operation result of all gateway nodes on the target event.
Step S340: and the background equipment determines whether cluster synchronization is successful or not according to the first operation result and the second operation result of the target event.
Specifically, if the first operation result and the second operation result of the target event indicate that the processing is successful, it indicates that after the target node and all gateway nodes process the target event, the data may agree, that is, the cluster synchronization is successful.
In an embodiment, the background device may acquire, through a query operation, a first operation result and a second operation result of the target event from a result data table; and if the first operation result and the second operation result of the target event indicate successful processing, the background equipment determines successful cluster synchronization.
In another embodiment, if the second operation result of any gateway node indicates that the processing fails, the background device sends a re-execution message to the gateway node that fails to process; and the gateway node with the failed processing re-executes the target event according to the re-execution message. Until the processing results of the target node and the gateway node on the target event are successful, the operation of the cluster on the target event can be considered to realize synchronization, that is, each gateway node (including the target node) completes the event operation processing on the target event.
The technical scheme provided by the embodiment of the application increases the function of asynchronously reporting the operation result after the cluster event is synchronous, and the operation result reported by the background page through inquiry can timely see the event synchronous state of each gateway node and dynamically give the result of success or failure of the whole cluster synchronization.
It should be noted that a target node or gateway node may include a plurality of work processes (workers), and the number of work processes is typically the number of CPU cores of the machine. The repeated operation of the worker process processing exists in a single node, and resources and efficiency are wasted.
In an embodiment, multiple working processes of the target node or the gateway node may perform event operation processing on the target event together, so as to remove repeated operation events of the working processes with the same identification.
When cluster event processing is performed, each worker is allocated with a worker id (i.e. an identifier), when the workers are synchronized, the worker id is carried, the message middleware can judge whether repeated operations of the workers exist according to the worker id, filter the repeated events of the same worker id, and only keep one operation for the same worker id, so that the repeated operations are avoided. Therefore, the repeated processing problem of a worker in the gateway node or the target node is eliminated, and the efficiency is improved.
Fig. 4 is a flowchart of a method for synchronizing operations in a cluster according to another embodiment of the present application. As shown in fig. 4, the background device initiates a request for modifying an operation of the gateway, after the responding gateway node (i.e. the target node) performs event operation processing, the first operation result is reported to the result data table, and the event is broadcasted only after the event operation processing is successful. The event (i.e., the target event) may be reported to an event list (i.e., the cluster event data model), and the other network nodes periodically poll for new operation events in the event list, asynchronously process the events, and report the second operation result to a result data table (i.e., the event operation result model in fig. 4) after the processing. The background equipment can query a first operation result and a second operation result of the target event reported in real time from a result data table through the query operation of the page, automatically count and judge whether the whole cluster is successful in synchronization, and display whether the result is successful in synchronization.
In the several embodiments provided in the present application, the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored on a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.

Claims (9)

1. A method of synchronizing operations within a cluster, the cluster comprising a target node and a gateway node, the method comprising:
the target node responds to a modification operation request sent by background equipment, and carries out event operation processing according to a target event indicated by the modification operation request to obtain a first operation result; the target event comprises any one of creating a route, editing a route, deleting a route, creating a plug-in, creating an uploading service, editing the uploading service and deleting the uploading service; the first operation result is a processing result obtained after the target node performs event operation processing of the target event;
if the first operation result indicates that the processing is successful, the target node reports the first operation result of the target event to background equipment and broadcasts the target event to gateway nodes except the target node in a cluster;
the gateway node performs event operation processing according to the target event to obtain a second operation result, and reports the second operation result to background equipment;
the background equipment determines whether cluster synchronization is successful or not according to a first operation result and a second operation result of the target event;
the method further comprises the steps of:
the target node or a plurality of working processes of the gateway node jointly perform event operation processing on the target event, and repeat operation time of the working processes with the same identification is removed; when cluster event processing is performed, each working process is allocated with a working process identifier, the working process identifier is carried on the working process during synchronization of the working processes, the message middleware judges whether repeated operations of the working processes exist according to the working process identifiers, and filters out the repeated events of the same working process identifier, wherein the same working process identifier only keeps one operation.
2. The method of claim 1, wherein said broadcasting the target event to gateway nodes within the cluster other than the target node comprises:
the target node reports the target event to background equipment, and the background equipment stores the target event to an event list;
each gateway node periodically polls the event list to obtain unprocessed target events.
3. The method of claim 1, wherein the background device determining whether cluster synchronization was successful based on the first and second operational results of the target event comprises:
the background equipment obtains a first operation result and a second operation result of the target event through query operation;
and if the first operation result and the second operation result of the target event indicate successful processing, the background equipment determines successful cluster synchronization.
4. A method according to claim 3, characterized in that the method further comprises:
if the second operation result of any gateway node indicates that the processing fails, the background equipment sends a re-execution message to the gateway node with the processing failure;
and the gateway node with the failed processing re-executes the target event according to the re-execution message.
5. The method of claim 1, wherein after the target node reports the first operation result of the target event to a background device, the method further comprises:
the background equipment stores a first operation result of the target event into a result data table; after the network node reports the second operation result to the background device, the method further includes:
the background device stores the second operation result of the target event into the result data table.
6. A synchronization system for operation within a cluster, comprising:
the background equipment is used for sending a modification operation request to the target node;
the target node is used for responding to a modification operation request sent by the background equipment, and carrying out event operation processing according to a target event indicated by the modification operation request to obtain a first operation result; the target event comprises any one of creating a route, editing a route, deleting a route, creating a plug-in, creating an uploading service, editing the uploading service and deleting the uploading service; the first operation result is a processing result obtained after the target node performs event operation processing of the target event; if the first operation result indicates that the processing is successful, reporting the first operation result of the target event to the background equipment, and broadcasting the target event to gateway nodes except the target node in the cluster;
the gateway node is used for carrying out event operation processing according to the target event to obtain a second operation result and reporting the second operation result to background equipment;
the background equipment is further used for determining whether cluster synchronization is successful or not according to a first operation result and a second operation result of the target event;
the target node or a plurality of working processes of the gateway node jointly perform event operation processing on the target event, and repeat operation time of the working processes with the same identification is removed; when cluster event processing is performed, each working process is allocated with a working process identifier, the working process identifier is carried on the working process during synchronization of the working processes, the message middleware judges whether repeated operations of the working processes exist according to the working process identifiers, and filters out the repeated events of the same working process identifier, wherein the same working process identifier only keeps one operation.
7. A method of synchronizing operations within a cluster, the method being applied to a target node, the method comprising:
responding to a modification operation request sent by background equipment, and carrying out event operation processing according to a target event indicated by the modification operation request to obtain a first operation result; the target event comprises any one of creating a route, editing a route, deleting a route, creating a plug-in, creating an uploading service, editing the uploading service and deleting the uploading service; the first operation result is a processing result obtained after the target node performs event operation processing of the target event;
if the first operation result indicates that the processing is successful, reporting the first operation result of the target event to background equipment, and broadcasting the target event to gateway nodes except the target node in a cluster;
broadcasting the target event so that the gateway node performs event operation processing according to the target event to obtain a second operation result, and reporting the second operation result to background equipment, so that the background equipment determines whether cluster synchronization is successful according to the first operation result and the second operation result of the target event;
and carrying out event operation processing according to the target event indicated by the modification operation request, wherein the event operation processing comprises the following steps: the plurality of working processes of the target node jointly perform event operation processing on the target event, and duplicate operation events of the working processes with the same identification are removed;
when cluster event processing is performed, each working process is allocated with a working process identifier, the working process identifier is carried on the working process during synchronization of the working processes, the message middleware judges whether repeated operations of the working processes exist according to the working process identifiers, and filters out the repeated events of the same working process identifier, wherein the same working process identifier only keeps one operation.
8. An electronic device, the electronic device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of synchronizing operations within a cluster of claim 7.
9. A computer readable storage medium, wherein the storage medium stores a computer program executable by a processor to perform the method of synchronizing operations within a cluster of claim 7.
CN202110568880.2A 2021-05-24 2021-05-24 Method and system for synchronizing data in cluster, electronic equipment and storage medium Active CN113282660B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110568880.2A CN113282660B (en) 2021-05-24 2021-05-24 Method and system for synchronizing data in cluster, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110568880.2A CN113282660B (en) 2021-05-24 2021-05-24 Method and system for synchronizing data in cluster, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113282660A CN113282660A (en) 2021-08-20
CN113282660B true CN113282660B (en) 2023-05-23

Family

ID=77281298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110568880.2A Active CN113282660B (en) 2021-05-24 2021-05-24 Method and system for synchronizing data in cluster, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113282660B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111241115A (en) * 2020-01-07 2020-06-05 腾讯科技(深圳)有限公司 Data synchronization method, device, equipment and storage medium
CN111625511A (en) * 2020-05-22 2020-09-04 广东浪潮大数据研究有限公司 Configuration file management method and device, electronic equipment and storage medium
CN112258266A (en) * 2020-10-10 2021-01-22 同程网络科技股份有限公司 Distributed order processing method, device, equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8949828B2 (en) * 2011-01-11 2015-02-03 International Business Machines Corporation Single point, scalable data synchronization for management of a virtual input/output server cluster
US9613046B1 (en) * 2015-12-14 2017-04-04 Netapp, Inc. Parallel optimized remote synchronization of active block storage
CN108881231A (en) * 2018-06-21 2018-11-23 郑州云海信息技术有限公司 The method, apparatus and storage medium of synchronous account information in a kind of group system
CN109542865B (en) * 2018-12-03 2021-10-29 郑州云海信息技术有限公司 Method, device, system and medium for synchronizing configuration files of distributed cluster system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111241115A (en) * 2020-01-07 2020-06-05 腾讯科技(深圳)有限公司 Data synchronization method, device, equipment and storage medium
CN111625511A (en) * 2020-05-22 2020-09-04 广东浪潮大数据研究有限公司 Configuration file management method and device, electronic equipment and storage medium
CN112258266A (en) * 2020-10-10 2021-01-22 同程网络科技股份有限公司 Distributed order processing method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Bully算法的Redis集群选举方案优化;王芬;顾乃杰;黄增士;;计算机科学(第10期);全文 *

Also Published As

Publication number Publication date
CN113282660A (en) 2021-08-20

Similar Documents

Publication Publication Date Title
US9639588B2 (en) Operation method and apparatus for data storage system
CN107919977B (en) Online capacity expansion and online capacity reduction method and device based on Paxos protocol
CN109361525B (en) Method, device, control terminal and medium for restarting distributed deployment of multiple services
CN113987064A (en) Data processing method, system and equipment
CN110611603B (en) Cluster network card monitoring method and device
CN111399764A (en) Data storage method, data reading device, data storage equipment and data storage medium
CN108140035B (en) Database replication method and device for distributed system
CN111752488B (en) Management method and device of storage cluster, management node and storage medium
CN112418794A (en) Service transfer method and device
CN110704536A (en) Distributed data processing method, device and system and electronic equipment
CN113282660B (en) Method and system for synchronizing data in cluster, electronic equipment and storage medium
EP3570169A1 (en) Method and system for processing device failure
WO2021082925A1 (en) Transaction processing method and apparatus
CN113268540A (en) Data synchronization method and device
CN111092956A (en) Resource synchronization method, device, storage medium and equipment
CN110557399A (en) Management data synchronization method and device, storage equipment and readable storage medium
CN115017235B (en) Data synchronization method, electronic device and storage medium
CN111226200B (en) Method, device and distributed system for creating consistent snapshot for distributed application
CN108900497B (en) Data synchronization method and system between heterogeneous systems
CN106354830B (en) Method and device for data synchronization between database cluster nodes
CN114584573A (en) Node machine information synchronization method based on long polling mechanism
CN114090687A (en) Data synchronization method and device
CN114490196A (en) Database switching method, system, device and medium
CN110502460B (en) Data processing method and node
CN114679483B (en) Communication method, system and storage medium for distributed service communication system

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