Abnormality detection method, device, storage medium and electronic device

By collecting and analyzing server abnormal data and determining the operating data of abnormal nodes and related nodes, the problem of low troubleshooting efficiency and accuracy in the existing technology is solved, fast and accurate fault detection and analysis is achieved, and operation and maintenance costs are reduced.

CN116208532BActive Publication Date: 2024-10-18INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211733328.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2024-10-18
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

In the existing technology, server fault monitoring is in its infancy, resulting in low fault troubleshooting efficiency and accuracy, and long fault location and resolution times, which affects production operations.

Method used

Collect abnormal data through the data collector, identify the abnormal node, and obtain the operating data of multiple nodes associated with the node. Determine the cause of the failure based on the abnormal level and operating data to ensure data integrity and timeliness.

Benefits of technology

It achieves fast and accurate anomaly detection and fault cause analysis, reduces the frequency of manual troubleshooting and operation and maintenance costs, and improves fault handling efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116208532B_ABST
    Figure CN116208532B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides an abnormality detection method, device, storage medium and electronic device, wherein the method includes: obtaining abnormal data collected in a data collector, determining the node corresponding to the abnormal data on the server, and obtaining a first node; determining a node associated with the first node in the server, obtaining at least one second node, and obtaining an operation data set fed back by the data storage device, wherein the operation data set includes the operation data of the first node and the operation data of at least one second node; determining the abnormal level of the abnormal data according to the operation data set, and sending the abnormal level and the operation data set to the controller; receiving the abnormality detection result returned by the controller according to the abnormal level and the operation data. Through this application, the problem of low efficiency and accuracy in manually troubleshooting the cause of server failure based on abnormal data due to incomplete and untimely reported abnormal data in the related art is solved.
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 anomaly detection method, device, storage medium, and electronic device. Background Art

[0002] In the current era of big data cloud computing, as the scale and deployment density of data centers are increasing, a single data center can reach a server scale of tens of millions. While the server failure rate remains unchanged, the number of failures increases with the increase in scale, which brings huge challenges to operation and maintenance work, while the number of operation and maintenance personnel has not increased. Currently, more and more intelligent operation and maintenance systems are being put into use.

[0003] Currently, server fault monitoring is still in the primary stage. Basically, the BMC detects relevant status and reports it to the operation and maintenance server, and then manually performs relevant processing and analysis, and even minimizes environmental reproduction and positioning, or replaces various components, resulting in operation and maintenance time and cost expenditures, and also causes the failure rate of some components to increase.

[0004] Abnormal server failures are sudden, unpredictable, difficult to reproduce, and highly destructive. After the problem occurs, it is complicated to locate it, and it takes a long time to locate and solve the problem. The operation and maintenance manpower investment is large and the efficiency is low. Because the status and position of each signal when the failure occurs are difficult to reproduce, the positioning and troubleshooting cycle is long and difficult, resulting in the inability to quickly repair the server, which in turn affects the normal production operation. Summary of the invention

[0005] The embodiments of the present application provide an anomaly detection method, device, storage medium and electronic device to at least solve the problem in the related art that the reported anomaly data is incomplete and untimely, resulting in low efficiency and accuracy in manually troubleshooting the cause of server failure based on the anomaly data.

[0006] According to an embodiment of the present application, a method for detecting anomalies is provided, comprising:

[0007] In an exemplary embodiment, abnormal data collected in a data collector is obtained, and a node corresponding to the abnormal data on a server is determined to obtain a first node; a node associated with the first node is determined in the server to obtain at least one second node, and an operation data set fed back by a data storage device is obtained, wherein the operation data set includes the operation data of the first node and the operation data of at least one second node; an abnormality level of the abnormal data is determined based on the operation data set, and the abnormality level and the operation data set are sent to a controller; and an abnormality detection result returned by the controller based on the abnormality level and the operation data is received.

[0008] Optionally, obtaining abnormal data collected in the data collector includes: obtaining an acquisition mode of the data collector; when the acquisition mode is continuous acquisition, obtaining current data in the data collector according to a first preset frequency, and obtaining abnormal data from the current data; when the acquisition mode is single acquisition, determining whether an acquisition instruction sent by a controller is received, and when the acquisition instruction is received, obtaining historical data in the data collector, wherein the historical data is operating data collected by the data collector between the current moment and the last moment when the acquisition instruction was received; detecting whether there is abnormal data in the historical data, and obtaining the abnormal data from the historical data if there is abnormal data.

[0009] Optionally, after obtaining abnormal data from current data, the method further includes: if there is no abnormal data in the current data, storing the current data in a data storage device; after detecting whether there is abnormal data in historical data, the method further includes: if there is no abnormal data in the historical data, storing the historical data in a data storage device.

[0010] Optionally, before obtaining the running data set fed back by the data storage device, the method also includes: determining a moment whose time difference with the current moment is less than a preset time difference, and obtaining multiple moment information; sending the multiple moment information and node information to the data storage device, wherein the node information includes node information of a first node and node information of at least one second node.

[0011] Optionally, determining the abnormal level of abnormal data based on the operating data set includes: obtaining an initial level of a first node; determining the frequency of occurrence of the abnormal data based on the operating data; judging whether the frequency of occurrence is greater than a preset frequency; if the frequency of occurrence is greater than the preset frequency, adjusting the initial level and using the adjusted initial level as the abnormal level of the abnormal data; if the frequency of occurrence is less than or equal to the preset frequency, determining the initial level as the abnormal level of the abnormal data.

[0012] Optionally, after obtaining the operating data set fed back by the data storage device, the method further includes: obtaining the data storage capacity of the data storage device at a preset time interval; determining whether the data storage capacity is greater than or equal to the preset storage capacity; and if the data storage capacity is greater than or equal to the preset storage capacity, deleting the operating data at the target moment with the largest time difference with the current moment in the data storage device.

[0013] Optionally, before deleting the operating data at the target moment with the largest time difference with the current moment in the data storage device, the method also includes: determining whether the operating data at the target moment carries a preset identifier, wherein the preset identifier indicates that no operating data set has been received within a preset time interval; if the operating data at the target moment carries the preset identifier, retaining the operating data at the target moment, and re-executing the step of deleting the operating data at the target moment with the largest time difference with the current moment in the data storage device in the remaining operating data in the data storage device until the data storage amount is less than the preset storage amount.

[0014] According to another embodiment of the present application, an anomaly detection device is provided, including: a first acquisition unit, used to acquire abnormal data collected in a data collector, determine the node corresponding to the abnormal data on the server, and obtain a first node; a second acquisition unit, used to determine a node associated with the first node in the server, obtain at least one second node, and acquire an operation data set fed back by a data storage device, wherein the operation data set includes the operation data of the first node and the operation data of at least one second node; a first determination unit, used to determine an abnormality level of the abnormal data according to the operation data set, and send the abnormality level and the operation data set to a controller; a receiving unit, used to receive an abnormality detection result returned by the controller according to the abnormality level and the operation data.

[0015] 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 running.

[0016] According to another embodiment of the present application, an electronic device is provided, 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.

[0017] Through the present application, the abnormal data in the server is collected by the data collector, and the abnormal node in the server that generates the abnormal data is determined according to the abnormal data, and the node information of multiple nodes associated with the abnormal node is obtained at the same time, and the information of the above multiple nodes is sent to the data storage device at the same time, and the operation data of the above multiple nodes is obtained from the data storage device, so as to ensure the integrity of the data required for analyzing the cause of the abnormality. At the same time, after obtaining multiple operation data, it is necessary to determine the abnormal level of this abnormality according to the information in the operation data, and send the abnormal level and the operation data to the controller, so that the controller can determine the cause of this abnormality according to the abnormal level and the operation data. Therefore, the problem of low efficiency and accuracy of manually troubleshooting the cause of server failure according to abnormal data in the related art due to incomplete and untimely reported abnormal data can be solved, and the effect of quickly and accurately detecting the abnormality of the server and determining the cause of the abnormality of the server can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a hardware structure block diagram of a mobile terminal of an abnormality detection method according to an embodiment of the present application;

[0019] Figure 2 is a schematic diagram of an anomaly detection system according to an embodiment of the present application;

[0020] Figure 3 is a flow chart of an anomaly detection method according to an embodiment of the present application;

[0021] Figure 4 is a flow chart for determining an abnormality level according to an embodiment of the present application;

[0022] Figure 5 is a schematic diagram of an abnormality detection device according to an embodiment of the present application. DETAILED DESCRIPTION

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

[0024] 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.

[0025] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal (electronic device), a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 is a hardware structure block diagram of a mobile terminal of an abnormality detection method according to an embodiment of the present application. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1Only 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 mobile terminal 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 mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0026] 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 abnormality detection 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 mobile terminal 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 a combination thereof.

[0027] 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 mobile terminal. 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 (RF) module, which is used to communicate with the Internet wirelessly.

[0028] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:

[0029] BMC (Baseboard Management Controller) can perform some operations on the machine, such as upgrading the machine firmware and checking the machine equipment, when the machine is not turned on.

[0030] CPLD (Complex Programmable Logic Device) is a digital integrated circuit with logic functions that users can construct according to their own needs. It is mostly used in servers to control timing control such as hardware power on and off.

[0031] GPIO (General Purpose Input Output) is used to communicate signals using the high and low levels of physical pins.

[0032] I 2 C (Inter-Integrated Circuit) is a serial communication bus that uses a multi-master-slave architecture and is a simple, bidirectional, two-wire synchronous serial bus.

[0033] In this embodiment, Figure 2 is a schematic diagram of an anomaly detection system according to an embodiment of the present application, such as Figure 2 As shown, the aforementioned anomaly detection method is executed with an optional anomaly detection system as the execution subject, and the anomaly detection system at least includes: a server 201, a data collector 202, a processor 203, a data storage 204, and a controller 205.

[0034] The data collector 202 is connected to the server 201 and is used to collect multiple data sent from the server 201, such as signal data, voltage data and other data, and can also perform temporary storage of the data.

[0035] The processor 203 is connected to the data collector 202, the data storage 204, and the controller 205, and is used to send the data in the data collector 202 to the data storage 204 for storage. When an abnormality is detected in the data, the abnormal data and data related to the abnormal data are taken out from the data storage 204 and sent to the controller 205.

[0036] The controller 205 is used to determine the cause of the abnormality according to the abnormal data and the abnormality level of the abnormal data.

[0037] The data memory 204 is used to store operating data.

[0038] For example, the processor 203 may perform the following operations:

[0039] It is mainly responsible for four parts: logic control, status data processing, status control and status monitoring.

[0040] 1. Logical control mainly includes whether to enable data collection, abnormal information reporting, data locking strategy, etc.

[0041] 2. Status data processing mainly involves status management, status abnormality judgment, and status data statistics and processing of the monitored circuit status.

[0042] 3. State control is mainly responsible for controlling the switch status of each power line, power-on and power-off sequence, etc.

[0043] 4. Status monitoring is mainly responsible for detecting the working status signals of each circuit

[0044] The data collector 202 can perform the following operations:

[0045] It can realize independent waveform acquisition and data buffering. It mainly consists of state control, data processing, data buffering and data acquisition parts.

[0046] 1. State control is mainly responsible for the data collection status, including continuous collection, single collection, start and stop collection, etc.

[0047] 2. Data processing is mainly responsible for compressing, merging and processing invalid data of the waveform data collected from each circuit.

[0048] 3. Data cache is mainly used to cache the collected data. The data cache is divided into two parts, A and B, which are filled in turn.

[0049] In this embodiment, a method running on the above mobile terminal (electronic device) is provided. Figure 3 is a flowchart of an abnormality detection method according to an embodiment of the present application, such as Figure 3 As shown, the process includes the following steps:

[0050] Step S302, acquiring abnormal data collected by the data collector, determining the node corresponding to the abnormal data on the server, and obtaining the first node.

[0051] Specifically, the processor can be a CPLD device, MCU (Microcontroller Unit), and the processor can obtain abnormal data collected in the data collector, wherein the data collector will send the operation data of the server to the processor according to the data sending instruction preset by the processor, and the operation data is the key information such as the signal or voltage value emitted by the key circuit or key components obtained by the data collector through real-time monitoring. After receiving the operation data, the processor will determine whether there is abnormal data in the operation data. If there is no abnormal data, the data will be directly sent to the data storage device. If there is abnormal data, the data also needs to be sent to the data storage device. At the same time, the processor will determine which fault source in the server the abnormal data is sent from based on the abnormal data, thereby obtaining the node information of the fault source.

[0052] Step S304, determine a node associated with the first node in the server, obtain at least one second node, and acquire an operation data set fed back by the data storage device, wherein the operation data set includes operation data of the first node and operation data of at least one second node.

[0053] Specifically, after determining the node information of the fault source, it is also necessary to determine the node information of other components related to the fault source, so that when performing data analysis, the abnormal cause of the fault source can be analyzed more comprehensively.

[0054] Furthermore, after determining multiple nodes related to the abnormal data, it is necessary to send a data acquisition instruction to the data storage device, so that the data stored before the abnormality occurred can be obtained from the data storage device to obtain a running data set, so as to better determine the cause of the abnormality.

[0055] Step S306, determining the abnormality level of the abnormal data according to the operating data set, and sending the abnormality level and the operating data set to the controller.

[0056] Specifically, after obtaining the operating data set, the abnormality level of the abnormality can be determined based on the historical data in the operating data set and the initial level of the fault source, and the abnormality level and the operating data set can be sent to the controller together, so that preliminary fault analysis and positioning can be performed based on the abnormal data in the controller. If the cause can be located, the diagnosis result is sent to the processor. If it cannot be located, the abnormal situation and collected data are reported to the staff, so that the cause of the abnormality is determined manually, thereby reducing the frequency of manual confirmation of the cause of the abnormality and reducing the workload of the staff.

[0057] Step S308, receiving the abnormality detection result returned by the controller according to the abnormality level and the operation data.

[0058] Specifically, after the controller returns the exception detection result, it can display the exception detection result. At this time, if the controller can solve the exception by executing some operations, it will be handled by the controller itself. If it cannot be solved, an alarm message will be issued to inform the staff of the operation process to repair the exception, so that the server exception can be quickly resolved.

[0059] The present application adopts the steps of: collecting abnormal data in the server through a data collector, and determining the abnormal node in the server that generates the abnormal data according to the abnormal data, and simultaneously obtaining the node information of multiple nodes associated with the abnormal node, and sending the information of the above multiple nodes to the data storage device at the same time, obtaining the operation data of the above multiple nodes from the data storage device, so as to ensure the integrity of the data required for analyzing the cause of the abnormality, and at the same time, after obtaining multiple operation data, it is necessary to determine the abnormal level of this abnormality according to the information in the operation data, and send the abnormal level and the operation data to the controller, so that the controller can determine the cause of this abnormality according to the abnormal level and the operation data. Therefore, the problem of low efficiency and accuracy of manually troubleshooting the cause of server failure according to abnormal data in the related technology due to incomplete and untimely reported abnormal data can be solved, and the effect of quickly and accurately detecting the abnormality of the server and determining the cause of the abnormality of the server can be achieved.

[0060] The execution subject of the above steps may be a mobile terminal (electronic device), a computer terminal or a similar computing device, but is not limited thereto.

[0061] Optionally, obtaining abnormal data collected in the data collector includes: obtaining an acquisition mode of the data collector; when the acquisition mode is continuous acquisition, obtaining current data in the data collector according to a first preset frequency, and obtaining abnormal data from the current data; when the acquisition mode is single acquisition, determining whether an acquisition instruction sent by a controller is received, and when the acquisition instruction is received, obtaining historical data in the data collector, wherein the historical data is operating data collected by the data collector between the current moment and the last moment when the acquisition instruction was received; detecting whether there is abnormal data in the historical data, and obtaining the abnormal data from the historical data if there is abnormal data.

[0062] Specifically, after the MCU is powered on, it will continue to obtain key voltages and signals in the server. At this time, it is necessary to obtain the collection mode set by the user in the data collector. If the collection mode is continuous collection, the data collector will send the real-time collected operation data to the controller. The controller determines whether there is abnormal data in the received operation data and obtains the abnormal data. If it is a single collection, the MCU will first store the data in the MCU's cache after obtaining the operation data, and after receiving the data collection instruction issued by the controller, the historical operation data between the time when the data collection instruction was last received and the current time will be sent to the controller. The controller determines whether there is abnormal data in a large amount of historical operation data and obtains the abnormal data, thereby achieving the acquisition of operation data and identification of abnormal data through different preset collection methods.

[0063] Optionally, after obtaining abnormal data from current data, the method further includes: if there is no abnormal data in the current data, storing the current data in a data storage device; after detecting whether there is abnormal data in historical data, the method further includes: if there is no abnormal data in the historical data, storing the historical data in a data storage device.

[0064] Specifically, when there is no abnormal data in the running data, the data is directly sent to the data storage device. When there is abnormal data, the data also needs to be sent to the data storage device. At the same time, it is also determined based on the abnormal data which fault source in the server sent the abnormal data, thereby obtaining the node information of the fault source.

[0065] Similarly, after receiving the historical data, it is also identified whether there is abnormal data therein, and if there is no abnormality, the historical operation data is stored. If there is abnormal data, the data also needs to be sent to the data storage device. At the same time, it is also determined based on the abnormal data which fault source in the server sent the abnormal data, so as to obtain the node information of the fault source, and then, while processing the abnormal data, the abnormal data and non-abnormal data can also be stored, which can be used as reference data for abnormal cause analysis when the abnormality occurs again in the future.

[0066] Optionally, before obtaining the running data set fed back by the data storage device, the method also includes: determining a moment whose time difference with the current moment is less than a preset time difference, and obtaining multiple moment information; sending the multiple moment information and node information to the data storage device, wherein the node information includes node information of a first node and node information of at least one second node.

[0067] Specifically, when obtaining historical operation data from a data storage device, it is necessary to first confirm the generation time of the abnormal data, and determine the moment when the time difference with the generation moment is less than the preset time difference, obtain multiple moment information, and send the multiple moment information to the data storage device, so as to obtain the data before and after the moment when the abnormal data is generated from the data storage device, so that the cause of the abnormality can be analyzed according to the change pattern of each operation data over time.

[0068] Optionally, Figure 4 is a flowchart for determining an abnormality level according to an embodiment of the present application, such as Figure 4As shown, step S306 includes: step S402, obtaining the initial level of the first node; step S404, determining the occurrence frequency of abnormal data according to the operating data; step S406, judging whether the occurrence frequency is greater than the preset frequency; step S408, when the occurrence frequency is greater than the preset frequency, adjusting the initial level, and using the adjusted initial level as the abnormal level of the abnormal data; step S410, when the occurrence frequency is less than or equal to the preset frequency, determining the initial level as the abnormal level of the abnormal data.

[0069] Specifically, when determining the abnormality level, it is first necessary to determine the initial level corresponding to the fault source that generates the abnormal data, and adjust the initial level corresponding to the fault source based on a large amount of historical information of the fault source to obtain an updated level, and send the updated abnormality level to the controller so that the controller can better handle the abnormality.

[0070] For example, the severity level of repetitive anomalies can be upgraded. For example, the severity of a node is general, and its anomaly does not affect the normal operation of the device. However, if multiple repeated anomalies occur within a unit time, such as 24 hours, the link will be judged as unstable and upgraded to an important level for reporting.

[0071] You can also increase the severity level of general anomalies with increasing frequency. For example, if it originally occurred twice within 24 hours and now occurs five times, it is determined that the link instability has increased and the report is upgraded by one severity level.

[0072] Optionally, after obtaining the operating data set fed back by the data storage device, the method further includes: obtaining the data storage capacity of the data storage device at a preset time interval; determining whether the data storage capacity is greater than or equal to the preset storage capacity; and if the data storage capacity is greater than or equal to the preset storage capacity, deleting the operating data at the target moment with the largest time difference with the current moment in the data storage device.

[0073] Specifically, since the storage capacity in the data storage is limited, it is necessary to determine the data storage capacity in the data storage according to a preset time interval, and delete the data when the data storage capacity exceeds the preset storage capacity, so as to ensure that the latest acquired data can be stored normally, and deleting old data can alleviate the storage pressure of the data storage. The collected data is directly cached in the data cache area.

[0074] It should be noted that the data storage device may include two storage intervals. If the first storage area is full, it indicates that the storage capacity is greater than the preset storage capacity, and data needs to be deleted to ensure the normal operation of the data storage device.

[0075] Furthermore, in the data collector, two storage intervals can also be set for short-term caching of data that is not acquired by the processor. The processor is also required to determine whether the data exceeds the preset storage capacity in the data collector according to a preset time interval, thereby ensuring that the data in the data collector will not be lost due to data being full.

[0076] Optionally, before deleting the operating data at the target moment with the largest time difference with the current moment in the data storage device, the method also includes: determining whether the operating data at the target moment carries a preset identifier, wherein the preset identifier indicates that no operating data set has been received within a preset time interval; if the operating data at the target moment carries the preset identifier, retaining the operating data at the target moment, and re-executing the step of deleting the operating data at the target moment with the largest time difference with the current moment in the data storage device in the remaining operating data in the data storage device until the data storage amount is less than the preset storage amount.

[0077] Specifically, the operation data may not be uploaded to the MCU due to an abnormality in the controller MCU. At this time, it is necessary to add a preset mark to the abnormal data and store it in the data storage device. The data will be sent after the MCU is normal. At this time, if the operation data carrying the mark is not obtained for a long time, the operation data will time out and be deleted. At this time, the operation data carrying the preset mark can be skipped by identifying the preset mark, and the operation data that is after the operation data but does not carry the preset mark can be deleted, thereby ensuring that important data will not be lost.

[0078] 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.

[0079] In this embodiment, an abnormality detection device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and the descriptions that have been made will not be repeated. As used below, the terms "unit" and "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0080] Figure 5 is a schematic diagram of an abnormality detection device according to an embodiment of the present application, such as Figure 5 As shown, the device comprises:

[0081] The first acquisition unit 51 is used to acquire the abnormal data collected by the data collector, determine the node corresponding to the abnormal data on the server, and obtain the first node.

[0082] The second acquisition unit 52 is used to determine a node associated with the first node in the server, obtain at least one second node, and obtain an operation data set fed back by the data storage device, wherein the operation data set includes the operation data of the first node and the operation data of at least one second node.

[0083] The first determining unit 53 is used to determine the abnormality level of the abnormal data according to the operating data set, and send the abnormality level and the operating data set to the controller.

[0084] The receiving unit 54 is used to receive the abnormality detection result returned by the controller according to the abnormality level and the operation data.

[0085] The abnormality detection device provided in the embodiment of the present application is used to obtain the abnormal data collected in the data collector through the first acquisition unit 51, determine the node corresponding to the abnormal data on the server, and obtain the first node. The second acquisition unit 52 is used to determine the node associated with the first node in the server, obtain at least one second node, and obtain the operation data set fed back by the data storage device, wherein the operation data set includes the operation data of the first node and the operation data of at least one second node. The first determination unit 53 is used to determine the abnormality level of the abnormal data according to the operation data set, and send the abnormality level and the operation data set to the controller. The receiving unit 54 is used to receive the abnormality detection result returned by the controller based on the abnormality level and the operation data. The abnormal data in the server is collected by the data collector, and the abnormal node in the server that generates the abnormal data is determined based on the abnormal data, and the node information of multiple nodes associated with the abnormal node is obtained at the same time, and the information of the above multiple nodes is sent to the data storage device at the same time, and the operation data of the above multiple nodes is obtained from the data storage device, so as to ensure the integrity of the data required for analyzing the cause of the abnormality. At the same time, after obtaining multiple operation data, it is necessary to determine the abnormal level of this abnormality based on the information in the operation data, and send the abnormal level and the operation data to the controller, so that the controller can determine the cause of this abnormality based on the abnormal level and the operation data. Therefore, the problem of low efficiency and accuracy in manually troubleshooting the cause of server failure based on abnormal data due to incomplete and untimely reported abnormal data in the related technology can be solved, and the effect of quickly and accurately detecting the abnormality of the server and determining the cause of the abnormality of the server can be achieved.

[0086] Optionally, in the abnormality detection device provided in the embodiment of the present application, the first acquisition unit 51 includes: a first acquisition module, used to acquire the acquisition mode of the data collector; a second acquisition module, used to acquire the current data in the data collector according to a first preset frequency when the acquisition mode is continuous acquisition, and acquire abnormal data from the current data; a first judgment module, used to judge whether the acquisition instruction sent by the controller is received when the acquisition mode is single acquisition, and acquire historical data in the data collector when the acquisition instruction is received, wherein the historical data is the operating data collected by the data collector between the current moment and the last moment when the acquisition instruction was received; a third acquisition module, used to detect whether there is abnormal data in the historical data, and acquire the abnormal data from the historical data if there is abnormal data.

[0087] Optionally, in the anomaly detection device provided in the embodiment of the present application, the device also includes: a first storage unit, used to store current data in a data storage device when there is no abnormal data in the current data; the device also includes: a second storage unit, used to store historical data in the data storage device when there is no abnormal data in the historical data.

[0088] Optionally, in the anomaly detection device provided in the embodiment of the present application, the device also includes: a second determination unit, used to determine a moment whose time difference with the current moment is less than a preset time difference, and obtain multiple moment information; a sending unit, used to send multiple moment information and node information to a data storage device, wherein the node information includes node information of a first node and node information of at least one second node.

[0089] Optionally, in the anomaly detection device provided in the embodiment of the present application, the first determination unit 53 includes: a fourth acquisition module, used to acquire the initial level of the first node; a first determination module, used to determine the frequency of occurrence of abnormal data based on the operating data; a second judgment module, used to judge whether the frequency of occurrence is greater than a preset frequency; an adjustment module, used to adjust the initial level when the frequency of occurrence is greater than the preset frequency, and use the adjusted initial level as the abnormal level of the abnormal data; and a second determination module, used to determine the initial level as the abnormal level of the abnormal data when the frequency of occurrence is less than or equal to the preset frequency.

[0090] Optionally, in the abnormality detection device provided in the embodiment of the present application, the device also includes: a third acquisition unit, used to obtain the data storage capacity of the data storage at a preset time interval; a first judgment unit, used to judge whether the data storage capacity is greater than or equal to the preset storage capacity; and a deletion unit, used to delete the operating data at the target moment with the largest time difference with the current moment in the data storage device when the data storage capacity is greater than or equal to the preset storage capacity.

[0091] Optionally, in the anomaly detection device provided in the embodiment of the present application, the device also includes: a second judgment unit, used to judge whether the operating data at the target moment carries a preset identifier, wherein the preset identifier indicates that the operating data set has not been received within a preset time interval; an execution unit, used to retain the operating data at the target moment when the operating data at the target moment carries a preset identifier, and re-execute the step of deleting the operating data at the target moment with the largest time difference between the data storage device and the current moment in the remaining operating data in the data storage device until the data storage amount is less than the preset storage amount.

[0092] 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.

[0093] 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.

[0094] 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.

[0095] 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.

[0096] 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.

[0097] 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.

[0098] 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.

[0099] 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 anomaly detection method, characterized in that: include: Acquire the abnormal data collected in the data collector, determine the node corresponding to the abnormal data on the server, and obtain the first node; Determine, in the server, a node associated with the first node, obtain at least one second node, and acquire an operation data set fed back by a data storage device, wherein the operation data set includes the operation data of the first node and the operation data of the at least one second node; Determining an abnormality level of the abnormal data according to the operating data set, and sending the abnormality level and the operating data set to a controller; receiving an abnormality detection result returned by the controller according to the abnormality level and the operation data; Determining the abnormality level of the abnormal data according to the operating data set includes: Obtaining an initial level of the first node; determining the occurrence frequency of the abnormal data according to the operation data; Determining whether the occurrence frequency is greater than a preset frequency; When the occurrence frequency is greater than the preset frequency, adjusting the initial level, and using the adjusted initial level as the abnormal level of the abnormal data; In a case where the occurrence frequency is less than or equal to the preset frequency, the initial level is determined as the abnormal level of the abnormal data.

2. The method according to claim 1, characterized in that The abnormal data collected by the data collector include: Acquire the acquisition mode of the data collector; When the acquisition mode is continuous acquisition, current data in the data collector is acquired according to a first preset frequency, and abnormal data is acquired from the current data; When the acquisition mode is single acquisition, determine whether the acquisition instruction sent by the controller is received, and when the acquisition instruction is received, obtain the historical data in the data collector, wherein the historical data is the operation data collected by the data collector between the current time and the time when the acquisition instruction was last received; Detect whether there is abnormal data in the historical data, and if the abnormal data exists, obtain the abnormal data from the historical data.

3. The method according to claim 2, characterized in that After acquiring abnormal data from the current data, the method further includes: If there is no abnormal data in the current data, storing the current data in the data storage; After detecting whether there is abnormal data in the historical data, the method further includes: When the abnormal data does not exist in the historical data, the historical data is stored in the data storage.

4. The method according to claim 1, characterized in that: Before acquiring the operating data set fed back by the data storage, the method further includes: Determine a moment whose time difference from the current moment is less than a preset time difference, and obtain multiple moments information; The multiple time information and node information are sent to the data storage, wherein the node information includes the node information of the first node and the node information of the at least one second node.

5. The method according to claim 1, characterized in that After acquiring the operating data set fed back by the data storage, the method further includes: Acquiring the data storage capacity of the data storage device at preset time intervals; Determine whether the data storage capacity is greater than or equal to a preset storage capacity; When the data storage amount is greater than or equal to the preset storage amount, the operation data at the target time with the largest time difference from the current time in the data storage is deleted.

6. The method according to claim 5, characterized in that Before deleting the operation data at the target time with the largest time difference from the current time in the data storage, the method further includes: Determining whether the operation data at the target time carries a preset flag, wherein the preset flag indicates that the operation data set has not been received within a preset time interval; When the operating data at the target moment carries the preset identifier, the operating data at the target moment is retained, and the step of deleting the operating data at the target moment with the largest time difference between the data storage device and the current moment is re-executed in the remaining operating data in the data storage device until the data storage capacity is less than the preset storage capacity.

7. An abnormality detection device, characterized in that: include: A first acquisition unit is used to acquire the abnormal data collected by the data collector, determine the node corresponding to the abnormal data on the server, and obtain a first node; a second acquisition unit, configured to determine a node associated with the first node in the server, obtain at least one second node, and acquire an operation data set fed back by a data storage device, wherein the operation data set includes the operation data of the first node and the operation data of the at least one second node; a first determining unit, configured to determine an abnormality level of the abnormal data according to the operating data set, and send the abnormality level and the operating data set to a controller; a receiving unit, configured to receive an abnormality detection result returned by the controller according to the abnormality level and the operation data; The first determination unit includes: a fourth acquisition module, used to acquire the initial level of the first node; a first determination module, used to determine the frequency of occurrence of abnormal data according to the operation data; a second judgment module, used to judge whether the frequency of occurrence is greater than a preset frequency; an adjustment module, used to adjust the initial level when the frequency of occurrence is greater than the preset frequency, and use the adjusted initial level as the abnormal level of the abnormal data; and a second determination module, used to determine the initial level as the abnormal level of the abnormal data when the frequency of occurrence is less than or equal to the preset frequency.

8. 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 6 when executed by a processor.

9. 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 6 are implemented.

Citation Information

Patent Citations

  • Business process abnormity warning method and device, electronic equipment and storage medium

    CN111010291A

  • Fault detection method and device, equipment and computer readable storage medium

    CN113918376A