CN110519109B - Method, device, computing equipment and medium for detecting node association - Google Patents
Method, device, computing equipment and medium for detecting node association Download PDFInfo
- Publication number
- CN110519109B CN110519109B CN201910916337.XA CN201910916337A CN110519109B CN 110519109 B CN110519109 B CN 110519109B CN 201910916337 A CN201910916337 A CN 201910916337A CN 110519109 B CN110519109 B CN 110519109B
- Authority
- CN
- China
- Prior art keywords
- node
- nodes
- determining
- platform
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
- H04L41/065—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis involving logical or physical relationship, e.g. grouping and hierarchies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0677—Localisation of faults
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present disclosure provides a method of probing node association, comprising: the method comprises the steps of obtaining address data of a plurality of nodes, determining role information of each node in the plurality of nodes based on the address data, wherein the role information represents node types of the nodes, obtaining interaction data among the plurality of nodes, processing the interaction data to obtain association relations among the plurality of nodes, and determining hierarchy information of the plurality of nodes based on the role information and the association relations, wherein the hierarchy information is used for determining node faults. The disclosure also provides an apparatus, a computing device, and a computer-readable storage medium for detecting node association.
Description
Technical Field
The present disclosure relates to the field of computer technology, and in particular, to a method for detecting node association, an apparatus for detecting node association, a computing device, and a computer-readable storage medium.
Background
In recent years, data centers experience explosive growth of software and hardware, application release and deployment are also frequent, the life cycle is changed continuously, nodes in the application are numerous and staggered and complex, and great challenges are brought to node fault removal. When hundreds of applications are faced, it is difficult for operation and maintenance personnel to comprehensively and accurately grasp the deployment and system architecture of the applications, and the production problems cannot be rapidly processed, so that the problem positioning is performed. Therefore, how to quickly and accurately troubleshoot nodes within an application becomes a problem to be solved by the present disclosure.
Disclosure of Invention
One aspect of the present disclosure provides a method of probing node association, comprising: acquiring address data of a plurality of nodes, wherein the plurality of nodes are used for realizing related functions of a target application, determining role information of each node in the plurality of nodes based on the address data, the role information characterizes node types of the nodes, acquiring interaction data among the plurality of nodes, processing the interaction data to obtain association relations among the plurality of nodes, and determining hierarchy information of the plurality of nodes based on the role information and the association relations, wherein the hierarchy information is used for determining node faults.
According to an embodiment of the present disclosure, determining the role information of each of the plurality of nodes based on the address data includes: and determining that a current node in the plurality of nodes is a platform node or a network node based on the address data, determining role information of the platform node according to a first mode when the current node is the platform node, and determining role information of the network node according to a second mode when the current node is the network node.
According to an embodiment of the present disclosure, determining the role information of the platform node according to the first manner includes: and sending a platform judgment script to the platform node, and determining role information of the platform node based on an operation result generated by the platform node operating the platform judgment script. The determining the role information of the network node according to the second mode includes: and sending a network instruction to the network node, and determining role information of the network node based on response information generated by the network node executing the network instruction.
According to an embodiment of the present disclosure, the acquiring interaction data between the plurality of nodes includes at least one of: the method comprises the steps of obtaining a configuration file of the platform node, analyzing the configuration file to obtain interaction data of the platform node, sending a platform analysis script to the platform node, and determining the interaction data of the platform node based on an operation result generated by the platform node operating the platform analysis script.
According to an embodiment of the present disclosure, the obtaining interaction data between the plurality of nodes includes: and acquiring configuration information of the network node, and determining interaction data of the network node based on the configuration information.
According to an embodiment of the present disclosure, the network node includes at least one of a router, a firewall, and a load balancing node, and the obtaining configuration information of the network node includes: and acquiring at least one of a routing table, a firewall policy and load balancing configuration information of the router.
According to an embodiment of the present disclosure, determining the hierarchy information of the plurality of nodes based on the role information and the association relation includes: and determining a target node in the plurality of nodes as a first level node, and determining at least one Nth level node connected with the N-1 th level node in the plurality of nodes based on the association relation until traversing the plurality of nodes to obtain the level information, wherein N is an integer greater than or equal to 2.
Another aspect of the present disclosure provides an apparatus for probing node association, including: the device comprises a first acquisition module, a first determination module, a second acquisition module, a processing module and a second determination module. The method comprises the steps that a first acquisition module acquires address data of a plurality of nodes, the plurality of nodes are used for realizing related functions of target application, a first determination module determines role information of each node in the plurality of nodes based on the address data, the role information represents node types of the nodes, a second acquisition module acquires interaction data among the plurality of nodes, a processing module processes the interaction data to obtain association relations among the plurality of nodes, and a second determination module determines hierarchy information of the plurality of nodes based on the role information and the association relations, wherein the hierarchy information is used for determining node faults.
According to an embodiment of the present disclosure, the first determining module includes: the first, second and third determination sub-modules. The first determining submodule determines that a current node in the plurality of nodes is a platform node or a network node based on the address data, the second determining submodule determines role information of the platform node according to a first mode when the current node is the platform node, and the third determining submodule determines the role information of the network node according to a second mode when the current node is the network node.
According to an embodiment of the present disclosure, determining the role information of the platform node according to the first manner includes: and sending a platform judgment script to the platform node, and determining role information of the platform node based on an operation result generated by the platform node operating the platform judgment script. The determining the role information of the network node according to the second mode includes: and sending a network instruction to the network node, and determining role information of the network node based on response information generated by the network node executing the network instruction.
According to an embodiment of the present disclosure, the acquiring interaction data between the plurality of nodes includes at least one of: the method comprises the steps of obtaining a configuration file of the platform node, analyzing the configuration file to obtain interaction data of the platform node, sending a platform analysis script to the platform node, and determining the interaction data of the platform node based on an operation result generated by the platform node operating the platform analysis script.
According to an embodiment of the present disclosure, the obtaining interaction data between the plurality of nodes includes: and acquiring configuration information of the network node, and determining interaction data of the network node based on the configuration information.
According to an embodiment of the present disclosure, the network node includes at least one of a router, a firewall, and a load balancing node, and the obtaining configuration information of the network node includes: and acquiring at least one of a routing table, a firewall policy and load balancing configuration information of the router.
According to an embodiment of the present disclosure, determining the hierarchy information of the plurality of nodes based on the role information and the association relation includes: and determining a target node in the plurality of nodes as a first level node, and determining at least one Nth level node connected with the N-1 th level node in the plurality of nodes based on the association relation until traversing the plurality of nodes to obtain the level information, wherein N is an integer greater than or equal to 2.
Another aspect of the present disclosure provides a computing device, comprising: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method as described above.
Another aspect of the present disclosure provides a non-transitory readable storage medium storing computer executable instructions which, when executed, are configured to implement a method as described above.
Another aspect of the present disclosure provides a computer program comprising computer executable instructions which when executed are for implementing a method as described above.
Drawings
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
FIG. 1 schematically illustrates a system architecture of a method of probing node association and an apparatus of probing node association according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a method of probing node associations in accordance with an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of determining role information for a node in accordance with an embodiment of the present disclosure;
FIG. 4 schematically illustrates a schematic diagram of determining hierarchical relationships according to an embodiment of the disclosure;
FIG. 5 schematically illustrates a block diagram of an apparatus for probing node associations in accordance with an embodiment of the disclosure;
FIG. 6 schematically illustrates a block diagram of a first determination module according to an embodiment of the disclosure; and
fig. 7 schematically illustrates a block diagram of a computer system for implementing probing node association in accordance with an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a formulation similar to at least one of "A, B or C, etc." is used, in general such a formulation should be interpreted in accordance with the ordinary understanding of one skilled in the art (e.g. "a system with at least one of A, B or C" would include but not be limited to systems with a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Some of the block diagrams and/or flowchart illustrations are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable control apparatus, such that the instructions, when executed by the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart.
Thus, the techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). Additionally, the techniques of this disclosure may take the form of a computer program product on a computer-readable medium having instructions stored thereon, the computer program product being usable by or in connection with an instruction execution system. In the context of this disclosure, a computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the instructions. For example, a computer-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of the computer readable medium include: magnetic storage devices such as magnetic tape or hard disk (HDD); optical storage devices such as compact discs (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and/or a wired/wireless communication link.
The embodiment of the disclosure provides a method for detecting node association, which comprises the following steps: address data of a plurality of nodes are acquired, and the plurality of nodes are used for realizing relevant functions of the target application. And then, based on the address data, determining the role information of each node in the plurality of nodes, wherein the role information characterizes the node type of the node, and acquiring interaction data among the plurality of nodes. And finally, processing the interaction data to obtain an association relation among the plurality of nodes, and determining hierarchy information of the plurality of nodes based on the role information and the association relation, wherein the hierarchy information is used for determining node faults.
Fig. 1 schematically illustrates a system architecture of a method of probing node association and an apparatus of probing node association according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which embodiments of the present disclosure may be applied to assist those skilled in the art in understanding the technical content of the present disclosure, but does not mean that embodiments of the present disclosure may not be used in other devices, systems, environments, or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that, the method for detecting node association provided by the embodiments of the present disclosure may be generally performed by the server 105. For example, the server 105 may perform obtaining address data for a plurality of nodes that are used to implement related functions of the target application. And then, based on the address data, determining the role information of each node in the plurality of nodes, wherein the role information characterizes the node type of the node, and acquiring interaction data among the plurality of nodes. And finally, processing the interaction data to obtain an association relation among the plurality of nodes, and determining hierarchy information of the plurality of nodes based on the role information and the association relation, wherein the hierarchy information is used for determining node faults. Accordingly, the apparatus for detecting node association provided by the embodiments of the present disclosure may be generally disposed in the server 105. The method of probing node association provided by the embodiments of the present disclosure may also be performed by a server or cluster of servers other than the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the apparatus for probing node association provided by the embodiments of the present disclosure may also be provided in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
For example, address data of a plurality of nodes and interaction data between the plurality of nodes in the embodiment of the present disclosure may be stored in the terminal devices 101, 102, 103, the address data of the plurality of nodes and the interaction data between the plurality of nodes are sent to the server 105 through the terminal devices 101, 102, 103, the server 105 may process the interaction data to obtain an association relationship between the plurality of nodes, and hierarchical information of the plurality of nodes is determined based on the role information and the association relationship. In addition, address data of the plurality of nodes and interaction data between the plurality of nodes may also be directly stored in the server 105 by the server 105, the interaction data may be directly processed by the server 105 to obtain an association relationship between the plurality of nodes, and hierarchical information of the plurality of nodes may be determined based on the role information and the association relationship.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
A method of probing node association according to an exemplary embodiment of the present disclosure is described below with reference to fig. 2-4 in conjunction with the system architecture of fig. 1. It should be noted that the above-described system architecture is merely illustrated for ease of understanding the spirit and principles of the present disclosure, and embodiments of the present disclosure are not limited in this respect. Rather, embodiments of the present disclosure may be applied to any scenario where applicable.
Fig. 2 schematically illustrates a flow chart of a method of probing node associations in accordance with an embodiment of the present disclosure.
As shown in fig. 2, the method may include operations S210 to S250.
In operation S210, address data of a plurality of nodes for implementing related functions of a target application is acquired.
According to embodiments of the present disclosure, multiple nodes within a target application may implement relevant functions of the target application, such as may implement query functions, transaction functions, and so forth. The plurality of nodes may include, for example, a load balancing node, a web server node, a mysq1 database master-slave node, an oracle database master-slave node, a message queue node, a hadoop cluster node, an MPPDB cluster node, a switch, a router, a firewall, and the like. Wherein mysql is an open-source relational database management system, oracle is an object relational database management system, hadoop is a distributed system infrastructure, and MPPDB is a distributed structured database.
Wherein the address data of the plurality of nodes comprises, for example, an IP address of each node. For example, different applications have different lists of IP addresses. Therefore, it is possible to determine the application name of the target application, and acquire the IP address list of the target application, including the IP addresses of the plurality of nodes of the target application, based on the application name.
In operation S220, role information of each of the plurality of nodes, which characterizes a node type of the node, is determined based on the address data.
In embodiments of the present disclosure, it may be determined that a node is a load balancing node, a message queue node, or a router, etc., for example, based on an IP address. Therefore, each node can be role-positioned according to the IP address. For example, when the target application includes node 1, node 2, node 3, the role information of each node is determined by the IP address as: node 1 is a load balancing node, node 2 is a message queue node, and node 3 is a router. The specific process of operation S220 is described in fig. 3 as follows.
In operation S230, interaction data between a plurality of nodes is acquired.
According to the embodiment of the disclosure, in order to realize the related functions of the target application, a plurality of nodes are required to perform data interaction. For example, the target application includes node 1, node 2 and node 3, for example, the node 1 sends data to the node 2, the node 2 processes the data and forwards the processed data to the node 3, and at this time, the interactive data between the multiple nodes includes a data forwarding process between the nodes, for example, includes the node 1 sending the data to the node 2, the node 2 forwarding the data to the node 3, and so on.
In operation S240, the interaction data is processed to obtain association relations between the plurality of nodes.
In the embodiment of the present disclosure, the association relationship between the plurality of nodes may be obtained based on the interaction data, for example, the association relationship between the node 1, the node 2, and the node 3 may be known based on the interaction data, for example, the association relationship is that the node 1 is connected with the node 2, the node 2 is connected with the node 3, and so on.
In operation S250, hierarchical information of a plurality of nodes is determined based on the role information and the association relationship, wherein the hierarchical information is used to determine node failure.
According to the embodiment of the disclosure, the hierarchy information among a plurality of nodes can be determined according to the role information of the nodes and the association relation among the nodes. For example, the association relationship among the nodes 1, 2, and 3 is that the node 1 is connected to the node 2, and the node 2 is connected to the node 3, so that it can be known that the hierarchical relationship among the nodes 1, 2, and 3 is that the node 1 is the first hierarchical level, the node 2 is the second hierarchical level, and the node 3 is the third hierarchical level. According to the hierarchical relationship, troubleshooting can be performed on the target application. For example, if the node 2 does not receive data or the received data is abnormal, it may be determined that the node 1 transmitting the data may malfunction, and the node 2 and the node 3 may be affected due to the malfunction of the node 1.
It can be appreciated that the present disclosure provides hierarchical information between nodes quickly and accurately by automatically detecting the role information of the nodes and the association relationship between the nodes, so that when an application fails, the failed node can be located conveniently and quickly according to the hierarchical information, and the scope of influence of the failure can be determined quickly.
Fig. 3 schematically illustrates a flow chart of determining role information for a node in accordance with an embodiment of the present disclosure.
As shown in fig. 3, the operation S220 includes operations S221 to S223.
In operation S221, it is determined that a current node among the plurality of nodes is a platform node or a network node based on the address data.
According to an embodiment of the present disclosure, each of the plurality of nodes belongs to a platform node or a network node, for example. For example, a web server node, a mysql database master-slave node, an oracle database master-slave node, a message queue node, a hadoop cluster node, and an MPPDB cluster node belong to a platform node. The load balancing node, the switch, the router and the firewall belong to the network node.
In the embodiments of the present disclosure, the IP address of a node can characterize that the current node belongs to a platform node or a network node. After determining that the current node is a platform node or a network node according to the IP address of the node, role information of the node may be determined according to different manners.
In operation S222, in case that the current node is a platform node, role information of the platform node is determined according to the first mode.
For example, a platform judgment script is sent to the platform node, and role information of the platform node is determined based on an operation result generated by the platform node operating the platform judgment script. That is, after the platform node receives the platform judgment script, the platform node runs the platform judgment script to generate an running result, and the running result has role information of the platform node, where the role information may be, for example, that the current platform node is a web server node, a mysql database master-slave node, an oracle database master-slave node, a message queue node, a hadoop cluster node, or an MPPDB cluster node.
In operation S223, in case that the current node is a network node, role information of the network node is determined according to the second manner. For example, a network instruction is sent to a network node, and role information of the network node is determined based on response information generated by the network node executing the network instruction. That is, after the network node receives the network instruction, the network node generates role information of the network node in response to the network instruction, where the role information may be, for example, that the current network node is a load balancing node, a switch, a router, a firewall, or the like.
According to an embodiment of the present disclosure, for example, in a case where the current node is a platform node, the above operation S230 includes at least one of the following (1) to (2), for example.
(1) And acquiring the configuration file of the platform node, and analyzing the configuration file to obtain the interaction data of the platform node. When the nodes are platform nodes, the configuration files of the platform nodes are analyzed, so that the interaction data of the platform nodes are obtained, and the association relation between the nodes is further determined according to the interaction data. The configuration file may include, for example, relevant information during processing of the data by the platform node. For example, when the platform node is node 1, the configuration file may include, for example, information about node 1 processing data according to a preset condition and forwarding the processed data to node 2 according to a related protocol.
(2) And sending a platform analysis script to the platform node, and determining interaction data of the platform node based on an operation result generated by the platform node operation platform analysis script. That is, the platform analysis script is transmitted to the platform node, and the platform node includes, for example, interactive data in an operation result obtained by operating the platform analysis script.
For example, a five-tuple of the platform node may be collected by the platform parsing script, where the five-tuple includes, for example, a source IP address, source port information, destination IP address, destination port information, and a transport protocol. When the platform node is node 1, node 1 sends data to node 2. The five-tuple of node 1 is collected, e.g., packet node 1 IP address, node 1 port information, node 2 IP address, node 2 port information, data transfer protocol between node 1 and node 2. It can be seen that the interaction data between node 1 and node 2 can be obtained from the five-tuple of node 1.
According to an embodiment of the present disclosure, for example, in a case where the current node is a network node, the operation S230 includes, for example: configuration information of the network node is obtained, and interaction data of the network node is determined based on the configuration information.
For example, when the network node comprises a router, a firewall, or a load balancing node, the configuration information of the network node comprises, for example, a routing table of the router, a firewall policy, or load balancing configuration information. The association relationship between the nodes can be obtained by analyzing the configuration information of the network nodes.
According to an embodiment of the present disclosure, the above-described operation S250 includes, for example: determining a target node in the plurality of nodes as a first level node, and determining at least one Nth level node connected with the N-1 th level node in the plurality of nodes based on the association relation until the plurality of nodes are traversed to obtain level information, wherein N is an integer greater than or equal to 2.
Fig. 4 schematically illustrates a schematic diagram of determining hierarchical relationships according to an embodiment of the present disclosure.
As shown in fig. 4, for example, the plurality of nodes includes node 10, node 21, node 22, node 23, node 31, node 32, node 33, node 41, node 42, and the like. For example, the node 10 is determined to be a target node, the node 10 may be a first level node, and the second level nodes connected to the node 10 are determined to be the nodes 21, 22, and 23 according to the association relationship between the plurality of nodes. The third level nodes, such as the third level nodes connected to node 21, including node 31, node 32, continue to be determined. The third level nodes connected to node 22 include, for example, node 33. The fourth level nodes, e.g. connected to node 33, including node 41, node 42, continue to be determined. And circulating until all nodes are traversed to obtain the level information. The hierarchical information can be shown in a hierarchical graph shown in fig. 4, and the hierarchical graph is stored in a database, so that the fault node can be quickly located according to the hierarchical graph in real time, and the influence range of the fault can be quickly determined.
According to the embodiment of the disclosure, the role information of the nodes and the association relation between the nodes are automatically detected, so that the hierarchy information between the nodes is rapidly and accurately provided, the fault node can be conveniently and rapidly positioned according to the hierarchy information when the application fails, and the influence range of the fault can be rapidly determined.
In addition, the embodiment of the disclosure can discover the role information and the association relationship of the nodes in the application by providing the customized script and the command issuing mode, so that the universality is strong. By the technical scheme of the embodiment of the invention, the global hierarchy view of the application can be provided for operation and maintenance personnel rapidly and accurately. When an application fault occurs, operation and maintenance personnel can conveniently and rapidly conduct problem positioning and troubleshooting so as to rapidly determine the influence range of the fault and reduce the loss caused by the fault. Meanwhile, the implementation of the method and the system can be complementary with a configuration management system, and data support is provided for the scenes of emergency production, main and standby database switching, high availability system, capacity expansion and the like.
Fig. 5 schematically illustrates a block diagram of an apparatus for probing node associations in accordance with an embodiment of the disclosure.
As shown in fig. 5, the apparatus 500 for probing node association may include a first acquisition module 510, a first determination module 520, a second acquisition module 530, a processing module 540, and a second determination module 550.
The first obtaining module 510 may be configured to obtain address data of a plurality of nodes, where the plurality of nodes are configured to implement related functions of the target application. According to an embodiment of the present disclosure, the first obtaining module 510 may perform, for example, operation S210 described above with reference to fig. 2, which is not described herein.
The first determining module 520 may be configured to determine, based on the address data, role information for each of the plurality of nodes, the role information characterizing a node type of the node. According to an embodiment of the present disclosure, the first determining module 520 may perform, for example, the operation S220 described above with reference to fig. 2, which is not described herein.
The second acquisition module 530 may be configured to acquire interaction data between a plurality of nodes. The second obtaining module 530 may, for example, perform operation S230 described above with reference to fig. 2 according to an embodiment of the present disclosure, which is not described herein.
The processing module 540 may be configured to process the interaction data to obtain an association relationship between a plurality of nodes. The processing module 540 may, for example, perform operation S240 described above with reference to fig. 2 according to an embodiment of the present disclosure, which is not described herein.
The second determining module 550 may be configured to determine hierarchical information of the plurality of nodes based on the role information and the association relationship, where the hierarchical information is used to determine a node failure. The second determining module 550 may, for example, perform operation S250 described above with reference to fig. 2, which is not described herein.
Fig. 6 schematically illustrates a block diagram of a first determination module according to an embodiment of the disclosure.
As shown in fig. 6, the first determination module 520 may include a first determination sub-module 521, a second determination sub-module 522, and a third determination sub-module 523.
The first determining submodule 521 may be configured to determine, based on the address data, that a current node of the plurality of nodes is a platform node or a network node. The first determination sub-module 521 may, for example, perform operation S221 described above with reference to fig. 3 according to an embodiment of the present disclosure, and will not be described herein.
The second determining sub-module 522 may be configured to determine, in case the current node is a platform node, role information of the platform node according to the first mode. The second determining sub-module 522 may perform, for example, operation S222 described above with reference to fig. 3 according to an embodiment of the present disclosure, which is not described herein.
The third determining submodule 523 may be configured to determine the role information of the network node according to the second mode in case the current node is the network node. The third determining sub-module 523 may, for example, perform operation S223 described above with reference to fig. 3 according to an embodiment of the present disclosure, which is not described herein.
According to an embodiment of the present disclosure, determining role information for a platform node according to a first manner includes: and sending a platform judgment script to the platform node, and determining role information of the platform node based on an operation result generated by the platform node operation platform judgment script. Determining role information for the network node according to the second manner includes: and sending a network instruction to the network node, and determining the role information of the network node based on response information generated by the network node executing the network instruction.
According to an embodiment of the present disclosure, obtaining interaction data between a plurality of nodes includes at least one of: the method comprises the steps of obtaining configuration files of platform nodes, analyzing the configuration files to obtain interaction data of the platform nodes, sending platform analysis scripts to the platform nodes, and determining the interaction data of the platform nodes based on operation results generated by platform node operation platform analysis scripts.
According to an embodiment of the present disclosure, obtaining interaction data between a plurality of nodes includes: configuration information of the network node is obtained, and interaction data of the network node is determined based on the configuration information.
According to an embodiment of the present disclosure, the network node includes at least one of a router, a firewall, and a load balancing node, and acquiring configuration information of the network node includes: and acquiring at least one of a routing table, a firewall policy and load balancing configuration information of the router.
According to an embodiment of the present disclosure, determining hierarchical information of a plurality of nodes based on role information and association relation includes: determining a target node in the plurality of nodes as a first level node, and determining at least one Nth level node connected with the N-1 th level node in the plurality of nodes based on the association relation until the plurality of nodes are traversed to obtain level information, wherein N is an integer greater than or equal to 2.
Any number of modules, sub-modules, units, sub-units, or at least some of the functionality of any number of the sub-units according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented as split into multiple modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or in any other reasonable manner of hardware or firmware that integrates or encapsulates the circuit, or in any one of or a suitable combination of three of software, hardware, and firmware. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be at least partially implemented as computer program modules, which when executed, may perform the corresponding functions.
For example, any of the first acquisition module 510, the first determination module 520, the first determination sub-module 521, the second determination sub-module 522, the third determination sub-module 523, the second acquisition module 530, the processing module 540, and the second determination module 550 may be combined in one module to be implemented, or any of the modules may be split into a plurality of modules. Alternatively, at least some of the functionality of one or more of the modules may be combined with at least some of the functionality of other modules and implemented in one module. According to embodiments of the present disclosure, at least one of the first acquisition module 510, the first determination module 520, the first determination sub-module 521, the second determination sub-module 522, the third determination sub-module 523, the second acquisition module 530, the processing module 540, and the second determination module 550 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging circuitry, or in any one of or a suitable combination of three of software, hardware, and firmware. Alternatively, at least one of the first acquisition module 510, the first determination module 520, the first determination sub-module 521, the second determination sub-module 522, the third determination sub-module 523, the second acquisition module 530, the processing module 540, and the second determination module 550 may be at least partially implemented as a computer program module, which may perform a corresponding function when being executed.
Fig. 7 schematically illustrates a block diagram of a computer system for implementing probing node association in accordance with an embodiment of the present disclosure. The computer system illustrated in fig. 7 is merely an example, and should not be construed as limiting the functionality and scope of use of the embodiments of the present disclosure.
As shown in fig. 7, a computer system 700 includes a processor 701, a computer-readable storage medium 702. The system 700 may perform a method according to an embodiment of the present disclosure.
In particular, the processor 701 may comprise, for example, a general purpose microprocessor, an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 701 may also include on-board memory for caching purposes. The processor 701 may be a single processing unit or a plurality of processing units for performing different actions of the method flow according to embodiments of the present disclosure.
The computer-readable storage medium 702 may be, for example, any medium that can contain, store, communicate, propagate, or transport the instructions. For example, a readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of the readable storage medium include: magnetic storage devices such as magnetic tape or hard disk (HDD); optical storage devices such as compact discs (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and/or a wired/wireless communication link.
The computer-readable storage medium 702 may comprise a computer program 703, which computer program 703 may comprise code/computer-executable instructions, which when executed by the processor 701, cause the processor 701 to perform a method according to an embodiment of the present disclosure or any variant thereof.
The computer program 703 may be configured with computer program code comprising, for example, computer program modules. For example, in an example embodiment, code in the computer program 703 may include one or more program modules, including 703A, modules 703B, … …, for example. It should be noted that the division and number of modules is not fixed, and a person skilled in the art may use suitable program modules or combinations of program modules according to the actual situation, which when executed by the processor 701, enable the processor 701 to perform the method according to an embodiment of the disclosure or any variations thereof.
According to an embodiment of the present disclosure, at least one of the first acquisition module 510, the first determination module 520, the first determination sub-module 521, the second determination sub-module 522, the third determination sub-module 523, the second acquisition module 530, the processing module 540, and the second determination module 550 may be implemented as a computer program module described with reference to fig. 7, which when executed by the processor 701, may implement the respective operations described above.
The present disclosure also provides a computer-readable medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer readable medium carries one or more programs which, when executed, implement the methods described above.
According to embodiments of the present disclosure, the computer readable medium may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, fiber optic cable, radio frequency signals, or the like, or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be combined in various combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
While the present disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present disclosure as defined by the appended claims and their equivalents. The scope of the disclosure should, therefore, not be limited to the above-described embodiments, but should be determined not only by the following claims, but also by the equivalents of the following claims.
Claims (9)
1. A method of probing node associations, comprising:
acquiring address data of a plurality of nodes, wherein the nodes are used for realizing related functions of a target application;
determining role information of each node in the plurality of nodes based on the address data, wherein the role information characterizes the node type of the node, and the role information of each node is determined according to different preset modes according to the node type of the node;
acquiring interaction data among the plurality of nodes, wherein the interaction data among the plurality of nodes are acquired through different preset operations according to the node type of the node;
processing the interaction data to obtain association relations among the plurality of nodes; and
And determining hierarchy information of the plurality of nodes based on the role information and the association relation, wherein the hierarchy information is used for determining node faults.
2. The method of claim 1, wherein the determining role information for each of the plurality of nodes based on the address data comprises:
determining a current node in the plurality of nodes as a platform node or a network node based on the address data;
under the condition that the current node is a platform node, role information of the platform node is determined according to a first mode;
determining role information of the network node according to a second mode under the condition that the current node is the network node;
wherein the determining the role information of the platform node according to the first mode includes: sending a platform judgment script to the platform node, and determining role information of the platform node based on an operation result generated by the platform node operating the platform judgment script; and
the determining the role information of the network node according to the second mode includes: and sending a network instruction to the network node, and determining role information of the network node based on response information generated by the network node executing the network instruction.
3. The method of claim 2, wherein the obtaining interaction data between the plurality of nodes comprises at least one of:
acquiring a configuration file of the platform node, and analyzing the configuration file to obtain interaction data of the platform node; and
and sending a platform analysis script to the platform node, and determining interaction data of the platform node based on an operation result generated by the platform node operating the platform analysis script.
4. The method of claim 2, wherein the obtaining interaction data between the plurality of nodes comprises:
acquiring configuration information of the network node; and
and determining interaction data of the network node based on the configuration information.
5. The method of claim 4, wherein the network node comprises at least one of a router, a firewall, a load balancing node; the obtaining the configuration information of the network node includes:
and acquiring at least one of a routing table, a firewall policy and load balancing configuration information of the router.
6. The method of any of claims 1-5, wherein the determining hierarchical information of the plurality of nodes based on the role information and the association relationship comprises:
Determining a target node in the plurality of nodes as a first level node;
and determining at least one Nth level node connected with the N-1 level node in the plurality of nodes based on the association relation until traversing the plurality of nodes to obtain the level information, wherein N is an integer greater than or equal to 2.
7. An apparatus for probing node associations, comprising:
the first acquisition module is used for acquiring address data of a plurality of nodes, wherein the nodes are used for realizing related functions of a target application;
the first determining module is used for determining the role information of each node in the plurality of nodes based on the address data, wherein the role information characterizes the node type of the node, and the role information of each node is determined according to different preset modes according to the node type of the node;
the second acquisition module is used for acquiring interaction data among the plurality of nodes, wherein the interaction data among the plurality of nodes are acquired through different preset operations according to the node type of the node;
the processing module is used for processing the interaction data to obtain the association relation among the plurality of nodes; and
and a second determining module for determining hierarchical information of the plurality of nodes based on the role information and the association relation, wherein the hierarchical information is used for determining node faults.
8. A computing device, comprising:
one or more processors;
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1 to 6.
9. A computer readable storage medium storing computer executable instructions which, when executed, are adapted to carry out the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910916337.XA CN110519109B (en) | 2019-09-26 | 2019-09-26 | Method, device, computing equipment and medium for detecting node association |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910916337.XA CN110519109B (en) | 2019-09-26 | 2019-09-26 | Method, device, computing equipment and medium for detecting node association |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110519109A CN110519109A (en) | 2019-11-29 |
CN110519109B true CN110519109B (en) | 2023-04-28 |
Family
ID=68633720
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910916337.XA Active CN110519109B (en) | 2019-09-26 | 2019-09-26 | Method, device, computing equipment and medium for detecting node association |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110519109B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111756577B (en) * | 2020-06-23 | 2022-08-02 | 中国工商银行股份有限公司 | Fault detection method, apparatus, detection device and medium executed by detection device |
CN112242938B (en) * | 2020-10-14 | 2022-08-19 | 亚信科技(中国)有限公司 | Detection method, device, electronic equipment and computer readable storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109617740A (en) * | 2018-12-28 | 2019-04-12 | 广东亿迅科技有限公司 | A kind of method and device that application failure quickly positions |
CN109688758B (en) * | 2019-02-11 | 2022-04-12 | 南方科技大学 | Method, apparatus, electronic device, and medium for determining data center failure |
-
2019
- 2019-09-26 CN CN201910916337.XA patent/CN110519109B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN110519109A (en) | 2019-11-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10742483B2 (en) | Network fault originator identification for virtual network infrastructure | |
US10484265B2 (en) | Dynamic update of virtual network topology | |
US10860311B2 (en) | Method and apparatus for drift management in clustered environments | |
Hmaity et al. | Protection strategies for virtual network functions placement and service chains provisioning | |
US9929930B2 (en) | Reducing an amount of captured network traffic data to analyze | |
CN107635010B (en) | Traffic scheduling method and device, computer readable storage medium and electronic equipment | |
CN111683139B (en) | Method and device for balancing load | |
US9537758B2 (en) | Dynamic redirection of network traffic within a system under test | |
US11025481B1 (en) | Network alert correlation | |
US20110099273A1 (en) | Monitoring apparatus, monitoring method, and a computer-readable recording medium storing a monitoring program | |
WO2023030417A1 (en) | Packet processing method and device, storage medium, and computer program product | |
CN110519109B (en) | Method, device, computing equipment and medium for detecting node association | |
CN110545277B (en) | Risk processing method and device applied to security system, computing equipment and medium | |
CN109088750B (en) | Container-based network situation awareness system design and deployment method | |
US10659289B2 (en) | System and method for event processing order guarantee | |
US11700568B2 (en) | Dynamic mapping of nodes responsible for monitoring traffic of an evolved packet core | |
US11405321B2 (en) | 5G filters for virtual network functions | |
CN113254245A (en) | Fault detection method and system for storage cluster | |
CN110278133B (en) | Checking method, device, computing equipment and medium executed by server | |
CN106937350B (en) | Routing method and system based on mobile terminal | |
CN111106974B (en) | Method and device for testing lossless network performance | |
CN109831385B (en) | Message processing method and device and electronic equipment | |
Tairaku et al. | Social data driven SDN network operation using northbound interface | |
CN112968975B (en) | Service request processing method and device | |
US20240179125A1 (en) | Service optimization in networks and cloud interconnects |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |