CN112468317A - Cluster topology updating method, system, equipment and computer storage medium - Google Patents

Cluster topology updating method, system, equipment and computer storage medium Download PDF

Info

Publication number
CN112468317A
CN112468317A CN202011226004.3A CN202011226004A CN112468317A CN 112468317 A CN112468317 A CN 112468317A CN 202011226004 A CN202011226004 A CN 202011226004A CN 112468317 A CN112468317 A CN 112468317A
Authority
CN
China
Prior art keywords
cluster
node
link
target
deleted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011226004.3A
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 CN202011226004.3A priority Critical patent/CN112468317A/en
Publication of CN112468317A publication Critical patent/CN112468317A/en
Priority to PCT/CN2021/089971 priority patent/WO2022095349A1/en
Pending legal-status Critical Current

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/12Discovery or management of network topologies
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • 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/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/028Dynamic adaptation of the update intervals, e.g. event-triggered updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Abstract

The application discloses a cluster topology updating method, a system, equipment and a computer medium, which are applied to preset cluster nodes and used for receiving cluster link abnormal information sent by a target cluster node; determining cluster nodes to be deleted based on the cluster link abnormal information; deleting cluster nodes to be deleted and cluster links corresponding to the cluster nodes to be deleted in the cluster topology of the cluster to obtain an updated cluster topology; the cluster link abnormal information comprises identification information of a target cluster node and identification information of an opposite-end cluster node connected with the target cluster node through a target cluster link; the target cluster link is a cluster link which is connected with the target cluster node and has an abnormality. In the application, when a target cluster node connected with the target cluster node is abnormal, cluster link abnormal information is actively generated and sent to the preset cluster node, so that the preset cluster node can update the cluster topology based on the cluster link abnormal information, and the efficiency of updating the cluster topology is improved.

Description

Cluster topology updating method, system, equipment and computer storage medium
Technical Field
The present application relates to the field of cluster storage technologies, and in particular, to a method, a system, a device, and a computer storage medium for cluster topology update.
Background
The cluster storage is a storage pool which can provide a uniform access interface and a management interface for an application server by aggregating storage spaces in a plurality of storage devices, and the application can transparently access and utilize the disks on all the storage devices through the access interface, so that the performance of the storage devices and the utilization rate of the disks can be fully exerted. Data is stored and read from a plurality of storage devices according to certain rules so as to obtain higher concurrent access performance. In the existing cluster storage system, when a link abnormality occurs in the cluster storage system, a master control node in the cluster storage system needs to judge which cluster nodes have communication problems due to the link abnormality, then a new cluster topology structure is generated, the cluster system is recombined, and finally the nodes outside the cluster topology are removed from the cluster system. Therefore, the time consumption of the cluster storage system for updating the cluster topology is long, and the processing efficiency of the cluster system is influenced.
In summary, how to improve the efficiency of cluster topology update is a problem to be solved urgently by those skilled in the art.
Disclosure of Invention
The application aims to provide a cluster topology updating method, which can solve the technical problem of improving the efficiency of cluster topology updating to a certain extent. The application also provides a cluster topology updating system, equipment and a computer readable storage medium.
In order to achieve the above purpose, the present application provides the following technical solutions:
a cluster topology updating method is applied to preset cluster nodes in a cluster and comprises the following steps:
receiving cluster link abnormal information sent by a target cluster node in the cluster;
determining cluster nodes to be deleted based on the cluster link abnormal information;
deleting the cluster nodes to be deleted and the cluster links corresponding to the cluster nodes to be deleted in the cluster topology of the cluster to obtain the updated cluster topology;
the cluster link abnormal information comprises identification information of the target cluster node and identification information of an opposite-end cluster node connected with the target cluster node through a target cluster link; the target cluster link is a cluster link which is connected with the target cluster node and has an abnormality.
Preferably, the determining the cluster node to be deleted based on the cluster link abnormal information includes:
determining the target trunking link based on the trunking link abnormity information;
determining the target cluster link connecting the same cluster nodes as a first type of cluster link;
determining the target cluster link which is not connected with the same cluster node as a second cluster link;
determining the same cluster node connected by the first type of cluster link as the cluster node to be deleted;
and determining the cluster node to be deleted in the target cluster node corresponding to the second cluster link.
Preferably, the determining the cluster node to be deleted in the target cluster node corresponding to the second type of cluster link includes:
and determining the cluster node with the least number of processing events as the cluster node to be deleted in the target cluster nodes corresponding to the second type of cluster links.
Preferably, before determining the real-time number of the target trunking link based on the trunking link abnormality information, the method further includes:
and receiving node state information sent by the target cluster node, wherein the node state information comprises the number of events processed by the target cluster node.
Preferably, the determining the same cluster node to which the first type of cluster link is connected as the cluster node to be deleted includes:
and judging whether the same cluster node is the preset cluster node or not, and if not, executing the step of determining the same cluster node connected with the first type of cluster link as the cluster node to be deleted.
A cluster topology updating method is applied to a target cluster node in a cluster, and comprises the following steps:
determining a target trunking link with an abnormality in the trunking links connected with the target trunking link;
combining the identification information of the cluster nodes and the identification information of the opposite-end cluster nodes connected by the target cluster nodes through the target cluster links into cluster link abnormal information;
sending the cluster link abnormal information to a preset cluster node, so that the preset cluster node determines a cluster node to be deleted based on the cluster link abnormal information, and deleting the cluster node to be deleted and a cluster link corresponding to the cluster node to be deleted in the cluster topology of the cluster to obtain the updated cluster topology.
Preferably, after the sending the abnormal information of the trunking link to the preset trunking node, the method further includes:
acquiring node state information of the node, wherein the node state information comprises the number of events processed by the target cluster node;
and sending the node state information to the preset cluster node.
A cluster topology updating system is applied to preset cluster nodes in a cluster and comprises the following steps:
the first receiving module is used for receiving cluster link abnormal information sent by a target cluster node in the cluster;
the first determining module is used for determining cluster nodes to be deleted based on the abnormal cluster link information;
the first updating module is used for deleting the cluster nodes to be deleted and the cluster links corresponding to the cluster nodes to be deleted in the cluster topology of the cluster to obtain the updated cluster topology;
the cluster link abnormal information comprises identification information of the target cluster node and identification information of an opposite-end cluster node connected with the target cluster node through a target cluster link; the target cluster link is a cluster link which is connected with the target cluster node and has an abnormality.
A cluster topology update apparatus comprising:
a memory for storing a computer program;
a processor for implementing the steps of the cluster topology updating method as described in any of the above when the computer program is executed.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the cluster topology updating method as set forth in any of the above.
The application provides a cluster topology updating method, which is applied to a preset cluster node in a cluster and used for receiving cluster link abnormal information sent by a target cluster node in the cluster; determining cluster nodes to be deleted based on the cluster link abnormal information; deleting cluster nodes to be deleted and cluster links corresponding to the cluster nodes to be deleted in the cluster topology of the cluster to obtain an updated cluster topology; the cluster link abnormal information comprises identification information of a target cluster node and identification information of an opposite-end cluster node connected with the target cluster node through a target cluster link; the target cluster link is a cluster link which is connected with the target cluster node and has an abnormality. In the application, when a target cluster node is abnormal in a target cluster link connected with the target cluster node, cluster link abnormal information is actively generated and sent to the preset cluster node, so that the preset cluster node can update cluster topology based on the cluster link abnormal information. The cluster topology updating system, the cluster topology updating equipment and the computer readable storage medium solve the corresponding technical problems.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a first flowchart of a cluster topology updating method according to an embodiment of the present application;
FIG. 2 is an exemplary diagram of a cluster structure in an embodiment of the present application;
fig. 3 is a schematic structural diagram of an updated cluster topology in the embodiment of the present application;
fig. 4 is another schematic structural diagram of an updated cluster topology in the embodiment of the present application;
fig. 5 is a second flowchart of a cluster topology updating method provided in an embodiment of the present application;
fig. 6 is a schematic diagram of a first structure of a cluster topology updating system according to an embodiment of the present application;
fig. 7 is a second schematic structural diagram of a cluster topology updating system according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a cluster topology updating device according to an embodiment of the present application;
fig. 9 is another schematic structural diagram of a cluster topology updating device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a first flowchart of a cluster topology updating method according to an embodiment of the present application.
The cluster topology updating method provided by the embodiment of the application is applied to a preset cluster node in a cluster, and can include the following steps:
step S101: receiving cluster link abnormal information sent by a target cluster node in a cluster, wherein the cluster link abnormal information comprises identification information of the target cluster node and identification information of an opposite-end cluster node connected with the target cluster node through the target cluster link; the target cluster link is a cluster link which is connected with the target cluster node and has an abnormality.
In practical application, the preset cluster node may receive cluster link abnormality information sent by a target cluster node in a cluster, and the cluster link abnormality information includes identification information of the target cluster node and identification information of an opposite-end cluster node connected to the target cluster node through the target cluster link, so that the cluster link abnormality information may reflect relevant information of the target cluster link, for example, if the target cluster node is the cluster node 2, the opposite-end cluster node is the cluster node 4, and the target cluster link is a cluster link connected between the cluster node 2 and the cluster node 4.
It should be noted that the preset cluster node may be a master node in the cluster or a node in the cluster dedicated to updating the cluster topology, and the like, and this application is not limited in this application.
Step S102: and determining cluster nodes to be deleted based on the cluster link abnormal information.
In practical application, because the cluster link exception information carries the identification information of the target cluster node and the identification information of the opposite-end cluster node, and the target cluster node and the opposite-end cluster node are connected to both sides of the target cluster link, the preset cluster node can make the target cluster link disappear in the cluster by only deleting the target cluster node or the opposite-end cluster node, so that after receiving the cluster link exception information sent by the target cluster node in the cluster, the preset cluster node can determine the cluster node to be deleted based on the cluster link exception information, so as to update the cluster topology of the cluster.
Step S103: and deleting the cluster node to be deleted and the cluster link corresponding to the cluster node to be deleted in the cluster topology of the cluster to obtain the updated cluster topology.
In practical application, after the preset cluster node determines the cluster node to be deleted based on the cluster link abnormal information, the cluster node to be deleted and the cluster link corresponding to the cluster node to be deleted can be deleted in the cluster topology of the cluster, so that the updated cluster topology is obtained.
For convenience of understanding, it is assumed that the cluster includes a cluster node 1, a cluster node 2, a cluster node 3, and a cluster node 4, when an abnormal cluster link does not occur in the cluster, the cluster topology is as shown in fig. 2, when the cluster link between the cluster node 2 and the cluster node 4 in the cluster is abnormal, it is assumed that the preset cluster node takes the node 2 as a cluster node to be deleted, the updated cluster topology is as shown in fig. 3, and if the preset cluster node takes the node 4 as a cluster node to be deleted, the updated cluster topology is as shown in fig. 4.
The application provides a cluster topology updating method, which is applied to a preset cluster node in a cluster and used for receiving cluster link abnormal information sent by a target cluster node in the cluster; determining cluster nodes to be deleted based on the cluster link abnormal information; deleting cluster nodes to be deleted and cluster links corresponding to the cluster nodes to be deleted in the cluster topology of the cluster to obtain an updated cluster topology; the cluster link abnormal information comprises identification information of a target cluster node and identification information of an opposite-end cluster node connected with the target cluster node through a target cluster link; the target cluster link is a cluster link which is connected with the target cluster node and has an abnormality. In the application, when a target cluster node is abnormal in a target cluster link connected with the target cluster node, cluster link abnormal information is actively generated and sent to the preset cluster node, so that the preset cluster node can update cluster topology based on the cluster link abnormal information.
In the cluster topology updating method provided by the embodiment of the application, the preset cluster node can determine a target cluster link based on the cluster link abnormal information in the process of determining the cluster node to be deleted based on the cluster link abnormal information; determining a target cluster link connected with the same cluster node as a first type of cluster link; determining a target cluster link which is not connected with the same cluster node as a second cluster link; determining the same cluster nodes connected by the first type of cluster links as cluster nodes to be deleted; and determining cluster nodes to be deleted in the target cluster nodes corresponding to the second cluster links.
In practical application, the abnormal condition of cluster links connected with a certain cluster node may occur due to the abnormal condition of the cluster node, at this time, each cluster link abnormality information includes identification information of the abnormal cluster node, and still taking the cluster shown in fig. 2 as an example, assuming that the cluster node 4 is abnormal, the cluster node 1, the cluster node 2 and the cluster node 3 will generate one cluster link abnormal information, that is, there will be three cluster link abnormal information, and the three cluster link abnormal information all include the identification information of the cluster node 4, at this time, if the target cluster link connected with the same cluster node is determined as a first-class cluster link and the same cluster node connected with the first-class cluster link is determined as a cluster node to be deleted, the cluster node 4 is directly used as the cluster node to be deleted and is consistent with the real abnormal reason of the cluster link; for those situations where cluster link abnormality information of the same cluster node does not exist, for example, cluster links in the cluster nodes 2 and 4 are abnormal, only the cluster node 2 or the cluster node 4 needs to be deleted at this time, so that a target cluster link which is not connected with the same cluster node can be determined as a second-class cluster link, and a cluster node to be deleted is determined in a target cluster node corresponding to the second-class cluster link.
In practical application, in the process that the cluster node to be deleted is determined in the target cluster nodes corresponding to the second type of cluster link by the preset cluster node, the cluster node with the least number of processing events can be determined as the cluster node to be deleted in the target cluster nodes corresponding to the second type of cluster link. Since the cluster nodes process a large number of events, which means that the performance of the cluster nodes is good and the amount of data of useful information stored in the cluster nodes is large, in order to reduce the influence of the cluster nodes to be deleted on the cluster performance as much as possible, the cluster node with the least number of processing events may be determined as the cluster node to be deleted from the target cluster nodes corresponding to the second type of cluster links.
In practical application, the preset cluster node may further receive node state information sent by the target cluster node before determining the real-time number of the target cluster links based on the cluster link abnormal information, where the node state information includes the number of events processed by the target cluster node. That is, the target cluster node may actively send node state information representing the number of events processed by the target cluster node to the preset cluster node, so that the preset cluster node may quickly determine the number of events processed by the target cluster node based on the node state information.
In practical application, if the same cluster node connected by the first type of cluster link is a preset cluster node, it may be that the preset cluster node is abnormal, or other nodes except the preset cluster node are abnormal, at this time, if the preset cluster node is deleted, the cluster topology updating method provided by the present application cannot be executed, so to ensure that the cluster topology can be updated normally, in the process of determining the same cluster node connected by the first type of cluster link as a cluster node to be deleted, it may be determined whether the same cluster node is the preset cluster node, and if not, the step of determining the same cluster node connected by the first type of cluster link as the cluster node to be deleted is executed.
It should be noted that, in the case that the same cluster node is a preset cluster node, the preset cluster node may be reselected from the cluster, and then the step of determining the same cluster node connected by the first type of cluster link as the cluster node to be deleted is performed.
Referring to fig. 5, fig. 5 is a second flowchart of a cluster topology updating method according to an embodiment of the present application.
The cluster topology updating method provided by the embodiment of the application is applied to a target cluster node in a cluster, and can comprise the following steps:
step S201: and determining a target trunking link with an exception in the self-connected trunking links.
Step S202: and combining the identification information of the cluster nodes and the identification information of the opposite-end cluster nodes connected by the target cluster nodes through the target cluster links into cluster link abnormal information.
Step S203: and sending the cluster link abnormal information to a preset cluster node so that the preset cluster node determines the cluster node to be deleted based on the cluster link abnormal information, and deleting the cluster node to be deleted and the cluster link corresponding to the cluster node to be deleted in the cluster topology of the cluster to obtain the updated cluster topology.
The description of the relevant steps in the cluster topology updating method applied to the target cluster node provided in the embodiment of the present application may refer to the foregoing embodiment, and is not described herein again.
In the cluster topology updating method provided by the embodiment of the application, after the target cluster node sends the cluster link abnormal information to the preset cluster node, the node state information of the target cluster node can be acquired, wherein the node state information comprises the number of events processed by the target cluster node; and sending the node state information to the preset cluster node.
Referring to fig. 6, fig. 6 is a schematic diagram of a first structure of a cluster topology updating system according to an embodiment of the present application.
The cluster topology updating system provided in the embodiment of the present application is applied to a preset cluster node in a cluster, and may include:
a first receiving module 101, configured to receive cluster link exception information sent by a target cluster node in a cluster;
a first determining module 102, configured to determine, based on the abnormal information of the cluster link, a cluster node to be deleted;
the first updating module 103 is configured to delete a cluster node to be deleted and a cluster link corresponding to the cluster node to be deleted in the cluster topology of the cluster, so as to obtain an updated cluster topology;
the cluster link abnormal information comprises identification information of a target cluster node and identification information of an opposite-end cluster node connected with the target cluster node through a target cluster link; the target cluster link is a cluster link which is connected with the target cluster node and has an abnormality.
The cluster topology updating system provided in the embodiment of the present application is applied to a preset cluster node in a cluster, and the first deleting module may include:
the first determining submodule is used for determining a target trunking link based on the trunking link abnormal information;
the second determining submodule is used for determining a target cluster link connected with the same cluster node as a first type of cluster link;
a third determining submodule, configured to determine a target trunking link not connected to the same trunking node as a second-class trunking link;
the fourth determining submodule is used for determining the same cluster node connected with the first type of cluster link as the cluster node to be deleted;
and the fifth determining submodule is used for determining cluster nodes to be deleted in the target cluster nodes corresponding to the second cluster link.
The cluster topology updating system provided in the embodiment of the present application is applied to a preset cluster node in a cluster, and the fifth determining submodule may include:
and the first determining unit is used for determining the cluster node with the least number of processing events as the cluster node to be deleted in the target cluster nodes corresponding to the second type of cluster links.
The cluster topology updating system provided in the embodiment of the present application is applied to a preset cluster node in a cluster, and may further include:
and the first receiving submodule is used for receiving the node state information sent by the target cluster node before the first determining submodule determines the real-time number of the target cluster links based on the cluster link abnormal information, wherein the node state information comprises the number of the target cluster node processing events.
The cluster topology updating system provided in the embodiment of the present application is applied to a preset cluster node in a cluster, and the fourth determining submodule may include:
and the first judging unit is used for judging whether the same cluster node is a preset cluster node or not, and if not, executing the step of determining the same cluster node connected with the first type of cluster link as the cluster node to be deleted.
Referring to fig. 7, fig. 7 is a schematic diagram of a second structure of a cluster topology updating system according to an embodiment of the present application.
The cluster topology updating system provided in the embodiment of the present application is applied to a target cluster node in a cluster, and may include:
a second determining module 201, configured to determine, in the self-connected trunking links, a target trunking link in which an abnormality occurs;
the first combining module 202 is configured to combine identification information of the first combining module and identification information of an opposite-end cluster node connected to the target cluster node through the target cluster link into cluster link exception information;
the first sending module 203 is configured to send the cluster link exception information to the preset cluster node, so that the preset cluster node determines the cluster node to be deleted based on the cluster link exception information, and deletes the cluster node to be deleted and the cluster link corresponding to the cluster node to be deleted in the cluster topology of the cluster, to obtain the updated cluster topology.
The cluster topology updating system provided in the embodiment of the present application is applied to a target cluster node in a cluster, and may further include:
the first acquisition module is used for acquiring node state information of the first sending module after the first sending module sends the abnormal information of the cluster link to a preset cluster node, wherein the node state information comprises the number of target cluster node processing events;
and the second sending module is used for sending the node state information to the preset cluster node.
The application also provides cluster topology updating equipment and a computer readable storage medium, which have corresponding effects of the cluster topology updating method provided by the embodiment of the application. Referring to fig. 8, fig. 8 is a schematic structural diagram of a cluster topology updating device according to an embodiment of the present application.
The cluster topology updating device provided by the embodiment of the application includes a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program:
receiving cluster link abnormal information sent by a target cluster node in a cluster;
determining cluster nodes to be deleted based on the cluster link abnormal information;
deleting cluster nodes to be deleted and cluster links corresponding to the cluster nodes to be deleted in the cluster topology of the cluster to obtain an updated cluster topology;
the cluster link abnormal information comprises identification information of a target cluster node and identification information of an opposite-end cluster node connected with the target cluster node through a target cluster link; the target cluster link is a cluster link which is connected with the target cluster node and has an abnormality.
The cluster topology updating device provided by the embodiment of the application includes a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: determining a target trunking link based on the trunking link abnormal information; determining a target cluster link connected with the same cluster node as a first type of cluster link; determining a target cluster link which is not connected with the same cluster node as a second cluster link; determining the same cluster nodes connected by the first type of cluster links as cluster nodes to be deleted; and determining cluster nodes to be deleted in the target cluster nodes corresponding to the second cluster links.
The cluster topology updating device provided by the embodiment of the application includes a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: and determining the cluster node with the least number of processing events as the cluster node to be deleted in the target cluster nodes corresponding to the second type of cluster links.
The cluster topology updating device provided by the embodiment of the application includes a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: before the real-time number of the target cluster links is determined based on the cluster link abnormal information, node state information sent by the target cluster nodes is received, and the node state information comprises the number of events processed by the target cluster nodes.
The cluster topology updating device provided by the embodiment of the application includes a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: and judging whether the same cluster node is a preset cluster node or not, and if not, executing the step of determining the same cluster node connected with the first-class cluster link as the cluster node to be deleted.
The cluster topology updating device provided by the embodiment of the application includes a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: determining a target trunking link with an abnormality in the trunking links connected with the target trunking link; combining the identification information of the cluster nodes and the identification information of the opposite-end cluster nodes connected by the target cluster nodes through the target cluster links into cluster link abnormal information; and sending the cluster link abnormal information to a preset cluster node so that the preset cluster node determines the cluster node to be deleted based on the cluster link abnormal information, and deleting the cluster node to be deleted and the cluster link corresponding to the cluster node to be deleted in the cluster topology of the cluster to obtain the updated cluster topology.
The cluster topology updating device provided by the embodiment of the application includes a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: after cluster link abnormal information is sent to a preset cluster node, node state information of the cluster link abnormal information is obtained, wherein the node state information comprises the number of target cluster node processing events; and sending the node state information to the preset cluster node.
Referring to fig. 9, another cluster topology updating device provided in the embodiment of the present application may further include: an input port 203 connected to the processor 202, for transmitting externally input commands to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing result of the processor 202 to the outside; and the communication module 205 is connected with the processor 202 and is used for realizing communication between the cluster topology updating device and the outside world. The display unit 204 may be a display panel, a laser scanning display, or the like; the communication method adopted by the communication module 205 includes, but is not limited to, mobile high definition link technology (HML), Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), and wireless connection: wireless fidelity technology (WiFi), bluetooth communication technology, bluetooth low energy communication technology, ieee802.11s based communication technology.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps:
receiving cluster link abnormal information sent by a target cluster node in a cluster;
determining cluster nodes to be deleted based on the cluster link abnormal information;
deleting cluster nodes to be deleted and cluster links corresponding to the cluster nodes to be deleted in the cluster topology of the cluster to obtain an updated cluster topology;
the cluster link abnormal information comprises identification information of a target cluster node and identification information of an opposite-end cluster node connected with the target cluster node through a target cluster link; the target cluster link is a cluster link which is connected with the target cluster node and has an abnormality.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: determining a target trunking link based on the trunking link abnormal information; determining a target cluster link connected with the same cluster node as a first type of cluster link; determining a target cluster link which is not connected with the same cluster node as a second cluster link; determining the same cluster nodes connected by the first type of cluster links as cluster nodes to be deleted; and determining cluster nodes to be deleted in the target cluster nodes corresponding to the second cluster links.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: and determining the cluster node with the least number of processing events as the cluster node to be deleted in the target cluster nodes corresponding to the second type of cluster links.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: before the real-time number of the target cluster links is determined based on the cluster link abnormal information, node state information sent by the target cluster nodes is received, and the node state information comprises the number of events processed by the target cluster nodes.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: and judging whether the same cluster node is a preset cluster node or not, and if not, executing the step of determining the same cluster node connected with the first-class cluster link as the cluster node to be deleted.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: determining a target trunking link with an abnormality in the trunking links connected with the target trunking link; combining the identification information of the cluster nodes and the identification information of the opposite-end cluster nodes connected by the target cluster nodes through the target cluster links into cluster link abnormal information; and sending the cluster link abnormal information to a preset cluster node so that the preset cluster node determines the cluster node to be deleted based on the cluster link abnormal information, and deleting the cluster node to be deleted and the cluster link corresponding to the cluster node to be deleted in the cluster topology of the cluster to obtain the updated cluster topology.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: after cluster link abnormal information is sent to a preset cluster node, node state information of the cluster link abnormal information is obtained, wherein the node state information comprises the number of target cluster node processing events; and sending the node state information to the preset cluster node.
The computer-readable storage media to which this application relates include Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage media known in the art.
For a description of relevant parts in the cluster topology updating system, the cluster topology updating device, and the computer-readable storage medium provided in the embodiments of the present application, reference is made to detailed descriptions of corresponding parts in the cluster topology updating method provided in the embodiments of the present application, and details are not described herein again. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application 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 (10)

1. A cluster topology updating method is applied to preset cluster nodes in a cluster, and comprises the following steps:
receiving cluster link abnormal information sent by a target cluster node in the cluster;
determining cluster nodes to be deleted based on the cluster link abnormal information;
deleting the cluster nodes to be deleted and the cluster links corresponding to the cluster nodes to be deleted in the cluster topology of the cluster to obtain the updated cluster topology;
the cluster link abnormal information comprises identification information of the target cluster node and identification information of an opposite-end cluster node connected with the target cluster node through a target cluster link; the target cluster link is a cluster link which is connected with the target cluster node and has an abnormality.
2. The method of claim 1, wherein the determining cluster nodes to be deleted based on the cluster link anomaly information comprises:
determining the target trunking link based on the trunking link abnormity information;
determining the target cluster link connecting the same cluster nodes as a first type of cluster link;
determining the target cluster link which is not connected with the same cluster node as a second cluster link;
determining the same cluster node connected by the first type of cluster link as the cluster node to be deleted;
and determining the cluster node to be deleted in the target cluster node corresponding to the second cluster link.
3. The method according to claim 2, wherein the determining the cluster node to be deleted in the target cluster node corresponding to the second type of cluster link includes:
and determining the cluster node with the least number of processing events as the cluster node to be deleted in the target cluster nodes corresponding to the second type of cluster links.
4. The method of claim 3, wherein before determining the real-time number of target trunked links based on the trunked link anomaly information, further comprising:
and receiving node state information sent by the target cluster node, wherein the node state information comprises the number of events processed by the target cluster node.
5. The method according to claim 2, wherein the determining the same cluster node to which the first type of cluster link is connected as the cluster node to be deleted comprises:
and judging whether the same cluster node is the preset cluster node or not, and if not, executing the step of determining the same cluster node connected with the first type of cluster link as the cluster node to be deleted.
6. A cluster topology updating method is applied to a target cluster node in a cluster, and comprises the following steps:
determining a target trunking link with an abnormality in the trunking links connected with the target trunking link;
combining the identification information of the cluster nodes and the identification information of the opposite-end cluster nodes connected by the target cluster nodes through the target cluster links into cluster link abnormal information;
sending the cluster link abnormal information to a preset cluster node, so that the preset cluster node determines a cluster node to be deleted based on the cluster link abnormal information, and deleting the cluster node to be deleted and a cluster link corresponding to the cluster node to be deleted in the cluster topology of the cluster to obtain the updated cluster topology.
7. The method according to claim 6, wherein after sending the cluster link exception information to a preset cluster node, the method further comprises:
acquiring node state information of the node, wherein the node state information comprises the number of events processed by the target cluster node;
and sending the node state information to the preset cluster node.
8. A cluster topology updating system is applied to preset cluster nodes in a cluster, and comprises the following steps:
the first receiving module is used for receiving cluster link abnormal information sent by a target cluster node in the cluster;
the first determining module is used for determining cluster nodes to be deleted based on the abnormal cluster link information;
the first updating module is used for deleting the cluster nodes to be deleted and the cluster links corresponding to the cluster nodes to be deleted in the cluster topology of the cluster to obtain the updated cluster topology;
the cluster link abnormal information comprises identification information of the target cluster node and identification information of an opposite-end cluster node connected with the target cluster node through a target cluster link; the target cluster link is a cluster link which is connected with the target cluster node and has an abnormality.
9. A cluster topology update apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the cluster topology updating method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the cluster topology updating method according to any one of claims 1 to 7.
CN202011226004.3A 2020-11-05 2020-11-05 Cluster topology updating method, system, equipment and computer storage medium Pending CN112468317A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011226004.3A CN112468317A (en) 2020-11-05 2020-11-05 Cluster topology updating method, system, equipment and computer storage medium
PCT/CN2021/089971 WO2022095349A1 (en) 2020-11-05 2021-04-26 Cluster topology updating method, system and device, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011226004.3A CN112468317A (en) 2020-11-05 2020-11-05 Cluster topology updating method, system, equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN112468317A true CN112468317A (en) 2021-03-09

Family

ID=74825033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011226004.3A Pending CN112468317A (en) 2020-11-05 2020-11-05 Cluster topology updating method, system, equipment and computer storage medium

Country Status (2)

Country Link
CN (1) CN112468317A (en)
WO (1) WO2022095349A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022095349A1 (en) * 2020-11-05 2022-05-12 苏州浪潮智能科技有限公司 Cluster topology updating method, system and device, and computer storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494801A (en) * 2008-01-21 2009-07-29 华为技术有限公司 Method, system and network appliance for fault recovery
CN101938420A (en) * 2010-09-09 2011-01-05 中兴通讯股份有限公司 Cluster topological collection method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102318272B (en) * 2011-06-29 2013-12-18 华为技术有限公司 Method for eliminating abnormal group member in process group
US10129090B2 (en) * 2016-04-12 2018-11-13 International Business Machines Corporation Site asymmetric topology reconciliation in a computer cluster
CN109257195B (en) * 2017-07-12 2021-01-15 华为技术有限公司 Fault processing method and equipment for nodes in cluster
CN112468317A (en) * 2020-11-05 2021-03-09 苏州浪潮智能科技有限公司 Cluster topology updating method, system, equipment and computer storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494801A (en) * 2008-01-21 2009-07-29 华为技术有限公司 Method, system and network appliance for fault recovery
CN101938420A (en) * 2010-09-09 2011-01-05 中兴通讯股份有限公司 Cluster topological collection method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022095349A1 (en) * 2020-11-05 2022-05-12 苏州浪潮智能科技有限公司 Cluster topology updating method, system and device, and computer storage medium

Also Published As

Publication number Publication date
WO2022095349A1 (en) 2022-05-12

Similar Documents

Publication Publication Date Title
CN109062512B (en) Distributed storage cluster, data read-write method, system and related device
KR101871383B1 (en) Method and system for using a recursive event listener on a node in hierarchical data structure
CN109886693B (en) Consensus realization method, device, equipment and medium for block chain system
CN110659151B (en) Data verification method and device and storage medium
CN109582213B (en) Data reconstruction method and device and data storage system
CN108665272A (en) Block chain data processing method, device, equipment and storage medium
CN103491152A (en) Metadata obtaining method, device and system in distributed file system
CN110597887A (en) Data management method, device and storage medium based on block chain network
CN112134763B (en) Method, system, equipment and medium for transmitting layered messages among cluster nodes
CN111400041A (en) Server configuration file management method and device and computer readable storage medium
CN102520982A (en) Method and device of node hot plug
CN109995595B (en) RGW quota determining method, system, equipment and computer medium
CN112468317A (en) Cluster topology updating method, system, equipment and computer storage medium
CN111090397B (en) Data deduplication method, system, equipment and computer readable storage medium
CN111367761A (en) Information management method, system and related components of universal server
CN104735097A (en) Information collecting method and system
CN113590666A (en) Data caching method, system, equipment and computer medium in AI cluster
CN110661869B (en) Node online method, system, device, equipment and computer storage medium
CN111857545B (en) Read-write lock conflict judging method, system, equipment and computer medium
CN111858129B (en) Erasure code read request processing method, system, equipment and computer medium
CN111970091A (en) Communication method, system, equipment and computer readable storage medium
CN112765056B (en) Method, system, equipment and medium for reserving storage cluster LUN
CN111857583B (en) Distributed storage volume updating method, system, equipment and computer medium
CN113132233B (en) Data processing method, software defined network controller and data processing system
CN116431566B (en) Data migration method, device, electronic equipment and medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210309

RJ01 Rejection of invention patent application after publication