Abnormal server positioning method and device in business system, and storage medium
By constructing a reference system structure diagram of the business system and updating the node status, the problem of low abnormal server positioning efficiency in the existing technology is solved, fast and intuitive abnormal server positioning is achieved, and the operating efficiency of the business system is improved.
Patent Information
- Application Number
- CN202410590847.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-13
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-05-13
AI Technical Summary
In the existing technology, the efficiency of locating abnormal servers in business systems is low, mainly because a large number of servers need to detect operating status and data calling relationships in real time, resulting in a waste of time and resources, and operation and maintenance personnel need to understand the complex data calling relationships between servers.
By extracting data interaction relationships between servers from the interaction data collection of the target business system, a reference system structure diagram is constructed, and node status is updated based on performance parameters to quickly locate abnormal servers.
It realizes the rapid and intuitive positioning of abnormal servers in the business system, improves the positioning efficiency, and reduces the operating costs and time consumption of operation and maintenance personnel.
Smart Images

Figure CN118550792A
Abstract
Description
Technical Field
[0001] The present application relates to the field of financial technology, and more specifically, to a method and device for locating abnormal servers in a business system, and a storage medium. Background Art
[0002] The normal operation of current business systems usually depends on multiple servers. As the business operations of business systems become increasingly complex, the number of servers that business systems rely on becomes increasingly large, and the data call relationships between the large number of servers are extremely complex, which brings challenges to the abnormal location of business systems.
[0003] Currently, the location of abnormal servers in business systems usually relies on operation and maintenance personnel to detect the operating status of each server in the business system in real time, and locate abnormal servers based on the detected operating status of each server and the data call relationship between the servers. On the one hand, it takes a lot of time to detect the operating status of a large number of servers, and many servers are usually normal. Detecting this part of the servers will waste a lot of time and resources. On the other hand, correctly locating abnormal servers depends on the operation and maintenance personnel to have a good understanding of the data call relationship between the large number of servers in the business system. Based on the above two aspects, the efficiency of locating abnormal servers in current business systems is low.
[0004] Currently, no effective solution has been proposed for the problem of low efficiency in locating abnormal servers in business systems in related technologies. Summary of the invention
[0005] The main purpose of the present application is to provide a method and device for locating an abnormal server in a business system, and a storage medium, so as to solve the problem of low efficiency in locating abnormal servers in a business system in related technologies.
[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for locating an abnormal server in a business system is provided. The method comprises:
[0007] Extracting the data interaction relationship between the N servers included in the target business system from the interaction data set corresponding to the target business system, wherein the target business system is a business system that allows the operation of the target business, the operation of the target business depends on the normal operation of the N servers in the target business system, the interaction data set includes the interaction data between the N servers, and the interaction data is transmitted between the servers having the data interaction relationship, and N is an integer greater than 2;
[0008] Constructing a reference system structure diagram for the target business system according to the data interaction relationship, wherein the reference system structure diagram includes N system nodes having a connection relationship, each of the N system nodes is used to represent one of the N servers, and the connection relationship between the system nodes is used to represent that the corresponding servers have the data interaction relationship;
[0009] The current performance parameters of each of the N servers are collected, and the node status of each of the system nodes in the reference system structure diagram is updated according to the performance parameters to obtain a target system structure diagram, wherein the node status is used to indicate the current operating status of the server represented by the corresponding system node, and the target system structure diagram is used to locate the server in an abnormal operating state in the target business system.
[0010] Optionally, extracting the data interaction relationship between N servers included in the target business system from the interaction data set corresponding to the target business system includes:
[0011] Extracting the source address and the destination address corresponding to each interactive data in the interactive data set, and obtaining M groups of the source addresses and the destination addresses having a corresponding relationship, wherein the source address is a sending server address of a sending server that sends the corresponding interactive data, and the destination address is a receiving server address of a receiving server that receives the corresponding interactive data, and M is an integer greater than or equal to N-1;
[0012] The sending server and the receiving server corresponding to each group of the source addresses and the destination addresses with a corresponding relationship in the M groups of the source addresses and the destination addresses with a corresponding relationship are determined to have the data interaction relationship, so as to obtain the data interaction relationship between N servers.
[0013] Optionally, before extracting the data interaction relationship between N servers included in the target business system from the interaction data set corresponding to the target business system, the method further includes:
[0014] Generate target configuration information, wherein the target configuration information is used to indicate data features of the interaction data that need to be captured;
[0015] Using the target configuration information to configure an initial data crawler corresponding to the target business system to obtain a target data crawler, wherein the target data crawler is used to crawl data in the target business system according to the data features indicated by the target configuration information;
[0016] The target data crawling tool is called to crawl the data in the target business system to obtain the interaction data set.
[0017] Optionally, constructing a reference system structure diagram for the target business system according to the data interaction relationship includes:
[0018] Generate the system node for each of the N servers to obtain an initial system structure diagram;
[0019] Identify a target server type of each of the N servers of the target business system;
[0020] Adjust the distribution positions of the N system nodes in the initial system structure diagram according to the target server type of each server to obtain an alternative system structure diagram, wherein the system nodes corresponding to the servers of the same target server type in the alternative system structure diagram are distributed in the same area;
[0021] The system nodes having the data interaction relationship are located from the N system nodes in the candidate system structure diagram, and the connection relationship is established between the system nodes having the data interaction relationship to obtain the reference system structure diagram.
[0022] Optionally, the identifying a target server type of each of the N servers of the target business system includes:
[0023] Obtaining target port information of each of the N servers;
[0024] The target server type of each of the N servers is matched from the port information and server types having a corresponding relationship.
[0025] Optionally, collecting the current performance parameters of each of the N servers includes:
[0026] The call performance parameter capture tool collects the current processor parameters, memory parameters, bandwidth parameters and disk parameters of each of the N servers, and queries the call parameters of each of the N servers from the call management platform corresponding to the target business system, wherein the processor parameters are used to indicate the current processor usage of the corresponding server, the memory parameters are used to indicate the current memory usage of the corresponding server, the bandwidth parameters are used to indicate the current bandwidth usage of the corresponding server, the disk parameters are used to indicate the current disk usage of the corresponding server, and the call parameters are used to indicate the success rate of the service call of the corresponding server. The call management platform records the success rate of the current service call of each server in the target business system;
[0027] The current processor parameter, the memory parameter, the bandwidth parameter, the disk parameter and the call parameter of each of the servers are determined as the current performance parameters of each of the corresponding servers.
[0028] Optionally, updating the node status of each of the system nodes in the reference system structure diagram according to the performance parameter to obtain the target system structure diagram includes:
[0029] The node state of the i-th system node in the reference system structure diagram is updated by the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N:
[0030] Generate a current i-th expected performance parameter according to T historical performance parameters corresponding to the i-th system node, wherein the historical performance parameter is the performance parameter of the i-th server represented by the i-th system node during the historical operation process, and the expected performance parameter is the average of the T historical performance parameters, where T is an integer greater than 1;
[0031] When the absolute value of the difference between the current performance parameter of the ith server and the ith expected performance parameter is less than a target threshold, updating the node state of the ith system node to a normal node state, wherein the normal node state is used to indicate that the current operating state of the ith server represented by the ith system node is a normal operating state;
[0032] When the absolute value of the difference between the current performance parameter of the i-th server and the i-th expected performance parameter is greater than or equal to the target threshold, the node state of the i-th system node is updated to an abnormal node state, wherein the abnormal node state is used to indicate that the current operating state of the i-th server represented by the i-th system node is the abnormal operating state.
[0033] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a device for locating an abnormal server in a business system is provided. The device comprises:
[0034] An extraction module is used to extract the data interaction relationship between N servers included in the target business system from the interaction data set corresponding to the target business system, wherein the target business system is a business system that allows the operation of the target business, and the operation of the target business depends on the normal operation of the N servers in the target business system, the interaction data set includes the interaction data between the N servers, and the interaction data is transmitted between the servers having the data interaction relationship, and N is an integer greater than 2;
[0035] A construction module, configured to construct a reference system structure diagram for the target business system according to the data interaction relationship, wherein the reference system structure diagram includes N system nodes having a connection relationship, each of the N system nodes is used to represent one of the N servers, and the connection relationship between the system nodes is used to represent that the corresponding servers have the data interaction relationship;
[0036] An update module is used to collect the current performance parameters of each of the N servers, and update the node status of each system node in the reference system structure diagram according to the performance parameters to obtain a target system structure diagram, wherein the node status is used to indicate the current operating status of the server represented by the corresponding system node, and the target system structure diagram is used to locate the server in an abnormal operating state in the target business system.
[0037] Through the present application, the following steps are adopted: extracting the data interaction relationship between the N servers included in the target business system from the interaction data set corresponding to the target business system, wherein the target business system is a business system that allows the operation of the target business, and the operation of the target business depends on the normal operation of the N servers in the target business system, and the interaction data set includes the interaction data between the N servers, and there is a transmission of interaction data between the servers with data interaction relationship, and N is an integer greater than 2; constructing a reference system structure diagram for the target business system according to the data interaction relationship, wherein the reference system structure diagram includes N system nodes with a connection relationship, each of the N system nodes is used to represent a server among the N servers, and the connection relationship between the system nodes is used to indicate that the corresponding servers have a data interaction relationship; collecting N servers The current performance parameters of each server in the reference system structure diagram are obtained, and the node status of each system node in the reference system structure diagram is updated according to the performance parameters to obtain the target system structure diagram, wherein the node status is used to indicate the current operating status of the server represented by the corresponding system node, and the target system structure diagram is used to locate the server in the abnormal operating status in the target business system. The data interaction relationship between N servers is automatically obtained according to the interactive data set in the target business system through the above method, thereby constructing the target system structure diagram of the target business system, and each system node in the target system structure diagram also corresponds to a node status. According to the target system structure diagram, the current operating status of each server can be understood, and the abnormal server in the target business system can be quickly and intuitively located, which solves the problem of low efficiency in locating abnormal servers in the business system in the related technology. Thus, the technical effect of improving the efficiency of locating abnormal servers in the business system is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0039] Figure 1 It is a schematic diagram of a CMDB configuration management database interface provided according to an embodiment of the present application;
[0040] Figure 2 is a flowchart of a method for locating an abnormal server in a business system provided in an embodiment of the present application;
[0041] Figure 3 It is a schematic diagram of a process for locating an abnormal server in a business system provided in an embodiment of the present application;
[0042] Figure 4 It is a schematic diagram of an integrated operation and maintenance view of a business system provided according to an embodiment of the present application;
[0043] Figure 5 is a schematic diagram of a reference system structure diagram of a business system provided according to an embodiment of the present application;
[0044] Figure 6 is a schematic diagram of an abnormal server locating device in a business system according to an embodiment of the present application;
[0045] Figure 7 is a schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0046] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0047] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0048] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0049] In order to better understand the creativity of the solution proposed in this application, before starting the description of the specific embodiment, the related technology is first explained:
[0050] In the related technology, the operation and maintenance of the current business system mainly monitors the server information and other usage of the server to grasp the health of the business system. The relevant server information is mainly obtained from the CMDB configuration management database.
[0051] Figure 1 is a schematic diagram of a CMDB configuration management database interface provided according to an embodiment of the present application, such as Figure 1As shown, after the operation and maintenance personnel select the server IP of the server to be queried on the CMDB configuration management database interface, they can view the corresponding server information. In the related art, this method mainly has two problems:
[0052] First, it is necessary to ensure the accuracy of the information maintained in the CMDB. However, business systems usually adopt a distributed system. Under the elastic and scalable server supply model, the server information in the business system will change from time to time, and the information in the CMDB usually requires manual maintenance, and there may be a situation where the information is not updated in a timely manner.
[0053] Second, operation and maintenance personnel need to accurately understand the physical structure and connection relationship between servers in the business system, and understand the operating status of the entire system by checking the server information (performance capacity data) of each server one by one. Especially when troubleshooting, there is a lack of a global view to display the performance capacity data of each application server, which affects the location and tracking of abnormal servers.
[0054] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. For example, an interface is set between this system and the relevant user or organization. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.
[0055] The collected information involved in this disclosure is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0056] The present invention is described below in conjunction with preferred implementation steps. Figure 2 is a flowchart of a method for locating an abnormal server in a business system provided in an embodiment of the present application, such as Figure 2 As shown, the method comprises the following steps:
[0057] Step S202, extracting the data interaction relationship between the N servers included in the target business system from the interaction data set corresponding to the target business system, wherein the target business system is a business system that allows the operation of the target business, and the operation of the target business depends on the normal operation of the N servers in the target business system, the interaction data set includes the interaction data between the N servers, and the interaction data is transmitted between the servers having the data interaction relationship, and N is an integer greater than 2;
[0058] Step S204: constructing a reference system structure diagram for the target business system according to the data interaction relationship, wherein the reference system structure diagram includes N system nodes having a connection relationship, each of the N system nodes is used to represent one of the N servers, and the connection relationship between the system nodes is used to represent that the corresponding servers have the data interaction relationship;
[0059] Step S206, collect the current performance parameters of each of the N servers, and update the node status of each of the system nodes in the reference system structure diagram according to the performance parameters to obtain the target system structure diagram, wherein the node status is used to indicate the current operating status of the server represented by the corresponding system node, and the target system structure diagram is used to locate the server in the target business system that is in an abnormal operating state.
[0060] Through the above steps, the data interaction relationship between the N servers included in the target business system is extracted from the interaction data set corresponding to the target business system, wherein the target business system is a business system that allows the operation of the target business, and the operation of the target business depends on the normal operation of the N servers in the target business system. The interaction data set includes the interaction data between the N servers, and there is a transmission of interaction data between the servers with data interaction relationship, and N is an integer greater than 2; a reference system structure diagram is constructed for the target business system according to the data interaction relationship, wherein the reference system structure diagram includes N system nodes with a connection relationship, each of the N system nodes is used to represent a server among the N servers, and the connection relationship between the system nodes is used to indicate that the corresponding servers have a data interaction relationship; each of the N servers is collected The current performance parameters of the server are obtained, and the node status of each system node in the reference system structure diagram is updated according to the performance parameters to obtain the target system structure diagram, wherein the node status is used to indicate the current operating status of the server represented by the corresponding system node, and the target system structure diagram is used to locate the server in the abnormal operating status in the target business system. The data interaction relationship between N servers is automatically obtained according to the interactive data set in the target business system through the above method, so as to construct the target system structure diagram of the target business system, and each system node in the target system structure diagram also corresponds to a node status. According to the target system structure diagram, the current operating status of each server can be understood, and the abnormal server in the target business system can be quickly and intuitively located, which solves the problem of low efficiency in locating abnormal servers in the business system in the related technology. Thus, the technical effect of improving the efficiency of locating abnormal servers in the business system is achieved.
[0061] Figure 3 is a schematic diagram of an abnormal server location process in a business system provided according to an embodiment of the present application, such as Figure 3 As shown in the figure, the abnormal server location process in the business system includes the following stages:
[0062] 1) Network traffic acquisition: Use packet capture tools such as Wireshark to obtain the network traffic and call relationships between N servers as the basis for building subsequent data interaction relationships; the specific steps are:
[0063] 1-1) Perform necessary configuration and settings on the packet capture tool, including monitoring network interface, setting filters to determine the type of data packets to be captured, etc.
[0064] 1-2) Packet (network traffic) capture: When a packet arrives, the packet capture tool captures it and stores it in a file. These packets can be any type of packet in the TCP / IP protocol family, such as HTTP, FTP, SMTP, DNS, etc.
[0065] 2) Topology construction: Determine the type of server by checking the openness of the server's port, such as a server with port 1521 being a Mysql database server; determine the data interaction relationship between servers by checking the access status of network traffic, and build the entire physical topology of N servers. The detailed process is as follows:
[0066] 2-1) First, determine the role of the server based on the recorded IP and port data (port number) and label it accordingly, such as data storage server, application server, etc.;
[0067] 2-2) After completing the server label setting, analyze the source IP and source port information, destination IP and destination port information of the saved network traffic, obtain the data interaction relationship between N servers, and then draw a network topology diagram of N servers.
[0068] 3) Performance capacity acquisition: By deploying a performance acquisition agent tool, the performance capacity data of the server, such as CPU, memory, bandwidth, and disk usage, is captured. The agent software runs in the background without the intervention of operation and maintenance personnel. It reads the above hardware information on the server at a regular interval and uploads it to the centralized server to realize the collection of performance data of each server at different time sequences; the service call success rate is obtained by calling the interface of the service management platform, and the data is also uploaded to the centralized server to realize automated service call success rate data capture.
[0069] 4) Display integrated operation and maintenance view: Figure 4 is a schematic diagram of an integrated operation and maintenance view of a business system provided according to an embodiment of the present application, such as Figure 4 As shown, after a network topology diagram of N servers is constructed, corresponding performance capacity data is displayed for each server on the network topology diagram.
[0070] 5) Intelligent baseline abnormality determination: Based on the historical operating performance data of each server, a performance index baseline is constructed for the system node corresponding to each server. If the current performance data exceeds the performance index baseline range, it is identified as an abnormal node. The specific method is to read the performance capacity data of each server at each time point stored in the centralized server in step 3, and determine a reasonable baseline range through analysis and comparison. For example, the performance index baseline range indicates that the normal usage range of the server CPU historical usage is 40%-60%. If the current CPU usage is 70%, the system node corresponding to the server is determined to be in an abnormal node state.
[0071] 6) Abnormal node marking: System nodes with abnormal node status are marked in red in the integrated operation and maintenance view, and the affected nodes are marked in blue to accurately assess the explosion radius.
[0072] 7 Emergency handling: When an abnormality occurs in a system node, emergency operations can be directly implemented through the restart and isolation buttons to improve the timeliness of emergency handling. If the CPU and memory usage exceed the normal baseline range, a restart operation can be implemented; when the service response time exceeds a specific threshold, the server will be isolated and no longer provide services to the outside world. If a system node represents a faulty server that has a redundant server (a server with the same function as the faulty server), the faulty server will be isolated. If a system node represents a faulty server that has no redundant server, the faulty server will be restarted.
[0073] In the technical solution provided in the above step S102, the target business system may be, but not limited to, an application system, and the interactive data set may be, but not limited to, network traffic transmitted between N servers in the application system. The data interaction relationship may be, but not limited to, used to indicate that there is transmission and interaction of network traffic between two corresponding servers, and the data interaction relationship may represent the calling relationship between N servers in the target business system.
[0074] In an exemplary embodiment, the data interaction relationship between the N servers included in the target business system can be extracted from the interaction data set corresponding to the target business system in the following manner, but not limited to: extract the source address and the destination address corresponding to each interaction data in the interaction data set, and obtain M groups of the source addresses and the destination addresses with corresponding relationships, wherein the source address is the sending server address of the sending server that sends the corresponding interaction data, and the destination address is the receiving server address of the receiving server that receives the corresponding interaction data, and M is an integer greater than or equal to N-1; determine the sending server and the receiving server corresponding to each group of the source address and the destination address with corresponding relationships in the M groups of the source addresses and the destination addresses as having the data interaction relationship, and obtain the data interaction relationship between the N servers.
[0075] Optionally, in this embodiment, the source address may be, but is not limited to, the source IP address of the interactive data, and the destination address may be, but is not limited to, the destination IP address of the interactive data.
[0076] In an exemplary embodiment, before extracting the data interaction relationship between N servers included in the target business system from the interaction data set corresponding to the target business system, the following methods may be included but are not limited to: generating target configuration information, wherein the target configuration information is used to indicate data features of the interaction data that need to be captured; using the target configuration information to configure an initial data crawler corresponding to the target business system to obtain a target data crawler, wherein the target data crawler is used to crawl data in the target business system according to the data features indicated by the target configuration information; calling the target data crawler to crawl data in the target business system to obtain the interaction data set.
[0077] Optionally, in this embodiment, the target configuration information is used to indicate data features of the interactive data that need to be captured. For example, the target configuration information is used to indicate that any type of packet in the TCP / IP protocol family needs to be captured, such as HTTP, FTP, SMTP, DNS, etc.
[0078] Optionally, in this embodiment, the target data capture tool may be, but is not limited to, the above-mentioned packet capture tool such as Wireshark.
[0079] Optionally, in this embodiment, the target configuration information is used to configure the initial data crawler corresponding to the target business system to obtain the target data crawler, which may be but is not limited to using the target configuration information to set a filter in the initial data crawler. The filter may determine the data characteristics of the crawled data.
[0080] In the technical solution provided in the above step S104, Figure 5 is a schematic diagram of a reference system structure diagram of a business system provided according to an embodiment of the present application, such as Figure 5 As shown, taking N as 12 as an example, the reference system structure diagram includes 12 system nodes, such as dble 1 (PaaS), business:6-8 (PaaS), center 1 (PaaS), and business-gray:2-4 (PaaS), etc. In the reference system structure diagram, each system node represents a server, and the connection relationship between the system nodes represents the data interaction relationship between the servers.
[0081] In an exemplary embodiment, a reference system structure diagram can be constructed for the target business system according to the data interaction relationship in the following manner, but is not limited to: generating the system node for each of the N servers to obtain an initial system structure diagram; identifying the target server type of each of the N servers of the target business system; adjusting the distribution positions of the N system nodes in the initial system structure diagram according to the target server type of each server to obtain an alternative system structure diagram, wherein the system nodes corresponding to the servers of the same target server type in the alternative system structure diagram are distributed in the same area; locating the system nodes having the data interaction relationship from the N system nodes in the alternative system structure diagram, and constructing the connection relationship between the system nodes having the data interaction relationship to obtain the reference system structure diagram.
[0082] Optionally, in this embodiment, the distribution positions of the N system nodes in the initial system structure diagram are adjusted according to the target server type of each server, such as Figure 5 As shown in the figure, for example, dble 1 (PaaS) and center 1 (PaaS) are both database servers, so dble 1 (PaaS) and center 1 (PaaS) can be distributed in the same row (same level). Specific application servers, such as business:6-8 (PaaS) and business-gray:2-4 (PaaS), can be distributed in the same row.
[0083] In an exemplary embodiment, the target server type of each of the N servers of the target business system can be identified in the following manner, but is not limited to: obtaining the target port information of each of the N servers; and matching the target server type of each of the N servers from the port information and server types having a corresponding relationship.
[0084] Optionally, in this embodiment, the target port information may be, but is not limited to, the above port data (port number), such as a server with a port number of 1521 being a Mysql database server. In this way, the target server type of the server may be obtained.
[0085] In the technical solution provided in the above step S106, the target system structure diagram may be, but is not limited to, the above integrated operation and maintenance view.
[0086] In an exemplary embodiment, the current performance parameters of each of the N servers can be collected in the following manner, but is not limited to: calling a performance parameter crawler tool to collect the current processor parameters, memory parameters, bandwidth parameters and disk parameters of each of the N servers, and querying the call parameters of each of the N servers from the call management platform corresponding to the target business system, wherein the processor parameters are used to indicate the current processor usage of the corresponding server, the memory parameters are used to indicate the current memory usage of the corresponding server, the bandwidth parameters are used to indicate the current bandwidth usage of the corresponding server, the disk parameters are used to indicate the current disk usage of the corresponding server, and the call parameters are used to indicate the success rate of the service call of the corresponding server, and the call management platform records the success rate of the current service call of each server in the target business system; the current processor parameters, memory parameters, bandwidth parameters, disk parameters and call parameters of each server are determined as the current performance parameters of each corresponding server.
[0087] Optionally, in this embodiment, the performance parameter capture tool may be, but is not limited to, the above-mentioned agent tool. Calling the performance parameter capture tool to collect the current processor parameters, memory parameters, bandwidth parameters, and disk parameters of each of the N servers may be, but is not limited to, capturing the performance capacity data of the server, such as CPU, memory, bandwidth, and disk usage, by deploying a performance acquisition agent tool.
[0088] Optionally, in this embodiment, the call management platform may be, but is not limited to, the above-mentioned call service management platform.
[0089] In an exemplary embodiment, the node state of each system node in the reference system structure diagram may be updated according to the performance parameters in the following manner, but is not limited to, to obtain the target system structure diagram: the node state of the ith system node in the reference system structure diagram is updated by the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N: the current ith expected performance parameter is generated according to T historical performance parameters corresponding to the ith system node, wherein the historical performance parameter is the performance parameter of the ith server represented by the ith system node during the historical operation process, and the expected performance parameter is the average of the T historical performance parameters, where T is an integer greater than 1; When the absolute value of the difference between the current performance parameter of the server and the i-th expected performance parameter is less than the target threshold, the node state of the i-th system node is updated to a normal node state, wherein the normal node state is used to indicate that the current operating state of the i-th server represented by the i-th system node is a normal operating state; when the absolute value of the difference between the current performance parameter of the i-th server and the i-th expected performance parameter is greater than or equal to the target threshold, the node state of the i-th system node is updated to an abnormal node state, wherein the abnormal node state is used to indicate that the current operating state of the i-th server represented by the i-th system node is the abnormal operating state.
[0090] Optionally, in this embodiment, after updating the node status of each system node in the reference system structure diagram according to the performance parameters to obtain the target system structure diagram, the method also includes: locating the target system node with abnormal node status from the target system structure diagram, and determining the target server corresponding to the target system node as the faulty server.
[0091] Optionally, in this embodiment, after updating the node state of each of the system nodes in the reference system structure diagram according to the performance parameter to obtain the target system structure diagram, the method further includes:
[0092] Adding a first mark to the system node in the target system structure diagram that is in the normal node state, wherein the system node to which the first mark is added indicates that the current running state of the corresponding server is a normal running state;
[0093] Adding a second mark to the system node in the target system structure diagram that is in the abnormal operation state, wherein the system node to which the second mark is added indicates that the current operation state of the corresponding server is the abnormal operation state;
[0094] A third mark is added to the system node adjacent to the system node in the abnormal operating state, wherein the system node to which the third mark is added indicates that the probability that the current operating state of the corresponding server is affected by the server in the abnormal operating state is greater than the target probability.
[0095] Optionally, in this embodiment, the expected performance parameter may be, but is not limited to, the above performance indicator baseline. The expected performance parameter-target threshold may be, but is not limited to, the lower limit of the baseline range, and the expected performance parameter+target threshold may be, but is not limited to, the upper limit of the baseline range.
[0096] It should be noted that the method for locating abnormal servers in the business system proposed in this application automatically constructs a complete application system network topology (target system structure diagram) through an interactive data set, and realizes automatic perception of the system nodes and structures deployed in the target business system. On this basis, the performance data (performance parameters) of the server are automatically captured and displayed in the above-mentioned target system structure diagram (the current performance parameters and node status of the corresponding server can be viewed by clicking the corresponding system node in the target system structure diagram), and the abnormal nodes are marked through intelligent baselines. The operation and maintenance personnel can intuitively understand the operation status of the entire system and accurately understand the performance capacity of the system.
[0097] The abnormal server location method in the business system proposed in this application can realize architecture perception, realize the automatic construction of network topology, and reduce the quality requirements for static operation and maintenance information; it can display the full node status of the application in an integrated manner, reducing the operating costs of operation and maintenance personnel; it can realize the visual management of production abnormal points and their explosion radius through intelligent baselines, and improve the problem location ability. Emergency operations can be directly implemented through the integrated page to improve the timeliness of problem solving.
[0098] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0099] The embodiment of the present application also provides an abnormal server location device in a business system. It should be noted that the abnormal server location device in the business system of the embodiment of the present application can be used to execute the abnormal server location method for the business system provided by the embodiment of the present application. The abnormal server location device in the business system provided by the embodiment of the present application is introduced below.
[0100] Figure 6 Schematic diagram of an abnormal server location device in a business system according to an embodiment of the present application. Figure 6 As shown, the device comprises:
[0101] The extraction module 602 is used to extract the data interaction relationship between the N servers included in the target business system from the interaction data set corresponding to the target business system, wherein the target business system is a business system that allows the operation of the target business, and the operation of the target business depends on the normal operation of the N servers in the target business system, the interaction data set includes the interaction data between the N servers, and the interaction data is transmitted between the servers having the data interaction relationship, and N is an integer greater than 2;
[0102] A construction module 604 is used to construct a reference system structure diagram for the target business system according to the data interaction relationship, wherein the reference system structure diagram includes N system nodes with a connection relationship, each of the N system nodes is used to represent one of the N servers, and the connection relationship between the system nodes is used to represent that the corresponding servers have the data interaction relationship;
[0103] The update module 606 is used to collect the current performance parameters of each of the N servers, and update the node status of each system node in the reference system structure diagram according to the performance parameters to obtain the target system structure diagram, wherein the node status is used to indicate the current operating status of the server represented by the corresponding system node, and the target system structure diagram is used to locate the server in the target business system that is in an abnormal operating state.
[0104] Optionally, in the abnormal server locating device in the business system provided in the embodiment of the present application, the extraction module includes:
[0105] an extracting unit, configured to extract a source address and a destination address corresponding to each interactive data in the interactive data set, and obtain M groups of the source addresses and the destination addresses having a corresponding relationship, wherein the source address is a sending server address of a sending server that sends the corresponding interactive data, and the destination address is a receiving server address of a receiving server that receives the corresponding interactive data, and M is an integer greater than or equal to N-1;
[0106] The first determination unit is used to determine that the sending server and the receiving server corresponding to each group of the source addresses and the destination addresses with a corresponding relationship in the M groups of the source addresses and the destination addresses with a corresponding relationship have the data interaction relationship, and obtain the data interaction relationship between N servers.
[0107] Optionally, in the abnormal server location device in the business system provided in the embodiment of the present application, the device further includes:
[0108] A generating module, used for generating target configuration information before extracting the data interaction relationship between the N servers included in the target business system from the interaction data set corresponding to the target business system, wherein the target configuration information is used to indicate the data features of the interaction data to be captured;
[0109] A configuration module, configured to configure an initial data crawler corresponding to the target business system using the target configuration information to obtain a target data crawler, wherein the target data crawler is used to crawl data in the target business system according to the data features indicated by the target configuration information;
[0110] The calling module is used to call the target data crawling tool to crawl the data in the target business system to obtain the interaction data set.
[0111] Optionally, in the abnormal server location device in the business system provided in the embodiment of the present application, the construction module includes:
[0112] A generating unit, configured to generate the system node for each of the N servers to obtain an initial system structure diagram;
[0113] An identification unit, used to identify a target server type of each of the N servers of the target business system;
[0114] an adjusting unit, configured to adjust the distribution positions of the N system nodes in the initial system structure diagram according to the target server type of each server, to obtain an alternative system structure diagram, wherein the system nodes corresponding to the servers of the same target server type in the alternative system structure diagram are distributed in the same area;
[0115] A positioning unit is used to locate the system nodes having the data interaction relationship from the N system nodes in the candidate system structure diagram, and to establish the connection relationship between the system nodes having the data interaction relationship to obtain the reference system structure diagram.
[0116] Optionally, in the abnormal server locating device in the business system provided in the embodiment of the present application, the identification unit is further used to:
[0117] Obtaining target port information of each of the N servers;
[0118] The target server type of each of the N servers is matched from the port information and server types having a corresponding relationship.
[0119] Optionally, in the abnormal server location device in the business system provided in the embodiment of the present application, the update module includes:
[0120] A calling unit, used for calling a performance parameter capture tool to collect the current processor parameters, memory parameters, bandwidth parameters and disk parameters of each of the N servers, and querying the calling parameters of each of the N servers from the calling management platform corresponding to the target business system, wherein the processor parameters are used to indicate the current processor usage of the corresponding server, the memory parameters are used to indicate the current memory usage of the corresponding server, the bandwidth parameters are used to indicate the current bandwidth usage of the corresponding server, the disk parameters are used to indicate the current disk usage of the corresponding server, and the calling parameters are used to indicate the success rate of the service call of the corresponding server, and the calling management platform records the success rate of the current service call of each server in the target business system;
[0121] The second determining unit is used to determine the current processor parameter, the memory parameter, the bandwidth parameter, the disk parameter and the call parameter of each of the servers as the current performance parameter of each of the corresponding servers.
[0122] Optionally, in the abnormal server location device in the business system provided in the embodiment of the present application, the update module includes:
[0123] An updating unit is used to update the node state of the i-th system node in the reference system structure diagram through the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N:
[0124] Generate a current i-th expected performance parameter according to T historical performance parameters corresponding to the i-th system node, wherein the historical performance parameter is the performance parameter of the i-th server represented by the i-th system node during the historical operation process, and the expected performance parameter is the average of the T historical performance parameters, where T is an integer greater than 1;
[0125] When the absolute value of the difference between the current performance parameter of the ith server and the ith expected performance parameter is less than a target threshold, updating the node state of the ith system node to a normal node state, wherein the normal node state is used to indicate that the current operating state of the ith server represented by the ith system node is a normal operating state;
[0126] When the absolute value of the difference between the current performance parameter of the i-th server and the i-th expected performance parameter is greater than or equal to the target threshold, the node state of the i-th system node is updated to an abnormal node state, wherein the abnormal node state is used to indicate that the current operating state of the i-th server represented by the i-th system node is the abnormal operating state.
[0127] The abnormal server locating device in the business system includes a processor and a memory. The above units are stored in the memory as program units, and the processor executes the above program units stored in the memory to realize corresponding functions.
[0128] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the technical effect of improving the efficiency of locating abnormal servers in the business system can be achieved by adjusting kernel parameters.
[0129] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0130] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the method for locating an abnormal server in a business system is implemented.
[0131] An embodiment of the present invention provides a processor, which is used to run a program, wherein the program executes the abnormal server locating method in the business system when running.
[0132] Figure 7 is a schematic diagram of an electronic device according to an embodiment of the present application, such as Figure 7 As shown, an embodiment of the present invention provides an electronic device, the electronic device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program:
[0133] Extracting the data interaction relationship between the N servers included in the target business system from the interaction data set corresponding to the target business system, wherein the target business system is a business system that allows the operation of the target business, the operation of the target business depends on the normal operation of the N servers in the target business system, the interaction data set includes the interaction data between the N servers, and the interaction data is transmitted between the servers having the data interaction relationship, and N is an integer greater than 2;
[0134] Constructing a reference system structure diagram for the target business system according to the data interaction relationship, wherein the reference system structure diagram includes N system nodes having a connection relationship, each of the N system nodes is used to represent one of the N servers, and the connection relationship between the system nodes is used to represent that the corresponding servers have the data interaction relationship;
[0135] The current performance parameters of each of the N servers are collected, and the node status of each of the system nodes in the reference system structure diagram is updated according to the performance parameters to obtain a target system structure diagram, wherein the node status is used to indicate the current operating status of the server represented by the corresponding system node, and the target system structure diagram is used to locate the server in an abnormal operating state in the target business system.
[0136] Optionally, the processor may further implement the following steps when executing the program:
[0137] Extracting the source address and the destination address corresponding to each interactive data in the interactive data set, and obtaining M groups of the source addresses and the destination addresses having a corresponding relationship, wherein the source address is a sending server address of a sending server that sends the corresponding interactive data, and the destination address is a receiving server address of a receiving server that receives the corresponding interactive data, and M is an integer greater than or equal to N-1;
[0138] The sending server and the receiving server corresponding to each group of the source addresses and the destination addresses with a corresponding relationship in the M groups of the source addresses and the destination addresses with a corresponding relationship are determined to have the data interaction relationship, so as to obtain the data interaction relationship between N servers.
[0139] Optionally, the processor may further implement the following steps when executing the program:
[0140] Before extracting the data interaction relationship between the N servers included in the target business system from the interaction data set corresponding to the target business system, generating target configuration information, wherein the target configuration information is used to indicate data features of the interaction data to be captured;
[0141] Using the target configuration information to configure an initial data crawler corresponding to the target business system to obtain a target data crawler, wherein the target data crawler is used to crawl data in the target business system according to the data features indicated by the target configuration information;
[0142] The target data crawling tool is called to crawl the data in the target business system to obtain the interaction data set.
[0143] Optionally, the processor may further implement the following steps when executing the program:
[0144] Generate the system node for each of the N servers to obtain an initial system structure diagram;
[0145] Identify a target server type of each of the N servers of the target business system;
[0146] Adjust the distribution positions of the N system nodes in the initial system structure diagram according to the target server type of each server to obtain an alternative system structure diagram, wherein the system nodes corresponding to the servers of the same target server type in the alternative system structure diagram are distributed in the same area;
[0147] The system nodes having the data interaction relationship are located from the N system nodes in the candidate system structure diagram, and the connection relationship is established between the system nodes having the data interaction relationship to obtain the reference system structure diagram.
[0148] Optionally, the processor may further implement the following steps when executing the program:
[0149] Obtaining target port information of each of the N servers;
[0150] The target server type of each of the N servers is matched from the port information and server types having a corresponding relationship.
[0151] Optionally, the processor may further implement the following steps when executing the program:
[0152] The call performance parameter capture tool collects the current processor parameters, memory parameters, bandwidth parameters and disk parameters of each of the N servers, and queries the call parameters of each of the N servers from the call management platform corresponding to the target business system, wherein the processor parameters are used to indicate the current processor usage of the corresponding server, the memory parameters are used to indicate the current memory usage of the corresponding server, the bandwidth parameters are used to indicate the current bandwidth usage of the corresponding server, the disk parameters are used to indicate the current disk usage of the corresponding server, and the call parameters are used to indicate the success rate of the service call of the corresponding server. The call management platform records the success rate of the current service call of each server in the target business system;
[0153] The current processor parameter, the memory parameter, the bandwidth parameter, the disk parameter and the call parameter of each of the servers are determined as the current performance parameters of each of the corresponding servers.
[0154] Optionally, the processor may further implement the following steps when executing the program:
[0155] The node state of the i-th system node in the reference system structure diagram is updated by the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N:
[0156] Generate a current i-th expected performance parameter according to T historical performance parameters corresponding to the i-th system node, wherein the historical performance parameter is the performance parameter of the i-th server represented by the i-th system node during the historical operation process, and the expected performance parameter is the average of the T historical performance parameters, where T is an integer greater than 1;
[0157] When the absolute value of the difference between the current performance parameter of the ith server and the ith expected performance parameter is less than a target threshold, updating the node state of the ith system node to a normal node state, wherein the normal node state is used to indicate that the current operating state of the ith server represented by the ith system node is a normal operating state;
[0158] When the absolute value of the difference between the current performance parameter of the i-th server and the i-th expected performance parameter is greater than or equal to the target threshold, the node state of the i-th system node is updated to an abnormal node state, wherein the abnormal node state is used to indicate that the current operating state of the i-th server represented by the i-th system node is the abnormal operating state.
[0159] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0160] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing the following method steps:
[0161] Extracting the data interaction relationship between the N servers included in the target business system from the interaction data set corresponding to the target business system, wherein the target business system is a business system that allows the operation of the target business, the operation of the target business depends on the normal operation of the N servers in the target business system, the interaction data set includes the interaction data between the N servers, and the interaction data is transmitted between the servers having the data interaction relationship, and N is an integer greater than 2;
[0162] Constructing a reference system structure diagram for the target business system according to the data interaction relationship, wherein the reference system structure diagram includes N system nodes having a connection relationship, each of the N system nodes is used to represent one of the N servers, and the connection relationship between the system nodes is used to represent that the corresponding servers have the data interaction relationship;
[0163] The current performance parameters of each of the N servers are collected, and the node status of each of the system nodes in the reference system structure diagram is updated according to the performance parameters to obtain a target system structure diagram, wherein the node status is used to indicate the current operating status of the server represented by the corresponding system node, and the target system structure diagram is used to locate the server in an abnormal operating state in the target business system.
[0164] Optionally, the above computer program product, when executed on a data processing device, is suitable for executing a program for initializing the following method steps:
[0165] Extracting the source address and the destination address corresponding to each interactive data in the interactive data set, and obtaining M groups of the source addresses and the destination addresses having a corresponding relationship, wherein the source address is a sending server address of a sending server that sends the corresponding interactive data, and the destination address is a receiving server address of a receiving server that receives the corresponding interactive data, and M is an integer greater than or equal to N-1;
[0166] The sending server and the receiving server corresponding to each group of the source addresses and the destination addresses with a corresponding relationship in the M groups of the source addresses and the destination addresses with a corresponding relationship are determined to have the data interaction relationship, so as to obtain the data interaction relationship between N servers.
[0167] Optionally, the above computer program product, when executed on a data processing device, is suitable for executing a program for initializing the following method steps:
[0168] Before extracting the data interaction relationship between the N servers included in the target business system from the interaction data set corresponding to the target business system, generating target configuration information, wherein the target configuration information is used to indicate data features of the interaction data to be captured;
[0169] Using the target configuration information to configure an initial data crawler corresponding to the target business system to obtain a target data crawler, wherein the target data crawler is used to crawl data in the target business system according to the data features indicated by the target configuration information;
[0170] The target data crawling tool is called to crawl the data in the target business system to obtain the interaction data set.
[0171] Optionally, the above computer program product, when executed on a data processing device, is suitable for executing a program for initializing the following method steps:
[0172] Generate the system node for each of the N servers to obtain an initial system structure diagram;
[0173] Identify a target server type of each of the N servers of the target business system;
[0174] Adjust the distribution positions of the N system nodes in the initial system structure diagram according to the target server type of each server to obtain an alternative system structure diagram, wherein the system nodes corresponding to the servers of the same target server type in the alternative system structure diagram are distributed in the same area;
[0175] The system nodes having the data interaction relationship are located from the N system nodes in the candidate system structure diagram, and the connection relationship is established between the system nodes having the data interaction relationship to obtain the reference system structure diagram.
[0176] Optionally, the above computer program product, when executed on a data processing device, is suitable for executing a program for initializing the following method steps:
[0177] Obtaining target port information of each of the N servers;
[0178] The target server type of each of the N servers is matched from the port information and server types having a corresponding relationship.
[0179] Optionally, the above computer program product, when executed on a data processing device, is suitable for executing a program for initializing the following method steps:
[0180] The call performance parameter capture tool collects the current processor parameters, memory parameters, bandwidth parameters and disk parameters of each of the N servers, and queries the call parameters of each of the N servers from the call management platform corresponding to the target business system, wherein the processor parameters are used to indicate the current processor usage of the corresponding server, the memory parameters are used to indicate the current memory usage of the corresponding server, the bandwidth parameters are used to indicate the current bandwidth usage of the corresponding server, the disk parameters are used to indicate the current disk usage of the corresponding server, and the call parameters are used to indicate the success rate of the service call of the corresponding server. The call management platform records the success rate of the current service call of each server in the target business system;
[0181] The current processor parameter, the memory parameter, the bandwidth parameter, the disk parameter and the call parameter of each of the servers are determined as the current performance parameters of each of the corresponding servers.
[0182] Optionally, the above computer program product, when executed on a data processing device, is suitable for executing a program for initializing the following method steps:
[0183] The node state of the i-th system node in the reference system structure diagram is updated by the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N:
[0184] Generate a current i-th expected performance parameter according to T historical performance parameters corresponding to the i-th system node, wherein the historical performance parameter is the performance parameter of the i-th server represented by the i-th system node during the historical operation process, and the expected performance parameter is the average of the T historical performance parameters, where T is an integer greater than 1;
[0185] When the absolute value of the difference between the current performance parameter of the ith server and the ith expected performance parameter is less than a target threshold, updating the node state of the ith system node to a normal node state, wherein the normal node state is used to indicate that the current operating state of the ith server represented by the ith system node is a normal operating state;
[0186] When the absolute value of the difference between the current performance parameter of the i-th server and the i-th expected performance parameter is greater than or equal to the target threshold, the node state of the i-th system node is updated to an abnormal node state, wherein the abnormal node state is used to indicate that the current operating state of the i-th server represented by the i-th system node is the abnormal operating state.
[0187] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0188] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0189] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0190] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0191] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0192] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0193] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0194] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0195] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0196] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for locating an abnormal server in a business system, characterized in that: include: Extracting the data interaction relationship between the N servers included in the target business system from the interaction data set corresponding to the target business system, wherein the target business system is a business system that allows the operation of the target business, the operation of the target business depends on the normal operation of the N servers in the target business system, the interaction data set includes the interaction data between the N servers, and the interaction data is transmitted between the servers having the data interaction relationship, and N is an integer greater than 2; Constructing a reference system structure diagram for the target business system according to the data interaction relationship, wherein the reference system structure diagram includes N system nodes having a connection relationship, each of the N system nodes is used to represent one of the N servers, and the connection relationship between the system nodes is used to represent that the corresponding servers have the data interaction relationship; The current performance parameters of each of the N servers are collected, and the node status of each of the system nodes in the reference system structure diagram is updated according to the performance parameters to obtain a target system structure diagram, wherein the node status is used to indicate the current operating status of the server represented by the corresponding system node, and the target system structure diagram is used to locate the server in an abnormal operating state in the target business system.
2. The method according to claim 1, characterized in that The step of extracting the data interaction relationship between N servers included in the target business system from the interaction data set corresponding to the target business system includes: Extracting the source address and the destination address corresponding to each interactive data in the interactive data set, and obtaining M groups of the source addresses and the destination addresses having a corresponding relationship, wherein the source address is a sending server address of a sending server that sends the corresponding interactive data, and the destination address is a receiving server address of a receiving server that receives the corresponding interactive data, and M is an integer greater than or equal to N-1; The sending server and the receiving server corresponding to each group of the source addresses and the destination addresses with a corresponding relationship in the M groups of the source addresses and the destination addresses with a corresponding relationship are determined to have the data interaction relationship, so as to obtain the data interaction relationship between N servers.
3. The method according to claim 1, characterized in that Before extracting the data interaction relationship between the N servers included in the target business system from the interaction data set corresponding to the target business system, the method further includes: Generate target configuration information, wherein the target configuration information is used to indicate data features of the interaction data that need to be captured; Using the target configuration information to configure an initial data crawler corresponding to the target business system to obtain a target data crawler, wherein the target data crawler is used to crawl data in the target business system according to the data features indicated by the target configuration information; The target data crawling tool is called to crawl the data in the target business system to obtain the interaction data set.
4. The method according to claim 1, characterized in that The step of constructing a reference system structure diagram for the target business system according to the data interaction relationship includes: Generate the system node for each of the N servers to obtain an initial system structure diagram; Identify a target server type of each of the N servers of the target business system; Adjust the distribution positions of the N system nodes in the initial system structure diagram according to the target server type of each server to obtain an alternative system structure diagram, wherein the system nodes corresponding to the servers of the same target server type in the alternative system structure diagram are distributed in the same area; The system nodes having the data interaction relationship are located from the N system nodes in the candidate system structure diagram, and the connection relationship is established between the system nodes having the data interaction relationship to obtain the reference system structure diagram.
5. The method according to claim 4, characterized in that The identifying the target server type of each of the N servers of the target business system includes: Obtaining target port information of each of the N servers; The target server type of each of the N servers is matched from the port information and server types having a corresponding relationship.
6. The method according to claim 1, characterized in that The collecting of the current performance parameters of each of the N servers includes: The call performance parameter capture tool collects the current processor parameters, memory parameters, bandwidth parameters and disk parameters of each of the N servers, and queries the call parameters of each of the N servers from the call management platform corresponding to the target business system, wherein the processor parameters are used to indicate the current processor usage of the corresponding server, the memory parameters are used to indicate the current memory usage of the corresponding server, the bandwidth parameters are used to indicate the current bandwidth usage of the corresponding server, the disk parameters are used to indicate the current disk usage of the corresponding server, and the call parameters are used to indicate the success rate of the service call of the corresponding server. The call management platform records the success rate of the current service call of each server in the target business system; The current processor parameter, the memory parameter, the bandwidth parameter, the disk parameter and the call parameter of each of the servers are determined as the current performance parameters of each of the corresponding servers.
7. The method according to claim 1, characterized in that The updating of the node status of each of the system nodes in the reference system structure diagram according to the performance parameter to obtain the target system structure diagram includes: The node state of the i-th system node in the reference system structure diagram is updated by the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to N: Generate a current i-th expected performance parameter according to T historical performance parameters corresponding to the i-th system node, wherein the historical performance parameter is the performance parameter of the i-th server represented by the i-th system node during the historical operation process, and the expected performance parameter is the average of the T historical performance parameters, where T is an integer greater than 1; When the absolute value of the difference between the current performance parameter of the ith server and the ith expected performance parameter is less than a target threshold, updating the node state of the ith system node to a normal node state, wherein the normal node state is used to indicate that the current operating state of the ith server represented by the ith system node is a normal operating state; When the absolute value of the difference between the current performance parameter of the i-th server and the i-th expected performance parameter is greater than or equal to the target threshold, the node state of the i-th system node is updated to an abnormal node state, wherein the abnormal node state is used to indicate that the current operating state of the i-th server represented by the i-th system node is the abnormal operating state.
8. A device for locating abnormal servers in a business system, characterized in that: include: An extraction module is used to extract the data interaction relationship between N servers included in the target business system from the interaction data set corresponding to the target business system, wherein the target business system is a business system that allows the operation of the target business, and the operation of the target business depends on the normal operation of the N servers in the target business system, the interaction data set includes the interaction data between the N servers, and the interaction data is transmitted between the servers having the data interaction relationship, and N is an integer greater than 2; A construction module, configured to construct a reference system structure diagram for the target business system according to the data interaction relationship, wherein the reference system structure diagram includes N system nodes having a connection relationship, each of the N system nodes is used to represent one of the N servers, and the connection relationship between the system nodes is used to represent that the corresponding servers have the data interaction relationship; An update module is used to collect the current performance parameters of each of the N servers, and update the node status of each system node in the reference system structure diagram according to the performance parameters to obtain a target system structure diagram, wherein the node status is used to indicate the current operating status of the server represented by the corresponding system node, and the target system structure diagram is used to locate the server in an abnormal operating state in the target business system.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.
Citation Information
Patent Citations
Business performance and safety monitoring method and device, storage medium and electronic equipment
CN111371623A
Business monitoring method and device based on graph data, equipment and storage medium
CN113536054A
Monitoring method of full-service scene link and related equipment
CN114968701A
Processing method and device of data management system, electronic equipment and storage medium
CN117493049A
Method and system for managing servers
WO2014090070A1
Cited By
Statistical method and device for port performance parameters, storage medium and program product
CN119276888A
