Abnormality analysis method and device, storage medium and electronic equipment

By acquiring the operational information of the target device and its interactive devices, and using predetermined rules to detect false anomalies, the problem of low efficiency and accuracy in fault diagnosis in existing technologies is solved, and more efficient fault diagnosis is achieved.

CN118916199APending Publication Date: 2024-11-08INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410977640.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

The efficiency and accuracy of fault diagnosis in existing technologies are low, mainly because they cannot effectively distinguish between real and false equipment malfunctions.

Method used

When an anomaly occurs in the target device, the system obtains the operational information of the target device and its interactive devices, uses predetermined rules to detect whether there is a process causing the anomaly, and determines whether the anomaly is a false anomaly.

Benefits of technology

It improves the efficiency and accuracy of troubleshooting, reduces errors caused by manually eliminating false anomalies, and shortens the troubleshooting time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916199A_ABST
    Figure CN118916199A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an exception analysis method and device, a storage medium and electronic equipment, the method is applied to a server, the server interacts with target equipment and first equipment through a predetermined interface, the first equipment is equipment with the capability of interacting with the target equipment, and the first equipment is equipment with the capability of interacting with the target equipment. The method comprises the steps of obtaining target operation information of a target device in a target time period when the target abnormality occurs and second operation information of a first device in the target time period when it is identified that target abnormality information used for identifying the target abnormality is recorded in first operation information of the target device; detecting whether a target process exists or not according to the target operation information and the second operation information; and under the condition that the target process is detected, determining that the target exception is a false exception.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and more specifically, to an abnormality analysis method, device, storage medium, and electronic device. Background Art

[0002] In the related art, when troubleshooting, testers often directly perform troubleshooting based on the abnormal information displayed on the pages of each device in the operating environment. Since the data used to troubleshoot the abnormal information only comes from the device that displays the abnormal information and it is impossible to eliminate the false abnormal information generated by the normal operation of the device, this will lead to low efficiency and accuracy in troubleshooting. Summary of the invention

[0003] The embodiments of the present application provide an abnormality analysis method, device, storage medium and electronic device to at least solve the problem of low troubleshooting efficiency and accuracy in the troubleshooting methods in the related art.

[0004] According to an embodiment of the present application, there is provided an exception analysis method, which is applied to a server, wherein the server interacts with a target device and a first device through a predetermined interface, wherein the first device is a device capable of interacting with the target device, and the method comprises: upon identifying that target exception information for identifying a target exception is recorded in the first operation information of the target device, obtaining target operation information of the target device within a target time period in which the target exception occurs and second operation information of the first device within the target time period, wherein the first device comprises other devices that are in the same target operation environment as the target device and interact with the target device within the target time period; detecting whether there is a target process based on the target operation information and the second operation information, wherein the target process is a process that will cause the target exception to occur in the target device when the target device is operating normally or when operating normally in the first device; and determining that the target exception is a false exception when the target process is detected.

[0005] In an exemplary embodiment, after detecting whether a target process exists based on the target operation information and the second operation information, the method further includes: if the target process is not detected, obtaining third operation information of the target device and fourth operation information of the first device within the current detection period; and storing the third operation information, the fourth operation information, the target operation information and the second operation information under the target path.

[0006] In an exemplary embodiment, before obtaining the target operation information of the target device within the target time period in which the target exception occurs and the second operation information of the first device within the target time period, the method further includes: receiving fifth operation information sent by each second device included in a plurality of second devices, wherein the plurality of second devices are devices in the target operation environment, the plurality of second devices include the target device and the first device, and the fifth operation information of different second devices is not exactly the same; performing the following operations on the fifth operation information of each second device: merging the first exception information of the repeated first exceptions recorded in the fifth operation information to obtain first intermediate information, adding information for identifying the number of occurrences of the first exception to the first intermediate information, and obtaining to the second intermediate information; the second intermediate information is parsed to obtain the sixth operation information of the second device, and the sixth operation information is stored; wherein, in the case where the second device is the target device, the fifth operation information of the second device includes the first operation information; in the case where the second device is a centralized storage device, the fifth operation information includes: the cluster status information, node status information, alarm information, audit log, process information, memory dump file list and dump files recorded in the list, and space usage of the second device; in the case where the second device is an input and output IO read-write device, the fifth operation information includes: the configuration file and process file of the IO read-write device, and the configuration file records the first duration of the process running in the IO read-write device.

[0007] In an exemplary embodiment, parsing the second intermediate information to obtain the sixth operation information of the second device includes: when the second device is the centralized storage device and the second intermediate information includes an abnormal dump file, obtaining the assertion information corresponding to the abnormal dump file to obtain the sixth operation information; when the second device is the IO read-write device, obtaining the first process information of the first process corresponding to the process file included in the second intermediate information and the seventh operation information of the second device when the first process is running to obtain the sixth operation information, wherein the first process is the process that generates the process file, and the first process information includes the second process information of the first process when outputting the process file and the third process information of the first process when obtaining the first process information.

[0008] In an exemplary embodiment, when the target device is a centralized storage device, the target abnormality includes at least one of the following: the operating state of the target device is abnormal, the target device has an abnormal alarm, the target device outputs an abnormal memory dump file, the process memory occupancy of the target device continues to increase, and the space utilization rate of the target device reaches a threshold; when the target device is an input and output IO read and write device, the target abnormality includes at least one of the following: the read and write rate of the IO read and write device is zero, and the duration of the read and write rate of the IO read and write device being zero reaches a predetermined duration.

[0009] In an exemplary embodiment, according to the target operation information and the second operation information, detecting whether a target process exists includes: obtaining a predetermined rule, wherein a plurality of second processes are recorded in the predetermined rule, and the second process is a process that will cause a false exception in a device running the second process during normal operation; matching a third process included in the target operation information and a fourth process included in the first operation information with the plurality of second processes recorded in the predetermined rule respectively; determining whether the target process exists based on the matching result; wherein, if a second process identical to the third process is matched in the predetermined rule, and / or a second process identical to the fourth process is matched in the predetermined rule, it is determined that the target process is detected; and if a second process identical to the third process is not matched in the predetermined rule, and if a second process identical to the fourth process is not matched in the predetermined rule, it is determined that the target process is not detected.

[0010] In an exemplary embodiment, when the target process is not detected and the target device and the first device include the IO read-write device, before obtaining the third operation information of the target device in the current detection period and the fourth operation information of the first device, the method also includes: obtaining the third process information of the fifth process running in the target period, wherein the first process includes the fifth process, and the fifth process includes: when the target device is the IO read-write device, the process running on the target device, or, when the first device is the IO read-write device, the process running in the first device that interacts with the target device; when the running status of the fifth process recorded in the third process information ends and the running time of the fifth process reaches the first time length, determining that the target exception is a false exception.

[0011] According to another embodiment of the present application, there is also provided an abnormality analysis device, which is applied to a server, and the server interacts with a target device and a first device through a predetermined interface, and the first device is a device capable of interacting with the target device, and the device includes: a first acquisition module, which is used to obtain target operation information of the target device in a target time period in which the target abnormality occurs and second operation information of the first device in the target time period when it is identified that target abnormality information for identifying a target abnormality is recorded in the first operation information of the target device, wherein the first device includes other devices that are in the same target operation environment as the target device and interact with the target device in the target time period; a detection module, which is used to detect whether there is a target process based on the target operation information and the second operation information, wherein the target process is a process that causes the target abnormality to occur in the target device when the target device is running normally, or when it is running normally in the first device; a first determination module, which is used to determine that the target abnormality is a false abnormality when the target process is detected.

[0012] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0013] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0014] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0015] Through the present application, when a fault occurs in the target device, the operating information of other devices in the target operating environment that interact with the target device is simultaneously obtained and analyzed, and false anomalies are eliminated through the operating information of the target device and the operating information of the interactive device. Therefore, the problems of low troubleshooting efficiency and accuracy in the troubleshooting methods in the related art can be solved, thereby achieving the effect of improving the efficiency and accuracy of troubleshooting. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a hardware structure block diagram of a server device according to an abnormality analysis method according to an embodiment of the present application;

[0017] Figure 2 The process of the abnormal analysis method according to the embodiment of the present application is Figure 1 ;

[0018] Figure 3 is an overall framework diagram of an abnormality analysis method according to an embodiment of the present application;

[0019] Figure 4 is a schematic diagram of an abnormality analysis method according to an embodiment of the present application;

[0020] Figure 5 The process of the abnormal analysis method according to the embodiment of the present application is Figure 2 ;

[0021] Figure 6 It is a structural block diagram of an abnormality analysis device according to an embodiment of the present application. DETAILED DESCRIPTION

[0022] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0024] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device according to an abnormality analysis method of an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0025] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the abnormal analysis method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0026] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0027] In this embodiment, a method for analyzing abnormality is provided. Figure 2 The process of the abnormal analysis method according to the embodiment of the present application is Figure 1 ,like Figure 2 As shown, the process includes the following steps:

[0028] Step S202, when it is identified that target abnormality information for identifying a target abnormality is recorded in the first operation information of the target device, the target operation information of the target device within the target time period in which the target abnormality occurs and the second operation information of the first device within the target time period are obtained, wherein the first device includes other devices that are in the same target operation environment as the target device and interact with the target device within the target time period;

[0029] Step S204, detecting whether a target process exists according to the target operation information and the second operation information, wherein the target process is a process that causes the target abnormality to occur in the target device when the target device is operating normally or when the target device is operating normally in the first device;

[0030] Step S206: When the target process is detected, determine that the target exception is a false exception.

[0031] In step S202, the target device includes but is not limited to: distributed storage devices, input and output IO read and write devices, server devices, switch devices, etc., the first device includes but is not limited to: distributed storage devices, input and output IO read and write devices, server devices, switch devices, etc., and the target time period can be pre-configured according to different device types and operating environments.

[0032] In an optional embodiment, the execution subject of the above steps includes but is not limited to: other server devices outside the device running in the target operating environment, and the other server devices include but are not limited to: interacting with the target device and the first device through a predetermined interface, and the predetermined interface includes but is not limited to: application programming interface (API, Application Programming lnterface), for example, RESTfulAPI (RepresentationalState Transfer Application Programming Interface, presentation layer state transfer application programming interface) and the like. Exemplary, Figure 3 is an overall framework diagram of the abnormality analysis method according to an embodiment of the present application, such as Figure 3 As shown, the target operating environment includes: centralized storage devices, switches, IO input and output read and write devices. The centralized storage devices interact with the IO read and write devices through the switches. Agent programs are deployed in the centralized storage devices, switches, and IO read and write devices. The agent program sends the operating information of the device to the server outside the target operating environment through the API interface according to the configured rules. The server outside the target operating environment can check for false anomalies of each device based on the received operating information sent by each device in the target operating environment.

[0033] Through the above steps, when a fault occurs in the target device, the operating information of other devices in the target operating environment that interact with the target device is simultaneously obtained and analyzed, and false anomalies are eliminated through the operating information of the target device and the operating information of the interactive device. Therefore, the problems of low troubleshooting efficiency and accuracy in the troubleshooting methods in the related art are solved, and the efficiency and accuracy of troubleshooting are improved.

[0034] The execution subject of the above steps may be a server, a terminal, etc., but is not limited thereto.

[0035] In an optional embodiment, after detecting whether a target process exists based on the target operation information and the second operation information, the method further includes: if the target process is not detected, obtaining third operation information of the target device and fourth operation information of the first device within the current detection period; and storing the third operation information, the fourth operation information, the target operation information and the second operation information under the target path.

[0036] In the above steps, exemplarily, the method of obtaining the third operation information and the fourth operation information includes but is not limited to: the server outside the target operation environment sends a snapshot snap collection instruction to the target device and the first device, and the target device and the first device send the collected third operation information and the fourth operation information to the server outside the target operation environment after executing the snap collection instruction. Exemplarily, the third operation information includes: the process operation information of the process running on the target device during the target time period when the target exception occurs during the time period when the third operation information is collected, and the device operation information of the target device during the time period when the third operation information is collected; the fourth operation information includes: the process operation information of the process running on the first device during the target time period when the target exception occurs during the time period when the fourth operation information is collected, and the device operation information of the target device during the time period when the fourth operation information is collected; the target path includes but is not limited to the path under the server outside the target operation environment.

[0037] Through the above steps, since the operation information of the equipment is collected again when the target abnormality is not a false abnormality, sufficient data resources can be provided for subsequent fault processing, which is conducive to improving the accuracy of subsequent fault detection.

[0038] In an optional embodiment, before obtaining the target operation information of the target device within the target time period in which the target exception occurs and the second operation information of the first device within the target time period, the method further includes: receiving fifth operation information sent by each second device included in a plurality of second devices, wherein the plurality of second devices are devices in the target operation environment, the plurality of second devices include the target device and the first device, and the fifth operation information of different second devices is not exactly the same; performing the following operations on the fifth operation information of each second device: merging the first exception information of the repeated first exceptions recorded in the fifth operation information to obtain first intermediate information, adding information for identifying the number of occurrences of the first exception to the first intermediate information, and obtaining to the second intermediate information; the second intermediate information is parsed to obtain the sixth operation information of the second device, and the sixth operation information is stored; wherein, in the case where the second device is the target device, the fifth operation information of the second device includes the first operation information; in the case where the second device is a centralized storage device, the fifth operation information includes: the cluster status information, node status information, alarm information, audit log, process information, memory dump file list and dump files recorded in the list, and space usage of the second device; in the case where the second device is an input and output IO read-write device, the fifth operation information includes: the configuration file and process file of the IO read-write device, and the configuration file records the first duration of the process running in the IO read-write device.

[0039] In the above steps, illustratively, the second device includes but is not limited to: distributed storage devices, input and output IO read and write devices, server devices, switch devices, etc. In the case where the second device is a server device, the fifth operation information includes but is not limited to: process information, space utilization rate, etc. In the case where the second device is a switch device, the fifth operation information includes but is not limited to: process information, space utilization rate, etc. The first repeatedly occurring anomaly includes but is not limited to: continuously occurring anomalies, anomalies that occur multiple times within a predetermined period of time, and the identification rules of the first anomaly can be set according to the device and the operating environment.

[0040] In an optional embodiment, before merging the first exception information of the repeated first exception recorded in the fifth operation information, the method further includes: after receiving the fifth information, the server outside the operation environment adds time information for recording the reception time of the fifth information and device information for recording the source of the fifth information to the fifth information. Storing the sixth operation information includes but is not limited to storing the sixth information in a first path of the server outside the operation environment, and the first path may be the same as or different from the target path.

[0041] In an optional embodiment, parsing the second intermediate information to obtain the sixth operation information of the second device includes: when the second device is the centralized storage device and the second intermediate information includes an abnormal dump file, obtaining the assertion information corresponding to the abnormal dump file to obtain the sixth operation information; when the second device is the IO read-write device, obtaining the first process information of the first process corresponding to the process file included in the second intermediate information and the seventh operation information of the second device when the first process is running to obtain the sixth operation information, wherein the first process is the process that generates the process file, and the first process information includes the second process information of the first process when outputting the process file and the third process information of the first process when obtaining the first process information.

[0042] In an optional embodiment, when the target device is a centralized storage device, the target abnormality includes at least one of the following: the operating state of the target device is abnormal, the target device has an abnormal alarm, the target device outputs an abnormal memory dump file, the process memory occupancy of the target device continues to increase, and the space utilization rate of the target device reaches a threshold; when the target device is an input and output IO read and write device, the target abnormality includes at least one of the following: the read and write rate of the IO read and write device is zero, and the duration of the read and write rate of the IO read and write device being zero reaches a predetermined duration.

[0043] In an optional embodiment, according to the target operation information and the second operation information, detecting whether there is a target process includes: obtaining a predetermined rule, wherein a plurality of second processes are recorded in the predetermined rule, and the second process is a process that will cause a false exception in a device running the second process during normal operation; matching the third process included in the target operation information and the fourth process included in the first operation information with the plurality of second processes recorded in the predetermined rule respectively; determining whether the target process exists based on the matching result; wherein, if the second process identical to the third process is matched in the predetermined rule, and / or, if the second process identical to the fourth process is matched in the predetermined rule, it is determined that the target process is detected; if the second process identical to the third process is not matched in the predetermined rule, and if the second process identical to the fourth process is not matched in the predetermined rule, it is determined that the target process is not detected.

[0044] In the above steps, exemplarily, for the IO read-write device, the second process includes but is not limited to: a process in which the normal operation of the IO read-write device causes the read-write rate of the IO read-write device to be zero, and a process in which the normal operation causes the read-write rate of the IO read-write device to be zero for a predetermined period of time; for the distributed storage device, the second process includes but is not limited to: a process in which the normal operation of the distributed storage device causes the running state of the distributed storage device to be abnormal, an abnormal alarm to appear, an abnormal dump file to be output, the process memory usage continues to increase, and the space usage rate reaches a threshold. Optionally, the user can adjust the predetermined rules based on the analysis results of the causes of non-false exceptions.

[0045] Through the above steps, by judging whether the target exception is a false exception based on predetermined rules, automatic identification of false exceptions is achieved, which greatly reduces the time required for users to troubleshoot. At the same time, it avoids possible mistakes in manually eliminating false exceptions, and improves the troubleshooting efficiency and accuracy.

[0046] In an optional embodiment, when the target process is not detected and the target device and the first device include the IO read-write device, before obtaining the third operation information of the target device in the current detection period and the fourth operation information of the first device, the method also includes: obtaining the third process information of the fifth process running in the target period, wherein the first process includes the fifth process, and the fifth process includes: when the target device is the IO read-write device, the process running on the target device, or, when the first device is the IO read-write device, the process running in the first device that interacts with the target device; when the running status of the fifth process recorded in the third process information ends and the running time of the fifth process reaches the first time length, determining that the target exception is a false exception.

[0047] In the above steps, when the running status of the fifth process recorded in the third process information ends but the running time of the fifth process does not reach the first time length, determine whether there is an exception in the fifth process based on the second process information of the fifth process. For example, when input and output errors or data verification errors are found in the second process information, it is determined that there is an exception in the fifth process, and the target exception is a non-false exception.

[0048] In an optional embodiment, the method further includes: in the case where the target file stored in the second device in the target operating environment is abnormal, the second device requests the first server outside the target operating environment for the operating information of the second device in a second time period, and the operating information of a third device interacting with the second device in the target operating environment in the second time period, wherein the second time period includes: the time period from the generation of the target file to the discovery of the abnormality of the target file, and the time period from the last normal use of the target file to the discovery of the abnormality of the target file, and the agent program is deployed on the devices in the target operating environment, and the agent program sends the operating information of the device to the first server through the API interface according to the configured rules;

[0049] The cause of the target file abnormality is analyzed according to the operation information of the second device in the second time period and the operation information of a third device interacting with the second device in the target operation environment in the second time period.

[0050] Through the above steps, since agent programs are deployed on the devices in the target operating environment, and the information on the devices is sent to the first server through the agent programs, when a failure occurs in the target file, the cause of the failure can be analyzed by obtaining the operating information reported by the agent program, thereby improving the efficiency and accuracy of fault diagnosis.

[0051] The present invention is described as a whole below in conjunction with specific embodiments:

[0052] In this embodiment, the target operating environment includes but is not limited to: a test environment, the target device includes but is not limited to: a centralized storage device, the target device includes but is not limited to: an IO read and write device. Exemplarily, in this embodiment, the execution subject of the anomaly analysis method includes but is not limited to: a second server outside the test environment.

[0053] Figure 4 is a schematic diagram of an abnormality analysis method according to an embodiment of the present application, Figure 5 The process of the abnormal analysis method according to the embodiment of the present application is Figure 2 ,like Figure 5 As shown, the method includes:

[0054] Step S502: The second server configures the test environment information, abnormal behavior configuration information, and defect analysis file output directory according to the devices in the test environment.

[0055] Step S504, the second server connects to the device in the test environment information through ssh, and if the connection is successful, sends the agent service program to the device in the test environment information, and sends a command to the agent service program through ssh (Secure Shell) to register the device in the test environment information to the second server, and sets the agent service program to start randomly.

[0056] Step S506: the second server receives the device information of the device and the process information running in the device sent by the device in the test environment information according to the rule, and performs data processing on the received information.

[0057] Step S508, when the second server identifies that the target device has a target anomaly, it analyzes the operating information of the target device and the first device within the target time period when the target anomaly occurs, and determines whether the target anomaly is a false anomaly based on the abnormal behavior configuration information.

[0058] Step S510, when the target exception is a false exception, the second server instructs the target device and the proxy service program on the first device to execute a snap instruction to collect the operation information on the target device and the first device in the current period again.

[0059] Step S512: the second server stores the operating information of the target device and the first device within the target time period when the target exception occurs and the re-collected information in the defect analysis file output directory.

[0060] In the above step S502, the test environment information is used to instruct the proxy service on each device in the test environment to collect the status information of the device and the process information of the process running in the device. Exemplarily, when the test environment includes an IO read-write device, the test environment information instructs the proxy service program in the IO read-write device to send the running information of the process performing IO read-write operations in the IO read-write device and the device information of the IO read-write device to the second server so as to facilitate the subsequent judgment whether there are abnormalities in the IO read-write device and the process performing the read-write operation. The abnormal behavior configuration information is used to record the process information that will cause the device to be abnormal during normal operation, for example, the process information that will cause the centralized storage system to alarm and generate abnormal dump files during normal operation, and the process information that will cause the read and write rate of the IO read-write device to drop to zero during normal operation. When the tester receives an error notification and determines that there is no error after analysis, the abnormal behavior configuration can be updated or added according to the actual situation, or when the function is modified or a new function is added, the abnormal behavior configuration can be updated or added according to the information provided by the R&D personnel. The defect analysis file output directory is used to store the device information of the device that caused the target exception and the process information of the process running in the device, so that subsequent testers can analyze and locate the problem, the alarm or dump triggered by the abnormal operation, the corresponding system status, the duration of the io exception, etc.

[0061] In step S504, after receiving the registration information of the device in the test environment, the second server changes the device corresponding to the registration information to an online state. The second server and the proxy service program on each device establish a keep-alive connection once every specified time, and if the second server does not receive the keep-alive information sent by the proxy service program for a long time, it determines that the device that has not sent the keep-alive information for a long time is an offline device.

[0062] In step S506, the proxy service program on the centralized storage system in the test environment information will send the running status (cluster and node), alarms, audit logs, processes and corresponding process memory information, dump lists, and space utilization of the centralized storage system to the second server; the proxy service program in the IO read-write device in the test environment information will send the IO process information of the IO read-write device, the process number of the IO, and the running output directory, output file, configuration file, and error file of the IO read-write device to the second server; the proxy service program on the server in the test environment information will send the process information of the server and the space utilization of the server to the second server; the proxy service program on the switch in the test environment information will send the process information of the switch and the space utilization of the switch to the second server. Before processing the data, the second server adds time and corresponding device information to the acquired original data and stores it in the database, wherein the operation status, audit log, process information, and space utilization rate do not need secondary processing and can be used directly. For the dump file, it is necessary to connect to the device corresponding to the dump file for parsing according to the dump name, so as to obtain the corresponding assert point, and then store the time, host, dump name, and assert information together in the database. For repeated alarms in a short period of time, the combined count is performed, and then the start time, number of occurrences, and alarm level of the alarm are stored in the database; for the acquired IO output file, it is parsed according to the rules of the output file of the IO tool, so as to obtain the configuration of the running IO process, the output of IO (including but not limited to: output time and IO data at that time, such as read and write rate, delay, bandwidth, etc.), and connect to the corresponding IO read and write device to check whether the IO process is still running, and store the processed IO read and write data in the database.

[0063] In the above steps, by configuring the test environment information on the second server, the proxy service program can be automatically deployed and registered on the test environment, and after successful registration, the proxy service program pulls the test information, identifies and extracts the key information of the pulled information, and then combines it with the abnormal behavior configuration information to automatically identify whether the test system has an abnormality. In the event of an abnormality, the information is packaged and processed so that the tester can be notified for analysis after the processing is completed. Through the above method, the probability of missing fault information is reduced and the product quality is improved. At the same time, since the above method is automatically run in the background throughout the process, the fault information is automatically collected and pre-processed in combination with the data, which improves the efficiency of troubleshooting and saves test time.

[0064] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0065] In this embodiment, an abnormal analysis device is also provided, which is applied to a server, and the server interacts with a target device and a first device through a predetermined interface. The first device is a device capable of interacting with the target device. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0066] Figure 6 is a structural block diagram of an abnormality analysis device according to an embodiment of the present application, such as Figure 6 As shown, the device includes: a first acquisition module 62, which is used to obtain the target operation information of the target device in the target time period where the target abnormality occurs and the second operation information of the first device in the target time period when it is identified that the first operation information of the target device records the target abnormality information for identifying the target abnormality, wherein the first device includes other devices that are in the same target operation environment as the target device and interact with the target device in the target time period; a detection module 64, which is used to detect whether there is a target process based on the target operation information and the second operation information, wherein the target process is a process that will cause the target abnormality to occur in the target device when the target device is running normally, or when it is running normally in the first device; a first determination module 66, which is used to determine that the target abnormality is a false abnormality when the target process is detected.

[0067] In an optional embodiment, the device also includes: a second acquisition module, which is used to detect whether there is a target process based on the target operation information and the second operation information, and if the target process is not detected, obtain the third operation information of the target device and the fourth operation information of the first device within the current detection period; a storage module, which is used to store the third operation information, the fourth operation information, the target operation information and the second operation information under the target path.

[0068] In an optional embodiment, the device also includes: a receiving module, which is used to receive fifth operation information sent by each second device included in a plurality of second devices before obtaining the target operation information of the target device within the target time period in which the target exception occurs and the second operation information of the first device within the target time period, wherein the plurality of second devices are devices in the target operation environment, the plurality of second devices include the target device and the first device, and the fifth operation information of different second devices is not exactly the same; a processing module, which is used to perform the following operations on the fifth operation information of each second device: merging the first exception information of the repeated first exception recorded in the fifth operation information to obtain the first intermediate information, and adding a signal for identifying the occurrence of the first exception to the first intermediate information The information of the number of times is obtained to obtain the second intermediate information; the second intermediate information is parsed to obtain the sixth operation information of the second device, and the sixth operation information is stored; wherein, in the case where the second device is the target device, the fifth operation information of the second device includes the first operation information; in the case where the second device is a centralized storage device, the fifth operation information includes: the cluster status information, node status information, alarm information, audit log, process information, memory dump file list and dump files recorded in the list, and space usage of the second device; in the case where the second device is an input and output IO read-write device, the fifth operation information includes: the configuration file and process file of the IO read-write device, and the configuration file records the first duration of the process running in the IO read-write device.

[0069] In an optional embodiment, the processing module includes: a first processing unit, used to obtain assertion information corresponding to the abnormal dump file when the second device is the centralized storage device and the second intermediate information includes an abnormal dump file, so as to obtain the sixth operation information; a second processing unit, used to obtain first process information of the first process corresponding to the process file included in the second intermediate information and seventh operation information of the second device when the first process is running, so as to obtain the sixth operation information when the second device is the IO read-write device, wherein the first process is the process that generates the process file, and the first process information includes the second process information of the first process when outputting the process file and the third process information of the first process when obtaining the first process information.

[0070] In an optional embodiment, when the target device is a centralized storage device, the target abnormality includes at least one of the following: the operating state of the target device is abnormal, the target device has an abnormal alarm, the target device outputs an abnormal memory dump file, the process memory occupancy of the target device continues to increase, and the space utilization rate of the target device reaches a threshold; when the target device is an input and output IO read and write device, the target abnormality includes at least one of the following: the read and write rate of the IO read and write device is zero, and the duration of the read and write rate of the IO read and write device being zero reaches a predetermined duration.

[0071] In an optional embodiment, the detection module 64 includes: an acquisition unit, which is used to acquire a predetermined rule, wherein a plurality of second processes are recorded in the predetermined rule, and the second process is a process that will cause a false exception in a device running the second process during normal operation; a matching unit, which is used to match the third process included in the target operation information and the fourth process included in the first operation information with the plurality of second processes recorded in the predetermined rule respectively; a first determination unit, which is used to determine whether the target process exists based on the matching result; a second determination unit, which is used to match a second process identical to the third process in the predetermined rule, and / or, in the case where a second process identical to the fourth process is matched in the predetermined rule, determine that the target process is detected; a third determination unit, which is used to not match a second process identical to the third process in the predetermined rule, and, in the case where a second process identical to the fourth process is not matched in the predetermined rule, determine that the target process is not detected.

[0072] In an optional embodiment, the device also includes: a third acquisition module, which is used to obtain the third process information of the fifth process running in the target time period before obtaining the third operation information of the target device in the current detection period and the fourth operation information of the first device when the target process is not detected and the target device and the first device include the IO read-write device, wherein the first process includes the fifth process, and the fifth process includes: when the target device is the IO read-write device, the process running on the target device, or, when the first device is the IO read-write device, the process running in the first device that interacts with the target device; a second determination module, which is used to determine that the target exception is a false exception when the running status of the fifth process recorded in the third process information ends and the running time of the fifth process reaches the first time length.

[0073] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0074] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0075] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0076] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0077] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0078] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0079] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0080] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0081] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. An abnormality analysis method, characterized in that: Applied in a server, the server interacts with a target device and a first device through a predetermined interface, and the first device is a device capable of interacting with the target device; The method comprises: In a case where it is identified that target abnormality information for identifying a target abnormality is recorded in the first operation information of the target device, acquiring target operation information of the target device within a target period in which the target abnormality occurs and second operation information of the first device within the target period, wherein the first device includes other devices that are in the same target operation environment as the target device and interact with the target device within the target period; Detecting whether a target process exists according to the target operation information and the second operation information, wherein the target process is a process that causes the target device to have the target abnormality when the target device is operating normally or when the target device is operating normally in the first device; In case the target process is detected, the target exception is determined to be a false exception.

2. The method according to claim 1, characterized in that After detecting whether a target process exists according to the target operation information and the second operation information, the method further includes: When the target process is not detected, obtaining third operation information of the target device and fourth operation information of the first device within a current detection period; The third operation information, the fourth operation information, the target operation information and the second operation information are stored in a target path.

3. The method according to claim 2, characterized in that Before acquiring target operation information of the target device within the target time period in which the target anomaly occurs and second operation information of the first device within the target time period, the method further includes: receiving fifth operation information sent by each second device included in a plurality of second devices, wherein the plurality of second devices are devices in the target operation environment, the plurality of second devices include the target device and the first device, and the fifth operation information of different second devices is not completely the same; The following operation is performed for each of the fifth operation information of the second device: Merging first exception information of the first exception that occurs repeatedly recorded in the fifth operation information to obtain first intermediate information, adding information for identifying the number of occurrences of the first exception to the first intermediate information to obtain second intermediate information; parsing the second intermediate information to obtain sixth operation information of the second device, and storing the sixth operation information; Wherein, in the case where the second device is the target device, the fifth operation information of the second device includes the first operation information; In the case where the second device is a centralized storage device, the fifth operation information includes: cluster status information, node status information, alarm information, audit log, process information, memory dump file list and dump files recorded in the list, and space utilization rate of the second device; in the case where the second device is an input and output IO read-write device, the fifth operation information includes: a configuration file and a process file of the IO read-write device, and the configuration file records the first duration of the process running in the IO read-write device.

4. The method according to claim 3, characterized in that Parsing the second intermediate information to obtain sixth operation information of the second device includes: In a case where the second device is the centralized storage device and the second intermediate information includes an abnormal dump file, acquiring assertion information corresponding to the abnormal dump file to obtain the sixth operation information; In the case where the second device is the IO read-write device, the first process information of the first process corresponding to the process file included in the second intermediate information and the seventh operation information of the second device when the first process is running are obtained to obtain the sixth operation information, wherein the first process is the process that generates the process file, and the first process information includes the second process information of the first process when outputting the process file and the third process information of the first process when obtaining the first process information.

5. The method according to claim 1, characterized in that In the case where the target device is a centralized storage device, the target abnormality includes at least one of the following: an abnormal operating state of the target device, an abnormal alarm of the target device, an abnormal memory dump file output by the target device, a continuous increase in the process memory usage of the target device, and a space usage rate of the target device reaching a threshold; In the case where the target device is an input / output (IO) read / write device, the target abnormality includes at least one of the following: the read / write rate of the IO read / write device is zero, and the duration of the read / write rate of the IO read / write device being zero reaches a predetermined duration.

6. The method according to claim 1, characterized in that Detecting whether a target process exists according to the target operation information and the second operation information includes: Obtaining a predetermined rule, wherein the predetermined rule records a plurality of second processes, and the second process is a process that causes a false exception to occur in a device running the second process during normal operation; Matching the third process included in the target operation information and the fourth process included in the first operation information with the plurality of second processes recorded in the predetermined rule respectively; Determine whether the target process exists based on the matching result; Wherein, when a second process identical to the third process is matched in the predetermined rule, and / or when a second process identical to the fourth process is matched in the predetermined rule, it is determined that the target process is detected; When the second process identical to the third process is not matched in the predetermined rule, and when the second process identical to the fourth process is not matched in the predetermined rule, it is determined that the target process is not detected.

7. The method according to claim 4, characterized in that When the target process is not detected and the target device and the first device include the IO read / write device, before obtaining the third operation information of the target device and the fourth operation information of the first device in the current detection period, the method further includes: Acquire the third process information of the fifth process running in the target time period, wherein the first process includes the fifth process, and the fifth process includes: when the target device is the IO read-write device, a process running on the target device, or, when the first device is the IO read-write device, a process running in the first device that interacts with the target device; When the running state of the fifth process recorded in the third process information ends and the running time of the fifth process reaches the first time length, it is determined that the target exception is a false exception.

8. An abnormality analysis device, characterized in that: Applied in a server, the server interacts with a target device and a first device through a predetermined interface, the first device being a device capable of interacting with the target device, the apparatus comprising: A first acquisition module is used to acquire, when it is identified that target abnormality information for identifying a target abnormality is recorded in the first operation information of the target device, target operation information of the target device within a target period in which the target abnormality occurs and second operation information of the first device within the target period, wherein the first device includes other devices that are in the same target operation environment as the target device and interact with the target device within the target period; a detection module, configured to detect whether a target process exists according to the target operation information and the second operation information, wherein the target process is a process that, when the target device is operating normally or operating normally in the first device, will cause the target device to have the target abnormality; The first determination module is used to determine that the target exception is a false exception when the target process is detected.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.