A server anomaly detection method, device, equipment and storage medium

By using the adversarial autoencoding model and the POT model constructed using unsupervised learning algorithms in server anomaly detection, the problem of low detection efficiency and accuracy in the existing technology is solved, and the ability to efficiently identify anomalies in an unstable environment is achieved. .

CN114564345BActive Publication Date: 2024-10-15INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210181578.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-25
Publication Date
2024-10-15
Estimated Expiration
2042-02-25

AI Technical Summary

Technical Problem

Existing technologies cannot accurately detect server anomalies, especially in actual environments where server workloads are unstable and sample labeling is difficult. Conventional statistical methods are difficult to improve detection efficiency and accuracy.

Method used

The adversarial autoencoding model based on the unsupervised learning algorithm is used to process the server performance data, and the POT model is used to adaptively select the abnormal threshold and determine the time point when the server abnormality occurs.

Benefits of technology

It improves the efficiency and accuracy of server anomaly detection, can effectively identify anomalies in non-steady environments, and reduces manual labeling costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114564345B_ABST
    Figure CN114564345B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and storage medium for detecting anomalies in a server, including: obtaining performance data representing the operating status of a server to be detected, and obtaining time series data composed of the performance data; processing the time series data using an adversarial autoencoder model constructed based on an unsupervised learning algorithm, and obtaining an output value sequence corresponding to the time series data; determining an anomaly threshold through a POT model based on the output value sequence, and determining the time point corresponding to the output value greater than the anomaly threshold in the output value sequence as the time when the anomaly of the server to be detected occurs. It can be seen that the present application uses an adversarial autoencoder model constructed by an unsupervised learning algorithm of the server to perform time point sequence anomaly detection on the performance data during operation, and finds the time when the server has abnormal fluctuations based on the abnormal threshold adaptively selected by the POT model, thereby improving the efficiency and accuracy of server anomaly detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a server anomaly detection method, device, equipment and storage medium. Background Art

[0002] In an actual production environment, it is necessary to find the moment when data anomalies occur during server operation so as to conduct corresponding quality analysis on the server. In an actual operating environment, due to the constant changes in the environment, the server workload is often in a non-steady state, and abnormal situations are very rare in the real environment and it is very difficult to label samples. Existing conventional statistical methods cannot accurately detect server anomalies. For example, algorithms based on supervised learning are difficult to train models due to the extremely uneven positive and negative samples.

[0003] Therefore, how to improve the efficiency and accuracy of server anomaly detection is a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a server anomaly detection method, device, equipment and storage medium, which can improve the efficiency and accuracy of server anomaly detection. The specific scheme is as follows:

[0005] The first aspect of the present application provides a server anomaly detection method, comprising:

[0006] Acquire performance data representing the operating status of the server to be detected, and obtain time series data composed of the performance data;

[0007] Processing the time series data using an adversarial autoencoder model constructed based on an unsupervised learning algorithm to obtain an output value sequence corresponding to the time series data;

[0008] An abnormality threshold is determined based on the output value sequence through the POT model, and a time point corresponding to an output value in the output value sequence that is greater than the abnormality threshold is determined as the time when the abnormality of the server to be detected occurs.

[0009] Optionally, the acquiring of performance data representing the operating status of the server to be detected to obtain time series data composed of the performance data includes:

[0010] The performance data of the server to be detected during operation is collected using the telegraf tool according to a preset period to obtain the time series data composed of the performance data.

[0011] Optionally, after collecting the performance data of the server to be detected during operation by using the telegraf tool according to a preset period, the method further includes:

[0012] The collected performance data is stored in a time series database. When a detection instruction is obtained, the performance data in the time series database is segmented by a sliding window to read the performance data of a preset time window to obtain the time series data composed of the performance data.

[0013] Optionally, the processing of the time series data using an adversarial autoencoder model constructed based on an unsupervised learning algorithm to obtain an output value sequence corresponding to the time series data includes:

[0014] Using the adversarial network in the adversarial autoencoder model to perform a first processing on the time series data to obtain a first output value sequence including a first output value;

[0015] Performing a second process on the time series data using the autoencoder network in the adversarial autoencoder model to obtain a second output value sequence including a second output value;

[0016] The first output value at each time point in the first output value sequence is respectively integrated and calculated with the second output value at the corresponding time point in the second output value sequence to obtain the output value sequence.

[0017] Optionally, the first output value is a discrimination score S1 output by a discriminator of the adversarial network, and the second output value is a reconstruction error value S2 output by a decoder in the autoencoder network;

[0018] Correspondingly, the output value S in the output value sequence is:

[0019] S=λS1+(1-λ)S2

[0020] Among them, λ is a hyperparameter.

[0021] Optionally, the autoencoder network is a variational autoencoder network.

[0022] Optionally, determining an abnormal threshold value through a POT model based on the output value sequence includes:

[0023] Determine the abnormal threshold value corresponding to the output value sequence by using the first relational expression and the second relational expression in the POT model;

[0024] The first relational expression and the second relational expression are respectively:

[0025]

[0026]

[0027] Among them, th is the initial abnormal threshold, γ and β are the shape parameter and scale parameter in the generalized Pareto distribution, and is the maximum likelihood estimate of γ and β, S is the output value in the output value sequence, Q is the number of output values ​​in the output value sequence, Q th is the number of output values ​​where S>th, and q is the confidence level.

[0028] A second aspect of the present application provides a server anomaly detection device, comprising:

[0029] A data acquisition module is used to acquire performance data representing the operating status of the server to be detected, and obtain time series data composed of the performance data;

[0030] A data processing module, used to process the time series data using an adversarial autoencoder model constructed based on an unsupervised learning algorithm to obtain an output value sequence corresponding to the time series data;

[0031] The anomaly detection module is used to determine an anomaly threshold through a POT model based on the output value sequence, and determine the time point corresponding to the output value greater than the anomaly threshold in the output value sequence as the anomaly occurrence time of the server to be detected.

[0032] A third aspect of the present application provides an electronic device, comprising a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the aforementioned server anomaly detection method.

[0033] A fourth aspect of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are loaded and executed by a processor, the aforementioned server anomaly detection method is implemented.

[0034] In this application, the performance data characterizing the running status of the server to be detected is first obtained to obtain the time series data composed of the performance data; then the time series data is processed by the adversarial autoencoder model constructed based on the unsupervised learning algorithm to obtain the output value sequence corresponding to the time series data; finally, the abnormal threshold is determined through the POT model based on the output value sequence, and the time point corresponding to the output value greater than the abnormal threshold in the output value sequence is determined as the abnormal occurrence time of the server to be detected. It can be seen that this application uses the adversarial autoencoder model constructed by the server through the unsupervised learning algorithm to perform time point sequence abnormal point detection on the performance data during operation, and finds the time when the server has abnormal fluctuations based on the abnormal threshold adaptively selected by the POT model, thereby improving the efficiency and accuracy of server abnormality detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0036] Figure 1 A flow chart of a server anomaly detection method provided by this application;

[0037] Figure 2 A schematic diagram of the training process of an adversarial autoencoder model provided in this application;

[0038] Figure 3 A specific schematic diagram of the server anomaly detection process provided for this application;

[0039] Figure 4 A schematic diagram of the structure of a server anomaly detection device provided in this application;

[0040] Figure 5 A structural diagram of a server anomaly detection electronic device provided in this application. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] In the existing actual operating environment, due to the constant changes in the environment, the server's workload is often in a non-steady state, and abnormal situations are very rare in the real environment and it is very difficult to label samples. The existing conventional statistical methods cannot accurately detect server anomalies. For example, the supervised learning-based algorithm is difficult to train the model due to the extremely uneven positive and negative samples. In view of the above technical defects, this application provides a server anomaly detection solution that can improve the efficiency and accuracy of server anomaly detection.

[0043] Figure 1 A flow chart of a server anomaly detection method provided in an embodiment of the present application. Figure 1 As shown, the server anomaly detection method includes:

[0044] S11: Acquire performance data representing the operating status of the server to be detected, and obtain time series data composed of the performance data.

[0045] In this embodiment, performance data characterizing the running state of the server to be detected is obtained to obtain time series data composed of the performance data. The performance data is monitoring data of the CPU, memory, hard disk, etc., including but not limited to real-time data of indicators such as CPU utilization, CPU user utilization, memory utilization, and disk utilization. These data reflect the running state of the server to a certain extent. By processing these data, abnormal behavior in the operation of the server can be discovered, that is, server abnormality diagnosis.

[0046] In this embodiment, the performance data of the server to be detected during operation is first collected using the telegraf tool according to a preset period to obtain the time series data composed of the performance data. The collected performance data is then stored in a time series database. When a detection instruction is obtained, the performance data in the time series database is segmented by a sliding window to read the performance data of a preset time window to obtain the time series data composed of the performance data. Telegraf is an agent program that can collect statistical data of systems and services. It has a small memory footprint and can easily add extensions to support other services through a plug-in system, and can write the collected data to the InfluxDB database.

[0047] In the system performance monitoring of the OpenStack cloud platform, the telegraf tool is used to collect the performance data of the server operation. The preset period defaults to 60 seconds, and the collected data is stored in the Influxdb time series database. These collected data constitute the source data set and can also be used to train the subsequent adversarial autoencoding model. In addition, it is necessary to determine a data window, for example, the data window is determined to be 180, that is, 3 hours of data is used as a detection window. The data is divided into fixed lengths in the form of a sliding window, and the time window is also used as the basic unit when performing anomaly detection. This ensures the practicality of the adversarial autoencoding model in actual use.

[0048] S12: Process the time series data using an adversarial autoencoding model constructed based on an unsupervised learning algorithm to obtain an output value sequence corresponding to the time series data.

[0049] In this embodiment, after acquiring the data, the time series data is processed using an adversarial autoencoding model constructed based on an unsupervised learning algorithm to obtain an output value sequence corresponding to the time series data. The adversarial autoencoding model in the above process includes two networks: an adversarial network composed of an encoder G1 and a discriminator D, and an autoencoding network composed of an encoder G1 and a decoder G2. On the one hand, the adversarial network in the adversarial autoencoding model is used to perform a first processing on the time series data to obtain a first output value sequence containing a first output value. On the other hand, the autoencoding network in the adversarial autoencoding model is used to perform a second processing on the time series data to obtain a second output value sequence containing a second output value.

[0050] To this end, the training of the adversarial autoencoder model includes the training of the encoder G1, the decoder G2 and the discriminator D. In principle, the unsupervised learning algorithm only learns the patterns of normal samples, which eliminates the inaccuracy of conventional statistical models to a certain extent and saves the cost of manual labeling. The encoder G1 and the decoder G2 use a CNN network to convert one-dimensional data into two-dimensional data so that the model can better learn the spatial distribution characteristics of the data and can better perform feature extraction and restoration. The encoder G1 extracts features from the training samples to generate feature vectors, which serve as inputs to the decoder G2 and the discriminator D respectively. After restoring the features, the decoder G2 calculates the reconstruction loss based on the original input, and updates the parameters of the encoder G1 and the decoder G2. The discriminator D combines the feature vector generated by the encoder G1 and the vector sampled from the mixed Gaussian model to calculate the identification loss to update the discriminator D and the encoder G1. This not only improves the identification ability of the discriminator D, but also makes the feature vector generated by the encoder G1 more and more real, and eventually can reach the level of confusing the discriminator D, and the two reach a certain balance. The model training process is as follows Figure 2 shown.

[0051] In this embodiment, the autoencoder network is a variational autoencoder network. The variational autoencoder learns the statistical features in the original data, eliminates the influence of outliers to a certain extent, and retains the law of the data itself. By calculating the error between the original data and the reconstructed data, the abnormal data is mapped in the error, which has the effect of amplifying the abnormal data to a certain extent. First, the time series data is normalized to eliminate the influence of different scales on the data:

[0052] x std =(xx min ) / (x max -x min );

[0053]

[0054] Among them, x maxis the maximum value of each sample data, x min is the minimum value of each sample data, max is the maximum value of the mapping interval, min is the minimum value of the mapping interval, x std is the standardized result, x scale is the normalized result.

[0055] The autoencoder network is actually a process of information compression and restoration. The encoder G1 compresses the high-dimensional data vector x into a low-dimensional feature vector z, and the decoder G2 is responsible for restoring the low-dimensional feature vector z as much as possible. There is information loss in the encoding and decoding process. The greater the information loss, the worse the reconstruction effect. The training of the autoencoder network is to enhance the network's ability to compress and restore information by minimizing the reconstruction loss. Here, the mean square error loss is used, and the average loss function of the autoencoder network can be expressed as:

[0056]

[0057] Among them, x i is a sample from the original data.

[0058] In this embodiment, the idea of ​​adversarial training comes from GAN, which can be seen as a game between the two. That is, the game between the encoder G1 and the discriminator D. The goal of training is to make the encoding result closer and closer to the "real distribution", that is, the preset prior distribution, and at the same time enable the discriminator D to better distinguish whether the feature vector comes from the feature vector output by the encoder G1 or the vector sampled from the "real distribution". The prior distribution is assumed to be a mixed Gaussian distribution, because the mixed Gaussian distribution can fit any distribution after being projected by a neural network. The overall optimization goal can be expressed as follows:

[0059]

[0060] The optimization objective of the discriminator D is expressed as:

[0061]

[0062] The optimization goal of encoder G1 is:

[0063]

[0064] Among them, z i is a vector sampled from the prior distribution, x i is a sample from the original data, and n is the number of samples.

[0065] Finally, the first output value at each time point in the first output value sequence is integrated and calculated with the second output value at the corresponding time point in the second output value sequence to obtain the output value sequence. In this embodiment, the first output value is the identification score S1 output by the discriminator of the adversarial network, and the second output value is the reconstruction error value S2 output by the decoder in the autoencoder network. Correspondingly, the output value S in the output value sequence is:

[0066] S=λS1+(1-λ)S2

[0067] Among them, λ is a hyperparameter.

[0068] The reconstruction error generated by the autoencoder network part of the model and the discrimination score generated by the adversarial network part are combined to judge the abnormality of the sample. The basis for judging the abnormality is whether the test sample conforms to the normal mode. Through training, the autoencoder network has learned the projection function q(z|x) from the sample space X to the feature space Z and the projection function h(z|x) from the feature Z space to the sample space X, and can perform good encoding and decoding for samples that conform to the normal mode. Therefore, for normal data, the reconstruction error calculated by the autoencoder network is small, while the reconstruction error of abnormal data is large. After training the adversarial network, the encoder G1 can encode data that conforms to the normal distribution into a feature vector that can confuse the discriminator D, and the discriminator D often thinks that this is "real", while abnormal data is difficult to be encoded well, and its encoded feature vector will be judged as "false" by the discriminator D.

[0069] S13: determining an abnormality threshold through a POT model based on the output value sequence, and determining a time point corresponding to an output value in the output value sequence that is greater than the abnormality threshold as a time point when the abnormality of the server to be detected occurs.

[0070] In this embodiment, an abnormality threshold is determined based on the output value sequence through the POT model, and the time point corresponding to the output value in the output value sequence greater than the abnormality threshold is determined as the abnormality occurrence time of the server to be detected. Figure 3 As shown, the output value S in the output value sequence in the figure is the total anomaly score.

[0071] It should be noted that the abnormal threshold of this embodiment is obtained based on the POT model through a sequence composed of all S values. The POT model (Peaks over Threshold) models all observations in the sample that exceed a sufficiently large threshold. The total abnormal score is adaptively thresholded according to the POT model in the extreme value theory (EVT). Extreme value theory is a statistical theory for finding the law of extreme values ​​in a sequence. It mainly deals with extreme values ​​that seriously deviate from the mean of the distribution. Its advantage is that there is no need to make assumptions about the data distribution and the purpose of automatically setting the threshold can be achieved through parameter selection. The specific process of selecting the threshold through POT is: using the first relationship and the second relationship in the POT model to determine the abnormal threshold corresponding to the output value sequence.

[0072] The first relational expression and the second relational expression are respectively:

[0073]

[0074]

[0075] Among them, th is the initial abnormal threshold, γ and β are the shape parameter and scale parameter in the generalized Pareto distribution, and is the maximum likelihood estimate of γ and β, S is the output value in the output value sequence, Q is the number of output values ​​in the output value sequence, Q th is the number of output values ​​when S>th, and q is the confidence level. When calculating, you only need to adjust q to get the threshold of the total anomaly score. The part of the total anomaly score sequence that is higher than the threshold is the outlier in the sequence. It can be understood that This is the generalized Pareto distribution, which is defined as: if X is a random variable, then the probability distribution of X satisfies where x is any value greater than x min The number of x min is the smallest possible value of x, and k is a positive parameter.

[0076] It can be seen that the embodiment of the present application first obtains the performance data characterizing the operating status of the server to be detected, and obtains the time series data composed of the performance data; then the time series data is processed using the adversarial autoencoder model constructed based on the unsupervised learning algorithm to obtain the output value sequence corresponding to the time series data; finally, the abnormal threshold is determined through the POT model based on the output value sequence, and the time point corresponding to the output value greater than the abnormal threshold in the output value sequence is determined as the abnormal occurrence time of the server to be detected. It can be seen that the present application uses the adversarial autoencoder model constructed by the server through the unsupervised learning algorithm to perform time point sequence abnormal point detection on the performance data during operation, and finds the time when the server has abnormal fluctuations based on the abnormal threshold adaptively selected by the POT model, thereby improving the efficiency and accuracy of server abnormality detection.

[0077] See also Figure 4 As shown, the embodiment of the present application also discloses a server anomaly detection device, including:

[0078] A data acquisition module 11 is used to acquire performance data representing the operating status of the server to be detected, and obtain time series data composed of the performance data;

[0079] A data processing module 12 is used to process the time series data using an adversarial autoencoder model constructed based on an unsupervised learning algorithm to obtain an output value sequence corresponding to the time series data;

[0080] The anomaly detection module 13 is used to determine an anomaly threshold through a POT model based on the output value sequence, and determine the time point corresponding to the output value greater than the anomaly threshold in the output value sequence as the anomaly occurrence time of the server to be detected.

[0081] It can be seen that the embodiment of the present application first obtains the performance data characterizing the operating status of the server to be detected, and obtains the time series data composed of the performance data; then the time series data is processed using the adversarial autoencoder model constructed based on the unsupervised learning algorithm to obtain the output value sequence corresponding to the time series data; finally, the abnormal threshold is determined through the POT model based on the output value sequence, and the time point corresponding to the output value greater than the abnormal threshold in the output value sequence is determined as the abnormal occurrence time of the server to be detected. It can be seen that the present application uses the adversarial autoencoder model constructed by the server through the unsupervised learning algorithm to perform time point sequence abnormal point detection on the performance data during operation, and finds the time when the server has abnormal fluctuations based on the abnormal threshold adaptively selected by the POT model, thereby improving the efficiency and accuracy of server abnormality detection.

[0082] In some specific embodiments, the data acquisition module 11 specifically includes:

[0083] A data collection unit, used to collect the performance data of the server to be detected during operation using a telegraf tool according to a preset period;

[0084] A data reading unit is used to store the collected performance data into a time series database. When a detection instruction is obtained, the performance data in the time series database is segmented by a sliding window to read the performance data of a preset time window to obtain the time series data composed of the performance data.

[0085] In some specific embodiments, the data processing module 12 specifically includes:

[0086] A first processing unit, configured to perform a first processing on the time series data using an adversarial network in the adversarial autoencoder model to obtain a first output value sequence including a first output value;

[0087] A second processing unit is used to perform a second processing on the time series data using the autoencoder network in the adversarial autoencoder model to obtain a second output value sequence including a second output value;

[0088] An integration calculation unit is used to integrate and calculate the first output value at each time point in the first output value sequence with the second output value at the corresponding time point in the second output value sequence to obtain the output value sequence.

[0089] In some specific embodiments, the first output value is a discrimination score S1 output by a discriminator of the adversarial network, and the second output value is a reconstruction error value S2 output by a decoder in the autoencoder network;

[0090] Correspondingly, the output value S in the output value sequence is:

[0091] S=λS1+(1-λ)S2

[0092] Among them, λ is a hyperparameter.

[0093] In some specific embodiments, the anomaly detection module 13 is further configured to determine the anomaly threshold corresponding to the output value sequence using the first relational expression and the second relational expression in the POT model;

[0094] The first relational expression and the second relational expression are respectively:

[0095]

[0096]

[0097] Among them, th is the initial abnormal threshold, γ and β are the shape parameter and scale parameter in the generalized Pareto distribution, and is the maximum likelihood estimate of γ and β, S is the output value in the output value sequence, Q is the number of output values ​​in the output value sequence, Q th is the number of output values ​​where S>th, and q is the confidence level.

[0098] Furthermore, an embodiment of the present application also provides an electronic device. Figure 5 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be considered as any limitation on the scope of use of the present application.

[0099] Figure 5 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the server anomaly detection method disclosed in any of the aforementioned embodiments.

[0100] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0101] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 221, a computer program 222 and data 223, etc. The storage method can be temporary storage or permanent storage.

[0102] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the server anomaly detection method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks. The data 223 can include performance data collected by the electronic device 20.

[0103] Furthermore, an embodiment of the present application also discloses a storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the server anomaly detection method steps disclosed in any of the aforementioned embodiments are implemented.

[0104] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0105] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0106] The server anomaly detection method, device, equipment and storage medium provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A server anomaly detection method, It is characterized in that include: Acquire performance data representing the operating status of the server to be detected, and obtain time series data composed of the performance data; Processing the time series data using an adversarial autoencoder model constructed based on an unsupervised learning algorithm to obtain an output value sequence corresponding to the time series data; Determine an abnormality threshold through the POT model based on the output value sequence, and determine the time point corresponding to the output value greater than the abnormality threshold in the output value sequence as the abnormality occurrence time of the server to be detected; The method of processing the time series data using the adversarial autoencoder model constructed based on the unsupervised learning algorithm to obtain an output value sequence corresponding to the time series data includes: Using the adversarial network in the adversarial autoencoder model to perform a first processing on the time series data to obtain a first output value sequence including a first output value; Performing a second process on the time series data using the autoencoder network in the adversarial autoencoder model to obtain a second output value sequence including a second output value; Integrate and calculate the first output value at each time point in the first output value sequence and the second output value at the corresponding time point in the second output value sequence to obtain the output value sequence; The first output value is the identification score S output by the discriminator of the adversarial network 1 , the second output value is the reconstruction error value S output by the decoder in the autoencoder network 2 ; Correspondingly, the output value S in the output value sequence is: S=λS 1 +(1-λ)S 2 ; where λ is a hyperparameter.

2. The server anomaly detection method according to claim 1, It is characterized in that The step of acquiring performance data representing the operating status of the server to be detected and obtaining time series data composed of the performance data includes: The performance data of the server to be detected during operation is collected using the telegraf tool according to a preset period to obtain the time series data composed of the performance data.

3. The server anomaly detection method according to claim 2, It is characterized in that After collecting the performance data of the server to be detected during operation by using the telegraf tool according to a preset period, the method further includes: The collected performance data is stored in a time series database. When a detection instruction is obtained, the performance data in the time series database is segmented by a sliding window to read the performance data of a preset time window to obtain the time series data composed of the performance data.

4. The server anomaly detection method according to claim 1, It is characterized in that The autoencoder network is a variational autoencoder network.

5. The server anomaly detection method according to claim 1, It is characterized in that Determining an abnormal threshold value through a POT model based on the output value sequence includes: Determine the abnormal threshold value corresponding to the output value sequence by using the first relational expression and the second relational expression in the POT model; The first relational expression and the second relational expression are respectively: ; ; Among them, th is the initial abnormal threshold, γ and β are the shape parameter and scale parameter in the generalized Pareto distribution, and is the maximum likelihood estimate of γ and β, S is the output value in the output value sequence, Q is the number of output values ​​in the output value sequence, Q th is the number of output values ​​where S>th, and q is the confidence level.

6. A server anomaly detection device, It is characterized in that include: A data acquisition module is used to acquire performance data representing the operating status of the server to be detected, and obtain time series data composed of the performance data; A data processing module, used to process the time series data using an adversarial autoencoder model constructed based on an unsupervised learning algorithm to obtain an output value sequence corresponding to the time series data; An anomaly detection module, used to determine an anomaly threshold through a POT model based on the output value sequence, and determine the time point corresponding to the output value greater than the anomaly threshold in the output value sequence as the anomaly occurrence time of the server to be detected; Wherein, the data processing module is further used for: Using the adversarial network in the adversarial autoencoder model to perform a first processing on the time series data to obtain a first output value sequence including a first output value; Performing a second process on the time series data using the autoencoder network in the adversarial autoencoder model to obtain a second output value sequence including a second output value; Integrate and calculate the first output value at each time point in the first output value sequence and the second output value at the corresponding time point in the second output value sequence to obtain the output value sequence; The first output value is the identification score S output by the discriminator of the adversarial network 1 , the second output value is the reconstruction error value S output by the decoder in the autoencoder network 2 ; Correspondingly, the output value S in the output value sequence is: S=λS 1 +(1-λ)S 2 ; where λ is a hyperparameter.

7. An electronic device, It is characterized in that The electronic device comprises a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the server anomaly detection method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, It is characterized in that Used to store computer executable instructions, which, when loaded and executed by a processor, implement the server anomaly detection method as described in any one of claims 1 to 5.