CN113890880A - Method, system, equipment and storage medium for data synchronization among multiple nodes - Google Patents

Method, system, equipment and storage medium for data synchronization among multiple nodes Download PDF

Info

Publication number
CN113890880A
CN113890880A CN202111102440.4A CN202111102440A CN113890880A CN 113890880 A CN113890880 A CN 113890880A CN 202111102440 A CN202111102440 A CN 202111102440A CN 113890880 A CN113890880 A CN 113890880A
Authority
CN
China
Prior art keywords
node
nodes
synchronization
hardware resource
data
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.)
Withdrawn
Application number
CN202111102440.4A
Other languages
Chinese (zh)
Inventor
刘涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202111102440.4A priority Critical patent/CN113890880A/en
Publication of CN113890880A publication Critical patent/CN113890880A/en
Priority to PCT/CN2022/119470 priority patent/WO2023041073A1/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The invention discloses a method, a system, equipment and a storage medium for synchronizing data among multiple nodes, wherein the method comprises the following steps: responding to one or more nodes in a management platform to trigger a preset condition, and sending a data request command to a designated node in the management platform by the node, wherein the designated node is a node outside the preset condition triggered in the management platform; after receiving the data request command, the designated node acquires shared hardware resource data and sends the shared hardware resource data to the node; the node receives the shared hardware resource data sent by the appointed node, and checks whether the shared hardware resource data of the appointed node is synchronously completed or not; in response to completion of synchronization, sending a completion flag to the designated node. By the scheme of the invention, data synchronization between any nodes is realized, the consistency of data between the nodes is ensured, and the data synchronization speed is high and the stability is good.

Description

Method, system, equipment and storage medium for data synchronization among multiple nodes
Technical Field
The present invention relates to the field of data management technologies, and in particular, to a method, a system, a device, and a storage medium for data synchronization between multiple nodes.
Background
In a management platform of a server, in order to ensure stability of a server product, an operating system is generally composed of a plurality of servers, hardware configuration and hardware attributes of each server node in the operating system are consistent, and the operating system can access numerous hardware resources, wherein a part of the hardware resources accessed by all the server nodes is called shared resources.
Currently, a plurality of (especially three or more) server nodes in a server management platform need to share hardware resource data synchronization during power-on or after restart or upgrade. The existing multi-node shared hardware resource data synchronization is mainly based on one node, which is a central node position, and data synchronization is carried out from the central node to other nodes. The method can not realize the direct sharing hardware resource data synchronization among any nodes, particularly when a large amount of sharing hardware resource data are synchronized, the problem that the sharing hardware resource data of the central node is high in pressure, the time consumption of the sharing resource synchronization data is too long, and once the server fails to synchronize the sharing resources in the use process, the method is unacceptable for the product of the server, because in the server industry, the requirements of non-downtime and non-data loss are required for the product of the server, which means that the server product has extremely high requirements on stability.
Disclosure of Invention
In view of this, the present invention provides a method, a system, a device and a storage medium for data synchronization between multiple nodes, which implement data synchronization between any node through a data synchronization method between multiple devices on a management platform, and the node data synchronization speed is fast and the stability is good.
Based on the above object, an aspect of the embodiments of the present invention provides a method for synchronizing data among multiple nodes, which specifically includes the following steps:
responding to one or more nodes in a management platform to trigger a preset condition, and sending a data request command to a designated node in the management platform by the node, wherein the designated node is a node outside the preset condition triggered in the management platform;
after receiving the data request command, the designated node acquires shared hardware resource data and sends the shared hardware resource data to the node;
the node receives the shared hardware resource data sent by the appointed node, and checks whether the shared hardware resource data of the appointed node is synchronously completed or not;
in response to completion of synchronization, sending a completion flag to the designated node.
In some embodiments, checking at the node whether the shared hardware resource data of the designated node is completed synchronously comprises:
and checking whether the shared hardware resource data of the appointed node is stored or not at the node, if so, completing synchronization, and if not, failing to synchronize.
In some embodiments, the method further comprises:
responding to the synchronization failure, recording the failure times of the nodes with the synchronization failure, and judging whether the failure times are smaller than the preset times;
and responding to the failure times smaller than the preset times, and returning to the step of responding to one or more nodes in the management platform to trigger the preset condition so as to reinitiate synchronization to the nodes with the synchronization failure.
In some embodiments, the method further comprises: and responding to the failure times larger than the preset times, the node generates an alarm state and synchronizes the alarm state to other nodes in the management platform.
In some embodiments, the method further comprises: monitoring the connection state among the nodes through heartbeat, and clearing the synchronization marks and the shared hardware resource data of the corresponding nodes in response to the loss of the heartbeat state among the nodes.
In some embodiments, the method further comprises: and monitoring the in-place state of the node, and clearing the synchronization mark and the shared hardware resource data of the corresponding node in response to the node not being in place.
In some embodiments, the trigger preset condition comprises: and the node is any one of reset starting, power-on starting and synchronization failure.
In another aspect of the embodiments of the present invention, a system for synchronizing data among multiple nodes is further provided, including:
the sending module is configured to respond to one or more nodes in a management platform triggering preset conditions, and the nodes send data request commands to designated nodes in the management platform, wherein the designated nodes are nodes outside the triggering preset conditions in the management platform;
the synchronization module is configured to acquire shared hardware resource data and send the shared hardware resource data to the node after the designated node receives the data request command;
a checking module configured to receive, by the node, the shared hardware resource data sent by the designated node, and check, at the node, whether the shared hardware resource data of the designated node is completed synchronously;
a completion module configured to send a completion flag to the designated node in response to synchronization completion.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing a computer program executable on the processor, the computer program when executed by the processor implementing the steps of the method:
responding to one or more nodes in a management platform to trigger a preset condition, and sending a data request command to a designated node in the management platform by the node, wherein the designated node is a node outside the preset condition triggered in the management platform;
after receiving the data request command, the designated node acquires shared hardware resource data and sends the shared hardware resource data to the node;
the node receives the shared hardware resource data sent by the appointed node, and checks whether the shared hardware resource data of the appointed node is synchronously completed or not;
in response to completion of synchronization, sending a completion flag to the designated node.
In some embodiments, checking at the node whether the shared hardware resource data of the designated node is completed synchronously comprises:
and checking whether the shared hardware resource data of the appointed node is stored or not at the node, if so, completing synchronization, and if not, failing to synchronize.
In some embodiments, the method further comprises:
responding to the synchronization failure, recording the failure times of the nodes with the synchronization failure, and judging whether the failure times are smaller than the preset times;
and responding to the failure times smaller than the preset times, and returning to the step of responding to one or more nodes in the management platform to trigger the preset condition so as to reinitiate synchronization to the nodes with the synchronization failure.
In some embodiments, the method further comprises: and responding to the failure times larger than the preset times, the node generates an alarm state and synchronizes the alarm state to other nodes in the management platform.
In some embodiments, the method further comprises: monitoring the connection state among the nodes through heartbeat, and clearing the synchronization marks and the shared hardware resource data of the corresponding nodes in response to the loss of the heartbeat state among the nodes.
In some embodiments, the method further comprises: and monitoring the in-place state of the node, and clearing the synchronization mark and the shared hardware resource data of the corresponding node in response to the node not being in place.
In some embodiments, the trigger preset condition comprises: and the node is any one of reset starting, power-on starting and synchronization failure.
In another aspect of the embodiments of the present invention, a computer-readable storage medium is further provided, in which a computer program for implementing the following method steps when executed by a processor is stored:
responding to one or more nodes in a management platform to trigger a preset condition, and sending a data request command to a designated node in the management platform by the node, wherein the designated node is a node outside the preset condition triggered in the management platform;
after receiving the data request command, the designated node acquires shared hardware resource data and sends the shared hardware resource data to the node;
the node receives the shared hardware resource data sent by the appointed node, and checks whether the shared hardware resource data of the appointed node is synchronously completed or not;
in response to completion of synchronization, sending a completion flag to the designated node.
In some embodiments, checking at the node whether the shared hardware resource data of the designated node is completed synchronously comprises:
and checking whether the shared hardware resource data of the appointed node is stored or not at the node, if so, completing synchronization, and if not, failing to synchronize.
In some embodiments, the method steps further comprise:
responding to the synchronization failure, recording the failure times of the nodes with the synchronization failure, and judging whether the failure times are smaller than the preset times;
and responding to the failure times smaller than the preset times, and returning to the step of responding to one or more nodes in the management platform to trigger the preset condition so as to reinitiate synchronization to the nodes with the synchronization failure.
In some embodiments, the method steps further comprise: and responding to the failure times larger than the preset times, the node generates an alarm state and synchronizes the alarm state to other nodes in the management platform.
In some embodiments, the method steps further comprise: monitoring the connection state among the nodes through heartbeat, and clearing the synchronization marks and the shared hardware resource data of the corresponding nodes in response to the loss of the heartbeat state among the nodes.
In some embodiments, the method steps further comprise: and monitoring the in-place state of the node, and clearing the synchronization mark and the shared hardware resource data of the corresponding node in response to the node not being in place.
In some embodiments, the trigger preset condition comprises: and the node is any one of reset starting, power-on starting and synchronization failure.
The invention has the following beneficial technical effects: by the scheme of the invention, data synchronization among any nodes is realized, and the data synchronization can be carried out by selecting a broadcasting, multicasting or unicasting mode according to the state of the nodes, so that all the nodes can store shared hardware resource data of other nodes, the consistency of the data among the nodes is ensured, and the data synchronization speed is high and the stability is good.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a block diagram of an embodiment of a method for synchronizing data among multiple nodes according to the present invention;
FIG. 2 is a diagram illustrating an embodiment of a system for data synchronization between multiple nodes according to the present invention;
FIG. 3 is a schematic diagram of an interconnection structure of multiple nodes according to the present invention;
FIG. 4 is a schematic structural diagram of an embodiment of a computer device provided in the present invention;
fig. 5 is a schematic structural diagram of an embodiment of a computer-readable storage medium provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the above, a first aspect of the embodiments of the present invention provides an embodiment of a method for synchronizing data among multiple nodes. As shown in fig. 1, it includes the following steps:
step S101, responding to one or more nodes in a management platform, and sending a data request command to a designated node in the management platform by the node, wherein the designated node is a node outside a trigger preset condition in the management platform;
step S103, after receiving the data request command, the designated node acquires shared hardware resource data and sends the shared hardware resource data to the node;
step S105, the node receives the shared hardware resource data sent by the designated node, and checks whether the shared hardware resource data of the designated node is synchronously completed or not;
and step S107, responding to the completion of the synchronization, and sending a completion mark to the designated node.
Specifically, each node is a server, each server includes a data synchronization module and an application layer module, the application layer module is configured to acquire data to be synchronized or initiate a request for synchronizing the data, and the data synchronization module is configured to send the data acquired by the application layer module. The designated node may be all nodes except the triggering preset condition, or may be one or more nodes except the triggering preset condition. The shared hardware resource data refers to management and control data of the server, such as temperature, voltage, manufacturer, system version, power supply and other information of the server.
The embodiment can quickly synchronize the shared hardware resource data of any node to the node, realizes the consistency of the multi-node data, and has high data synchronization speed and good stability.
In some embodiments, checking, at the node, whether the shared hardware resource data of the designated node is completed synchronously comprises:
and checking whether the shared hardware resource data of the appointed node is stored or not at the node, if so, completing synchronization, and if not, failing to synchronize.
In some embodiments, the method further comprises:
responding to the synchronization failure, recording the failure times of the nodes with the synchronization failure, and judging whether the failure times are smaller than the preset times;
and responding to the failure times smaller than the preset times, and returning to the step of responding to one or more nodes in the management platform to trigger the preset condition so as to reinitiate synchronization to the nodes with the synchronization failure.
And the stability of data synchronization among multiple nodes is ensured by initiating data synchronization for multiple times.
In some embodiments, the method further comprises: and responding to the failure times larger than the preset times, the node generates an alarm state and synchronizes the alarm state to other nodes in the management platform.
In some embodiments, the method further comprises: monitoring the connection state among the nodes through heartbeat, and clearing the synchronization marks and the shared hardware resource data of the corresponding nodes in response to the loss of the heartbeat state among the nodes.
The connection state between each node is monitored through heartbeat, so that abnormity can be found in time when the heartbeat between the nodes is lost, and data synchronization is carried out in time after the connection between the nodes is recovered to be normal, the consistency of data between the nodes is ensured, and the stability of the server is improved.
In some embodiments, the method further comprises: and monitoring the in-place state of the node, and clearing the synchronization mark and the shared hardware resource data of the corresponding node in response to the node not being in place.
The in-place state, namely whether the nodes are in the slot positions or not, is monitored, the nodes which are not in place can be found by monitoring the in-place state of each node, and data synchronization is carried out in time after the slot positions are inserted again among the nodes, so that the consistency of data among the nodes is ensured, and the stability of the server is improved.
In some embodiments, the trigger preset condition comprises: and the node is any one of reset starting, power-on starting and synchronization failure.
Several embodiments of the present invention are described below with reference to specific examples.
Assume that 4 server nodes in the current server management platform are interconnected to form an operating system, and the interconnection diagram of the 4 nodes is shown in fig. 3.
The node 1 is just reset and started, after the node 1 is reset, an application layer module of the node 1 initiates a data request command, and the data request command is distributed to all nodes (except the node 2/3/4) in a frame in a broadcast mode through a data synchronization module of the node 1;
after receiving the data request command, the data synchronization module of the node 2/3/4 transmits the received request command to the application layer module, and after receiving the command, the application layer module of the node 2/3/4 starts to acquire respective shared hardware resource data and synchronizes to the node 1 through the respective data synchronization module after acquiring the shared hardware resource data;
after receiving the shared hardware resource data synchronized by the node 2/3/4, the node 1 checks whether it stores data synchronized by other nodes. If the node 1 stores the data synchronized by the node 2/3/4, sending a completion flag to the node 2/3/4, exiting the check, and waiting for the next trigger detection; if data synchronized by one or more nodes is missing, for example, the shared hardware resource data of the node 2 is missing, it indicates that synchronization is not completed and the shared hardware resource data of the node 2 fails to be synchronized.
The node 1 initiates a data request command to the node 2 separately, repeats the above process, and if the data synchronization still fails after initiating the data synchronization for many times, the node 1 generates an alarm state and synchronizes the alarm state to the node 3/4.
Further, after the node 1 generates the alarm, the node continues to reinitiate synchronization to the node 2, and attempts to repair. And if the repair is successful, eliminating the alarm state and recording the alarm state to a log so as to increase the stability of data synchronization. If the attempt fails for a plurality of times, reporting the system and disconnecting the node 2.
Furthermore, if a restart or node plugging or upgrading scenario occurs in any node due to the stability of the heartbeat or on-site state detection node 1/2/3/4 in the operation process, the synchronization flag of the node is lost and the corresponding shared hardware resource data is cleared by detecting the heartbeat state, or the synchronization flag is cleared and the corresponding shared hardware resource data is cleared by the off-site state of the node. And after the node works normally, restarting the data synchronization of the shared hardware resource.
Through the scheme, data synchronization can be performed between a plurality of nodes at will, and particularly when a server needs to provide service support for a service scene in a data state of a management system, it is particularly important that data of other nodes exist at any node, for example, the management system provides key shared hardware resource data, and the key data determines the establishment and service use of a cluster. The server needs to acquire the data in the starting process to ensure correct starting and the system can provide services to the outside.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 2, an embodiment of the present invention further provides a system for data synchronization between multiple nodes, including:
a sending module 110, where the sending module 110 is configured to respond to one or more nodes in a management platform triggering preset conditions, and the nodes send data request commands to specified nodes in the management platform, where the specified nodes are nodes outside the preset conditions triggered in the management platform;
a synchronization module 120, where the synchronization module 120 is configured to obtain shared hardware resource data and send the shared hardware resource data to the node after the designated node receives the data request command;
a checking module 130, where the checking module 130 is configured to receive, by the node, the shared hardware resource data sent by the designated node, and check, at the node, whether the shared hardware resource data of the designated node is completed synchronously;
a completion module 140, the completion module 140 configured to send a completion flag to the designated node in response to synchronization completion.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 4, an embodiment of the present invention further provides a computer device 20, in which the computer device 20 includes a processor 210 and a memory 220, the memory 220 stores a computer program 221 executable on the processor, and the processor 210 executes the program to perform the following method steps:
responding to one or more nodes in a management platform to trigger a preset condition, and sending a data request command to a designated node in the management platform by the node, wherein the designated node is a node outside the preset condition triggered in the management platform;
after receiving the data request command, the designated node acquires shared hardware resource data and sends the shared hardware resource data to the node;
the node receives the shared hardware resource data sent by the appointed node, and checks whether the shared hardware resource data of the appointed node is synchronously completed or not;
in response to completion of synchronization, sending a completion flag to the designated node.
In some embodiments, checking at the node whether the shared hardware resource data of the designated node is completed synchronously comprises:
and checking whether the shared hardware resource data of the appointed node is stored or not at the node, if so, completing synchronization, and if not, failing to synchronize.
In some embodiments, the method steps further comprise:
responding to the synchronization failure, recording the failure times of the nodes with the synchronization failure, and judging whether the failure times are smaller than the preset times;
and responding to the failure times smaller than the preset times, and returning to the step of responding to one or more nodes in the management platform to trigger the preset condition so as to reinitiate synchronization to the nodes with the synchronization failure.
In some embodiments, the method steps further comprise: and responding to the failure times larger than the preset times, the node generates an alarm state and synchronizes the alarm state to other nodes in the management platform.
In some embodiments, the method steps further comprise: monitoring the connection state among the nodes through heartbeat, and clearing the synchronization marks and the shared hardware resource data of the corresponding nodes in response to the loss of the heartbeat state among the nodes.
In some embodiments, the method steps further comprise: and monitoring the in-place state of the node, and clearing the synchronization mark and the shared hardware resource data of the corresponding node in response to the node not being in place.
In some embodiments, the trigger preset condition comprises: and the node is any one of reset starting, power-on starting and synchronization failure.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 5, an embodiment of the present invention further provides a computer-readable storage medium 30, the computer-readable storage medium 30 storing a computer program 310 which, when executed by a processor, performs the following method:
responding to one or more nodes in a management platform to trigger a preset condition, and sending a data request command to a designated node in the management platform by the node, wherein the designated node is a node outside the preset condition triggered in the management platform;
after receiving the data request command, the designated node acquires shared hardware resource data and sends the shared hardware resource data to the node;
the node receives the shared hardware resource data sent by the appointed node, and checks whether the shared hardware resource data of the appointed node is synchronously completed or not;
in response to completion of synchronization, sending a completion flag to the designated node.
In some embodiments, checking at the node whether the shared hardware resource data of the designated node is completed synchronously comprises:
and checking whether the shared hardware resource data of the appointed node is stored or not at the node, if so, completing synchronization, and if not, failing to synchronize.
In some embodiments, the method further comprises:
responding to the synchronization failure, recording the failure times of the nodes with the synchronization failure, and judging whether the failure times are smaller than the preset times;
and responding to the failure times smaller than the preset times, and returning to the step of responding to one or more nodes in the management platform to trigger the preset condition so as to reinitiate synchronization to the nodes with the synchronization failure.
In some embodiments, the method further comprises: and responding to the failure times larger than the preset times, the node generates an alarm state and synchronizes the alarm state to other nodes in the management platform.
In some embodiments, the method further comprises: monitoring the connection state among the nodes through heartbeat, and clearing the synchronization marks and the shared hardware resource data of the corresponding nodes in response to the loss of the heartbeat state among the nodes.
In some embodiments, the method further comprises: and monitoring the in-place state of the node, and clearing the synchronization mark and the shared hardware resource data of the corresponding node in response to the node not being in place.
In some embodiments, the trigger preset condition comprises: and the node is any one of reset starting, power-on starting and synchronization failure.
Finally, it should be noted that, as will be understood by those skilled in the art, all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for synchronizing data among multiple nodes is characterized by comprising the following steps:
responding to one or more nodes in a management platform to trigger a preset condition, and sending a data request command to a designated node in the management platform by the node, wherein the designated node is a node outside the preset condition triggered in the management platform;
after receiving the data request command, the designated node acquires shared hardware resource data and sends the shared hardware resource data to the node;
the node receives the shared hardware resource data sent by the appointed node, and checks whether the shared hardware resource data of the appointed node is synchronously completed or not;
in response to completion of synchronization, sending a completion flag to the designated node.
2. The method of claim 1, wherein checking at the node whether the shared hardware resource data of the designated node is completed synchronously comprises:
and checking whether the shared hardware resource data of the appointed node is stored or not at the node, if so, completing synchronization, and if not, failing to synchronize.
3. The method of claim 1, further comprising:
responding to the synchronization failure, recording the failure times of the nodes with the synchronization failure, and judging whether the failure times are smaller than the preset times;
and responding to the failure times smaller than the preset times, and returning to the step of responding to one or more nodes in the management platform to trigger the preset condition so as to reinitiate synchronization to the nodes with the synchronization failure.
4. The method of claim 3, further comprising: and responding to the failure times larger than the preset times, the node generates an alarm state and synchronizes the alarm state to other nodes in the management platform.
5. The method of claim 1, further comprising: monitoring the connection state among the nodes through heartbeat, and clearing the synchronization marks and the shared hardware resource data of the corresponding nodes in response to the loss of the heartbeat state among the nodes.
6. The method of claim 1, further comprising: and monitoring the in-place state of the node, and clearing the synchronization mark and the shared hardware resource data of the corresponding node in response to the node not being in place.
7. The method of claim 1, wherein the triggering preset condition comprises: and the node is any one of reset starting, power-on starting and synchronization failure.
8. A system for synchronizing data between a plurality of nodes, comprising:
the sending module is configured to respond to one or more nodes in a management platform triggering preset conditions, and the nodes send data request commands to designated nodes in the management platform, wherein the designated nodes are nodes outside the triggering preset conditions in the management platform;
the synchronization module is configured to acquire shared hardware resource data and send the shared hardware resource data to the node after the designated node receives the data request command;
a checking module configured to receive, by the node, the shared hardware resource data sent by the designated node, and check, at the node, whether the shared hardware resource data of the designated node is completed synchronously;
a completion module configured to send a completion flag to the designated node in response to synchronization completion.
9. A computer device, comprising:
at least one processor; and
memory storing a computer program operable on the processor, wherein the processor executes the program to perform the steps of the method according to any of claims 1-7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1 to 7.
CN202111102440.4A 2021-09-19 2021-09-19 Method, system, equipment and storage medium for data synchronization among multiple nodes Withdrawn CN113890880A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111102440.4A CN113890880A (en) 2021-09-19 2021-09-19 Method, system, equipment and storage medium for data synchronization among multiple nodes
PCT/CN2022/119470 WO2023041073A1 (en) 2021-09-19 2022-09-16 Method for data synchronisation between multiple nodes, and system, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111102440.4A CN113890880A (en) 2021-09-19 2021-09-19 Method, system, equipment and storage medium for data synchronization among multiple nodes

Publications (1)

Publication Number Publication Date
CN113890880A true CN113890880A (en) 2022-01-04

Family

ID=79010059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111102440.4A Withdrawn CN113890880A (en) 2021-09-19 2021-09-19 Method, system, equipment and storage medium for data synchronization among multiple nodes

Country Status (2)

Country Link
CN (1) CN113890880A (en)
WO (1) WO2023041073A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023041073A1 (en) * 2021-09-19 2023-03-23 苏州浪潮智能科技有限公司 Method for data synchronisation between multiple nodes, and system, device, and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9703951B2 (en) * 2014-09-30 2017-07-11 Amazon Technologies, Inc. Allocation of shared system resources
CN106407264A (en) * 2016-08-25 2017-02-15 成都索贝数码科技股份有限公司 High-availability and high-consistency database cluster system and command processing method thereof
CN109885424A (en) * 2019-01-16 2019-06-14 平安科技(深圳)有限公司 A kind of data back up method, device and computer equipment
CN110941665A (en) * 2019-10-31 2020-03-31 北京浪潮数据技术有限公司 Data synchronization method, data synchronization device and data synchronization equipment between nodes
CN111031126B (en) * 2019-12-10 2022-08-12 江苏满运软件科技有限公司 Cluster cache sharing method, system, equipment and storage medium
CN112153133B (en) * 2020-09-18 2022-12-27 苏州浪潮智能科技有限公司 Data sharing method, device and medium
CN113890880A (en) * 2021-09-19 2022-01-04 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for data synchronization among multiple nodes

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023041073A1 (en) * 2021-09-19 2023-03-23 苏州浪潮智能科技有限公司 Method for data synchronisation between multiple nodes, and system, device, and storage medium

Also Published As

Publication number Publication date
WO2023041073A1 (en) 2023-03-23

Similar Documents

Publication Publication Date Title
CN109639794B (en) State cluster recovery method, device, equipment and readable storage medium
CN103744809B (en) Vehicle information management system double hot standby method based on VRRP
CN108847982B (en) Distributed storage cluster and node fault switching method and device thereof
US9348706B2 (en) Maintaining a cluster of virtual machines
CN102394914A (en) Cluster brain-split processing method and device
CN110601903A (en) Data processing method and device based on message queue middleware
CN110611603B (en) Cluster network card monitoring method and device
CN114268532A (en) Raft protocol-based election method, distributed system and storage medium
CN112506702A (en) Data center disaster tolerance method, device, equipment and storage medium
CN111338858B (en) Disaster recovery method and device for double machine rooms
CN110635941A (en) Database node cluster fault migration method and device
CN114764380A (en) Distributed cluster control method and device based on ETCD
CN113890880A (en) Method, system, equipment and storage medium for data synchronization among multiple nodes
CN108509296B (en) Method and system for processing equipment fault
CN107046474B (en) service cluster
CN116185697B (en) Container cluster management method, device and system, electronic equipment and storage medium
CN111813606A (en) Fault-tolerant method, system, equipment and medium for double-node virtual machine
CN104052799A (en) Method for achieving high availability storage through resource rings
CN114124803B (en) Device management method and device, electronic device and storage medium
CN114598594B (en) Method, system, medium and equipment for processing application faults under multiple clusters
CN111510336B (en) Network equipment state management method and device
CN112468330B (en) Method, system, equipment and medium for setting fault node
WO2021254466A1 (en) Method, apparatus and system for configuring edge side device
CN112433968B (en) Controller sharing synchronization method and device
CN115756304A (en) Method, device, equipment and readable medium for realizing configuration data consistency

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20220104