An intelligent operation and maintenance method based on time series data

Through the intelligent operation and maintenance method based on time series data, the multi-modal fault detection model using dual-branch contrastive learning and the isolation forest algorithm, combined with the Alibaba big language model, the problem of fault identification and classification under the microservice architecture is solved, and an efficient, Accurate fault handling and system stability improvement.

CN118656741BActive Publication Date: 2024-10-29NANKAI UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411111099.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-10-29
Estimated Expiration
2044-08-14

AI Technical Summary

Technical Problem

Under the microservice architecture, traditional rule-based and supervised learning methods are difficult to effectively process large-scale, high-dimensional performance data and log data, making fault identification and classification difficult, and placing high demands on operation and maintenance personnel.

Method used

Using an intelligent operation and maintenance method based on time series data, through the multi-modal fault detection model of dual-branch comparative learning and the isolation forest algorithm, combined with the Alibaba big language model, it can achieve in-depth analysis and real-time fault detection of performance characteristic data and log characteristic data. Automatically identify and classify faults.

Benefits of technology

It significantly improves the efficiency and accuracy of fault handling, reduces the dependence on manual operation and maintenance, adapts to the dynamics of software services, enhances the stability and reliability of the system, and can handle new anomalies that have not been observed before.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656741B_ABST
    Figure CN118656741B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of electronic digital data processing technology, and in particular to an intelligent operation and maintenance method based on time series data, comprising the following steps: collecting original time series operation and maintenance data, and dividing them into corresponding training sets and test sets; preprocessing performance characteristic data and standard log characteristic data to obtain performance characteristic data and differential log characteristic data; performing fault detection on the performance characteristic data and standard log characteristic data respectively, and performing offline model training to obtain a multimodal fault detection model, and collecting abnormal samples into fault samples; integrating the multimodal fault detection model and the fault detection model based on Alibaba's large language model into an online model, and realizing real-time fault detection for operation and maintenance data. The method provided by the present invention can realize in-depth analysis of performance data and log data of large-scale computer systems, and automatically identify and classify faults, thereby improving the efficiency and accuracy of fault handling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to an intelligent operation and maintenance method based on time series data. Background Art

[0002] With the rapid development of information technology, the stability and reliability of large-scale computer systems have become critical to the normal operation of enterprises and organizations. Operation and maintenance is the process by which technical operation and maintenance personnel plan information, networks, and services according to business needs, and keep services stable and available for a long time through network monitoring, event warning, business scheduling, troubleshooting and upgrading. In the early days, most of the operation and maintenance work was done manually by operation and maintenance personnel. This operation and maintenance model is not only inefficient, but also consumes a lot of human resources. At the same time, the rise of cloud computing has promoted the transformation of software system architecture from traditional monolithic architecture to microservice architecture. This transformation makes the system more flexible and scalable, but also brings higher complexity. And as an emerging operation and maintenance technology, intelligent operation and maintenance is gradually replacing the traditional manual operation and maintenance model to cope with the increasingly complex system environment and improve operation and maintenance efficiency.

[0003] The popularity of microservice architecture has significantly increased the complexity of the system. The calling relationships between services are intricate. Once a fault occurs, it becomes extremely difficult to locate the root cause and trace the fault. In addition, the dynamic nature of software services requires the system to quickly adapt to iterative changes, which places higher demands on operation and maintenance personnel. In this context, how to effectively manage and maintain systems under the microservice architecture has become an urgent problem to be solved in the field of operation and maintenance. Intelligent operation and maintenance aims to automatically learn and summarize rules from massive operation and maintenance data through artificial intelligence algorithms such as machine learning, so as to achieve intelligent management and maintenance of large-scale systems. This data-driven intelligent operation and maintenance model can not only improve the stability and reliability of the system, but also reduce operation and maintenance costs and improve operation and maintenance efficiency. However, as the scale and complexity of the system increase, the identification and classification of faults become increasingly challenging. Traditional rule-based and supervised learning methods have certain limitations when processing large-scale, high-dimensional performance data and log data. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide an intelligent operation and maintenance method based on time series data, which can realize in-depth analysis of large-scale computer system performance data and log data, and automatically identify and classify faults, thereby improving the efficiency and accuracy of fault handling.

[0005] The present invention is achieved through the following technical solutions:

[0006] An intelligent operation and maintenance method based on time series data includes the following steps:

[0007] S1: Integrate the time series performance data in the collected original time series operation and maintenance data into a performance feature data under the same node and timestamp, extract effective information from the log data in the collected original time series operation and maintenance data as features, obtain standard log feature data, and divide the performance feature data into a performance feature data training set and a performance feature data test set, and divide the standard log feature data into a log feature data training set and a log feature data test set;

[0008] S2: Remove redundant constant features from the performance feature data classified into the performance feature data training set and the performance feature data test set, and the standard log feature data classified into the log feature data training set and the log feature data test set, and divide the performance feature data into database data and system-related data, and filter out performance feature data with inconsistent distribution, construct differential features for the memory change features in the standard log feature data, and obtain differential log feature data;

[0009] S3: An unsupervised anomaly detection method based on dual-branch contrastive learning is used to perform fault detection on performance feature data, and offline model training is performed on the performance feature data in the performance feature data training set. Fault detection is performed on standard log feature data based on the isolation forest algorithm, and offline model training and optimization are performed on the log feature data in the log feature data training set. A multimodal fault detection model including an unsupervised anomaly detection model based on dual-branch contrastive learning and an isolation forest model is obtained, and abnormal samples in fault detection are collected into fault samples.

[0010] S4: Integrate the multimodal fault detection model and the Alibaba big language model into an online model. By setting prompt words that are suitable for fault detection tasks, the relationship in the operation and maintenance data is captured, and real-time fault detection is achieved for the operation and maintenance data.

[0011] Furthermore, an intelligent operation and maintenance method based on time series data also includes the following steps:

[0012] S5: Use an unsupervised clustering algorithm to cluster the fault samples in the fault sample set to display the operating forms and states of different types of faults.

[0013] Optimized, in step S1, the original time series performance data is integrated into a feature data under the same node and timestamp and then normalized, and all the normal operation data and the data within 80% of the fault time in the normalized performance feature data are divided into the performance feature data training set, and the data within the remaining 20% ​​of the fault time is divided into the performance feature data test set.

[0014] Further, in step S2, a differential feature is constructed for the memory change feature in the standard log feature data according to the following method:

[0015] S21: extract RDB snapshot data and AOF data from standard log feature data using a regularization method;

[0016] S22: taking the RDB snapshot frequency in the RDB snapshot data and the AOF replication frequency, AOF differentiation frequency, and AOF memory refresh times in the AOF data as features, and constructing the AOF replication time difference as differential feature data according to formula (1);

[0017] (1);

[0018] in: express Rewrite time difference, express Replication frequency The timestamp of the first occurrence, express Replication frequency The timestamp of the first occurrence;

[0019] S23: Integrate the standard log feature data and the differential feature data under the same node and timestamp into a new log feature data and save it in a log feature data training set or a log feature data test set.

[0020] Furthermore, in step S3, the following method is used to perform fault detection on the performance characteristic data, and offline model training is performed on the training set performance characteristic data:

[0021] S31: Divide the time series data into multiple blocks according to the sliding window principle, regard each block as an independent performance characteristic data sample, perform feature extraction and dimension fusion from the perspectives of block-by-block branching and intra-block branching through a dual-branch self-attention network model, and obtain a representation of the time series containing block-by-block feature representation and intra-block feature representation through upsampling;

[0022] S32: Based on The divergence loss function measures the similarity between the block-by-block feature representation and the intra-block feature representation, and calculates the two representations separately. Loss, and get the total loss function of the dual-branch self-attention network model;

[0023] S33: The loss function of the dual-branch self-attention network model is iteratively optimized through the gradient descent method, and the dual-branch self-attention network model is trained. The distance between two different angle representations of the same performance feature data sample is used as the performance feature data sample abnormality score, and finally the performance feature data is filtered according to the abnormality threshold. The performance feature data samples whose performance feature data sample abnormality scores exceed the performance feature data sample abnormality threshold are collected into the fault samples to complete the training of the performance feature data offline model.

[0024] Further, in step S32 The divergence loss function is formula (2), and the total loss function is formula (3):

[0025] (2);

[0026] (3);

[0027] in: represents the result matrix of the feature representation within the block, represents the result matrix of block-by-block feature representation, represents the input time series, express The stopping gradient, express The stopping gradient of The target of the branch in the block is and The stopping gradient version of is as close as possible to the loss function, Represents the result matrix of the feature representation within the block And the block-by-block feature representation result matrix of the stopped gradient version The KL divergence between Represents the block-by-block feature representation result matrix of the stopped gradient version And the result matrix of the intra-block feature representation The KL divergence between The goal of representing the block-by-block branch is to make the block-by-block feature representation result matrix The result matrix of the feature representation within the block The stopping gradient version of is as close as possible to the loss function, Represents the result matrix of block-by-block feature representation And the resulting matrix of the intra-block feature representation of the stopped gradient version The KL divergence between The result matrix of the feature representation within the block representing the stopped gradient version And the block-by-block feature representation result matrix The KL divergence between represents the total loss function, represents the result matrix loss function of each block feature representation, represents the result matrix loss function of the feature representation within the block, Represents the result matrix of block-by-block feature representation Length.

[0028] Optimized, the performance characteristic data sample abnormality score is performed according to formula (3):

[0029] (3);

[0030] in: Indicates the abnormal score of the performance characteristic data sample.

[0031] Furthermore, in step S3, the following method is used to perform fault detection on the standard log feature data based on the isolation forest algorithm, and offline model training and optimization are performed on the log feature data in the log feature data training set:

[0032] S34: Use the isolation forest algorithm to train the log feature data after constructing the differential feature, and use the isolation forest model to test the integrated new log feature data, record the path length, and use each log feature test data as a log feature data sample, calculate the anomaly score of the log feature data sample according to formula (4), and collect the log feature data samples whose anomaly scores are greater than the log feature data sample anomaly threshold into the fault samples;

[0033] (4);

[0034] in: express log feature data samples in log feature data samples The anomaly score, Represents a sample of log feature data The mean path length on the isolated tree, Represents a sample of log feature data Path length on an isolated tree, Indicated by The average path length of a BST binary tree constructed from log feature data samples;

[0035] S35: Optimize the parameters of the isolation forest model using the log feature data training set data, and complete the training and optimization of the log feature data offline model.

[0036] Optimized, in step S4, the Alibaba big language model is used to set prompt words adapted to the fault detection task to capture the complex relationships in the operation and maintenance data, and the pre-trained Alibaba big language model is migrated to the current fault detection task, and anomalies at different levels are discovered through multi-level feature extraction.

[0037] Furthermore, in step S5, the following method is used to classify the fault samples into different clusters through DBSCAN clustering, indicating the operation modes or states of different types of faults:

[0038] S51: Setting the density parameter and neighborhood radius of clustering;

[0039] S52: Check the number of samples contained in the neighborhood radius of each data point in the fault sample set. If the number of samples contained in the neighborhood radius of the data point is greater than the set density parameter, create a new cluster with the data point as the core object as a new category of the fault sample.

[0040] Beneficial effects of the invention:

[0041] The present invention provides an intelligent operation and maintenance method based on time series data, which is an automatic fault identification and classification method based on offline and online combination. On the one hand, it can realize automatic processing and fault prediction of data of different modes on the basis of unlabeled training data through the contrast representation learning method of the dual-branch self-attention network combined with the multimodal fault detection model based on the isolation forest algorithm, reduce the dependence of the cluster on manual operation and maintenance, and significantly improve the efficiency and accuracy of fault processing; on the other hand, by combining offline and online detection, the algorithm can adapt to the dynamic nature of software services and realize real-time fault detection. In addition, compared with the existing fault detection method, the present invention designs a contrast representation learning based on a dual-branch attention structure for the case of no negative samples, fuses time series semantic information through block setting, and amplifies the representation difference between normal data and abnormal data by optimizing the contrast loss between different angles. Since the method provided by the present invention does not require prior knowledge about abnormalities, it is more convenient to handle new abnormal phenomena that have never been observed before, enhances the stability and reliability of the system, and has important value in industrial and academic applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION

[0043] An intelligent operation and maintenance method based on time series data, the flow chart is as follows Figure 1 As shown, the specific steps include:

[0044] S1: Integrate the time series performance data in the collected original time series operation and maintenance data into a performance feature data under the same node and timestamp, extract effective information from the log data in the collected original time series operation and maintenance data as features, obtain standard log feature data, and divide the performance feature data into a performance feature data training set and a performance feature data test set, and divide the standard log feature data into a log feature data training set and a log feature data test set;

[0045] Before use, it is necessary to first collect operation and maintenance cluster data for a period of time. Large-scale operation and maintenance clusters can obtain corresponding performance data, log data, garbage collection, call chain data, etc. through monitoring equipment. The quality of the data can directly determine the prediction and generalization capabilities of the model, and data preprocessing is the prerequisite for ensuring data quality. Therefore, data preprocessing is crucial for modeling. The amount of operation and maintenance cluster data is huge, and the time series operation and maintenance data collected at regular intervals needs to be preliminarily screened and processed to obtain time series feature data available to the model. The experimental data in the present invention includes structured data, time series performance data and unstructured data. The time series performance data is structured data, and the log data is unstructured data. Preprocessing is required for both data.

[0046] The specific preprocessing method is as follows: the original time series performance data is integrated into a feature data at the same node and timestamp and then normalized. All normal operation data and data within 80% of the fault time in the normalized performance feature data are divided into the performance feature data training set, and the data within the remaining 20% ​​of the fault time is divided into the performance feature data test set.

[0047] The regularization method can be used to extract effective information from the log data in the collected original time-series operation and maintenance data as features to obtain standard log feature data.

[0048] S2: Remove redundant constant features from the performance feature data classified into the performance feature data training set and the performance feature data test set, and the standard log feature data classified into the log feature data training set and the log feature data test set, and divide the performance feature data into database data and system-related data. Due to the different functions of the operation and maintenance cluster nodes, the performance characteristics of some nodes are database-related indicators, and the other part is server system performance-related indicators. When these two types of performance data are combined and processed, the sparsity is relatively large, so they are split into two parts of data for subsequent processing, which can reduce the sparsity of the data;

[0049] In addition, inconsistently distributed performance feature data can be filtered out based on timestamps and configuration management databases. Differential features can be constructed based on statistical methods for memory change features in standard log feature data to obtain differential log feature data.

[0050] Specifically, the database data segmented by the performance characteristic data includes checking whether it is possible to connect to the database, database performance related, cache hit rate ratio, SGA hit rate, etc. The system-related data includes the CPU waiting time for I / O operations, disk usage percentage, average waiting time for read I / O operations, actual memory usage percentage, etc.

[0051] Specifically, the differential features can be constructed from the memory change features in the standard log feature data in the following way:

[0052] S21: extract RDB snapshot data and AOF data from standard log feature data using a regularization method;

[0053] S22: taking the RDB snapshot frequency in the RDB snapshot data and the AOF replication frequency, AOF differentiation frequency, and AOF memory refresh times in the AOF data as features, and constructing the AOF replication time difference as differential feature data according to formula (1);

[0054] (1);

[0055] in: express Rewrite time difference, express Replication frequency The timestamp of the first occurrence, express Replication frequency The timestamp of the first occurrence;

[0056] S23: Integrate the standard log feature data and the differential feature data under the same node and timestamp into a new log feature data and save it in a log feature data training set or a log feature data test set. This can better extract the log feature data and reduce the sparsity of the data.

[0057] S3: An unsupervised anomaly detection method based on dual-branch contrastive learning is used to perform fault detection on performance feature data, and offline model training is performed on the performance feature data in the performance feature data training set. Fault detection is performed on standard log feature data based on the isolation forest algorithm, and offline model training and optimization are performed on the log feature data in the log feature data training set. A multimodal fault detection model including an unsupervised anomaly detection model based on dual-branch contrastive learning and an isolation forest model is obtained, and abnormal samples in fault detection are collected into fault samples.

[0058] Specifically, the following methods can be used to perform fault detection on performance characteristic data and perform offline model training on the training set performance characteristic data:

[0059] S31: Divide the time series data into multiple blocks according to the sliding window principle, regard each block as an independent performance characteristic data sample, perform feature extraction and dimension fusion from the perspectives of block-by-block branching and intra-block branching through a dual-branch self-attention network model, and obtain a representation of the time series containing block-by-block feature representation and intra-block feature representation through upsampling;

[0060] The block-by-block feature representation here is to learn the weighted combination of sample points at the same position from each block, and the intra-block feature representation is to learn the weighted combination of points within the block, which effectively combines the semantic information of the time series.

[0061] S32: Based on The divergence loss function measures the similarity between the block-by-block feature representation and the intra-block feature representation, and calculates the two representations separately. Loss, and get the total loss function of the dual-branch self-attention network model;

[0062] S33: The loss function of the dual-branch self-attention network model is iteratively optimized through the gradient descent method, and the dual-branch self-attention network model is trained. The distance between two different angle representations of the same performance feature data sample is used as the performance feature data sample abnormality score, and finally the performance feature data is filtered according to the abnormality threshold. The performance feature data samples whose performance feature data sample abnormality scores exceed the performance feature data sample abnormality threshold are collected into the fault samples to complete the training of the performance feature data offline model.

[0063] Further, in step S32 The divergence loss function is formula (2), and the total loss function is formula (3):

[0064] (2);

[0065] (3);

[0066] in: represents the result matrix of the feature representation within the block, represents the result matrix of block-by-block feature representation, represents the input time series, express The stopping gradient of express The stopping gradient of The target of the branch in the block is and The stopping gradient version of is as close as possible to the loss function, Represents the result matrix of the feature representation within the block And the block-by-block feature representation result matrix of the stopped gradient version The KL divergence between Represents the block-by-block feature representation result matrix of the stopped gradient version And the result matrix of the intra-block feature representation The KL divergence between The goal of representing the block-by-block branch is to make the block-by-block feature representation result matrix The result matrix of the feature representation within the block The stopping gradient version of is as close as possible to the loss function, Represents the result matrix of block-by-block feature representation And the resulting matrix of the intra-block feature representation of the stopped gradient version The KL divergence between The result matrix of the feature representation within the block representing the stopped gradient version And the block-by-block feature representation result matrix The KL divergence between represents the total loss function, represents the result matrix loss function of each block feature representation, represents the result matrix loss function of the feature representation within the block, Represents the result matrix of block-by-block feature representation length, use Normalizing the denominator ensures that the loss function does not deviate due to inputs of different lengths.

[0067] The calculation of KL divergence here belongs to the prior art.

[0068] Optimized, the performance characteristic data sample abnormality score is performed according to formula (3):

[0069] (3);

[0070] in: Indicates the abnormal score of the performance characteristic data sample.

[0071] Since normal points usually share potential patterns and have strong correlations with each other, the distance between the representation results of normal points at different angles is smaller than that of abnormal points. The abnormal score of the performance feature data sample is defined as formula (3).

[0072] In actual operation and maintenance data, fault points are rare during the fault period. For large data clusters, it is difficult to obtain negative samples required by traditional contrastive learning. However, since there are the same potential representations between normal points, the representations of the same input should be similar. Based on this, the present invention designs a method based on The loss function of divergence is used to measure the similarity of feature representations of each block and within a block. By optimizing the similarity, training the self-attention feature extraction network, and scoring the sample abnormality by the distance between different angle representations of the same sample, and finally filtering the faulty samples according to the abnormal threshold, the fault inspection results can be more accurate.

[0073] Specifically, the following method can be used to perform fault detection on standard log feature data based on the isolation forest algorithm, and perform offline model training and optimization on the log feature data in the log feature data training set.

[0074] S34: Use the isolation forest algorithm to train the log feature data after constructing the differential feature, and use the isolation forest model to test the integrated new log feature data, record the path length, and use each log feature test data as a log feature data sample, calculate the anomaly score of the log feature data sample according to formula (4), and collect the log feature data samples whose anomaly scores are greater than the log feature data sample anomaly threshold into the fault samples;

[0075] (4);

[0076] in: express log feature data samples in log feature data samples The anomaly score, Represents a sample of log feature data The mean path length on the isolated tree, Represents a sample of log feature data Path length on an isolated tree, Indicated by The average path length of a BST binary tree constructed from log feature data samples;

[0077] S35: Optimize the parameters of the isolation forest model using the log feature data training set data, and complete the training and optimization of the log feature data offline model.

[0078] S4: Integrate the multimodal fault detection model and the Alibaba big language model into an online model. By setting prompt words that are suitable for fault detection tasks, the relationship in the operation and maintenance data is captured, and real-time fault detection is achieved for the operation and maintenance data.

[0079] Specifically, it mainly applies the "qwen-14B" large language model in Alibaba's large language model. The "qwen-14B" large language model is an open source large-scale pre-trained language model developed by Alibaba Cloud. It has 14 billion parameters and has extremely strong reasoning, cognition, planning and memory capabilities. It can understand and generate very complex and natural human languages. It is applied to downstream tasks related to natural language processing and surpasses models of the same size in authoritative evaluations of multiple tasks. The present invention uses Qwen-14B to achieve understanding of structured data through carefully designed prompt words, migrates the pre-trained Alibaba large language model to the current fault detection task, realizes real-time fault detection, and further improves the accuracy of online fault detection.

[0080] Furthermore, we can design two anomaly detection experiments based on Alibaba's large language model:

[0081] Anomaly detection experiment based on Alibaba's big language model 1: There is no normal or fault prompt example in the prompt template. The test data is tested by Alibaba's big language model and the anomaly detection results are output ;

[0082] Even if we do not give Alibaba Big Language Model any normal or faulty examples, we still give it some test data for it to judge. Alibaba Big Language Model will try to autonomously identify the abnormal parts from these test data and give the abnormality detection results. .

[0083] Anomaly detection experiment 2 based on Alibaba's big language model: insert some normal and fault samples into the prompt template, and output anomaly detection results after the test data is tested by Alibaba's big language model .

[0084] In order to balance the impact of the input prompt examples in the prompt template on the prediction generalization, a balancing factor is introduced , , get the set of fault samples detected by Alibaba's large language model :

[0085]

[0086] You can divide 10% of the data from the test set as a validation set to evaluate the balance factor Based on the performance of Alibaba's large language model on the validation set, we continuously iterate and optimize until a satisfactory balance is achieved.

[0087] In order to expand the online fault detection sample result set, the final fault sample set can be obtained through the multimodal unsupervised anomaly detection model and the anomaly detection model based on Alibaba's large language model. ,Right now

[0088]

[0089] in: Represents the set of fault samples output by the online multimodal fault detection model.

[0090] The fault detection model training of the present invention utilizes historical data to realize offline model training, deploys the offline multimodal fault detection model to the online environment, collects real-time performance data and log data, and performs preprocessing methods on them. Then, the multimodal fault detection model and Alibaba's big language model are input for online reasoning. The offline training and online reasoning are combined to obtain a fault detection method that is fully adapted to real-time data, with relatively accurate detection results and relatively high detection efficiency.

[0091] An intelligent operation and maintenance method based on time series data, based on offline and online combination, performs automatic fault identification and classification. On the one hand, it can realize automatic processing and fault prediction of data of different modes on the basis of unlabeled training data through the contrast representation learning method of the dual-branch self-attention network combined with the multimodal fault detection model based on the isolation forest algorithm, reduce the dependence of the cluster on manual operation and maintenance, and significantly improve the efficiency and accuracy of fault processing; on the other hand, by combining offline and online detection, it can adapt to the dynamic nature of software services and realize real-time fault detection. In addition, compared with the existing fault detection method, the present invention designs a contrast representation learning based on a dual-branch attention structure for the case of no negative samples, and fuses the time series semantic information by setting blocks, thereby optimizing the contrast loss between different angles, amplifying the representation difference between normal data and abnormal data, making it easier to handle new abnormal phenomena that have never been observed before, enhancing the stability and reliability of the system, and having important value in industrial and academic applications.

[0092] Furthermore, an intelligent operation and maintenance method based on time series data also includes the following steps:

[0093] S5: Use an unsupervised clustering algorithm to cluster the fault samples in the fault sample set to display the operating forms and states of different types of faults.

[0094] Specifically, the following method can be used to classify fault samples into different clusters through DBSCAN clustering to represent the operating modes or states of different types of faults:

[0095] S51: Setting the density parameter and neighborhood radius of clustering;

[0096] S52: Check the number of samples contained in the neighborhood radius of each data point in the fault sample set. If the number of samples contained in the neighborhood radius of the data point is greater than the set density parameter, create a new cluster with the data point as the core object as a new category of the fault sample.

[0097] Based on the fact that different types of fault samples have different characteristics, when the data is unlabeled, the present invention uses the DBSCAN algorithm to Clustering is performed to divide them into different clusters, each cluster represents a specific abnormal pattern or state, and clustering of arbitrary shapes based on samples is achieved.

[0098] By clustering fault samples and labeling different clusters, the distribution of fault samples and changes in fault patterns can be more intuitively displayed, which helps to identify similar patterns in fault samples and helps analysts better understand and analyze the characteristics and sources of different types of faults in large-scale cluster operation and maintenance work.

[0099] In summary, the intelligent operation and maintenance method based on time series data provided by the present invention can realize in-depth analysis of large-scale computer system performance data and log data, and automatically identify and classify faults, thereby improving the efficiency and accuracy of fault handling.

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

Claims

1. An intelligent operation and maintenance method based on time series data, characterized by: The steps include: S1: Integrate the time series performance data in the collected original time series operation and maintenance data into a performance feature data under the same node and timestamp, extract effective information from the log data in the collected original time series operation and maintenance data as features, obtain standard log feature data, and divide the performance feature data into a performance feature data training set and a performance feature data test set, and divide the standard log feature data into a log feature data training set and a log feature data test set; S2: Remove redundant constant features from the performance feature data classified into the performance feature data training set and the performance feature data test set, and the standard log feature data classified into the log feature data training set and the log feature data test set, and divide the performance feature data into database data and system-related data, and filter out performance feature data with inconsistent distribution, construct differential features for the memory change features in the standard log feature data, and obtain differential log feature data; S3: An unsupervised anomaly detection method based on dual-branch contrastive learning is used to perform fault detection on performance feature data, and offline model training is performed on the performance feature data in the performance feature data training set. Fault detection is performed on standard log feature data based on the isolation forest algorithm, and offline model training and optimization are performed on the log feature data in the log feature data training set. A multimodal fault detection model including an unsupervised anomaly detection model based on dual-branch contrastive learning and an isolation forest model is obtained, and abnormal samples in fault detection are collected into fault samples. S4: Integrate the multimodal fault detection model and the Alibaba big language model into an online model. By setting prompt words that are suitable for fault detection tasks, the relationship in the operation and maintenance data is captured, and real-time fault detection is achieved for the operation and maintenance data.

2. According to claim 1, the intelligent operation and maintenance method based on time series data is characterized in that: Also includes the following steps: S5: Use an unsupervised clustering algorithm to cluster the fault samples in the fault sample set to display the operating forms and states of different types of faults.

3. According to claim 1, the intelligent operation and maintenance method based on time series data is characterized in that: In step S1, the original time series performance data is integrated into a feature data under the same node and timestamp and then normalized. All normal operating data and data within 80% of the fault time in the normalized performance characteristic data are divided into the performance characteristic data training set, and the remaining 20% ​​of the fault time data are divided into the performance characteristic data test set.

4. According to claim 1, the intelligent operation and maintenance method based on time series data is characterized in that: In step S2, differential features are constructed for the memory change features in the standard log feature data in the following manner: S21: extract RDB snapshot data and AOF data from standard log feature data using a regularization method; S22: taking the RDB snapshot frequency in the RDB snapshot data and the AOF replication frequency, AOF differentiation frequency, and AOF memory refresh times in the AOF data as features, and constructing the AOF replication time difference as differential feature data according to formula (1); (1); in: express Rewrite time difference, express Copy frequency The timestamp of the first occurrence, express Replication frequency The timestamp of the first occurrence; S23: Integrate the standard log feature data and the differential feature data under the same node and timestamp into a new log feature data and save it in a log feature data training set or a log feature data test set.

5. According to claim 1, the intelligent operation and maintenance method based on time series data is characterized in that: In step S3, the following method is used to perform fault detection on the performance characteristic data, and to perform offline model training on the training set performance characteristic data: S31: Divide the time series data into multiple blocks according to the sliding window principle, regard each block as an independent performance characteristic data sample, perform feature extraction and dimension fusion from the perspectives of block-by-block branching and intra-block branching through a dual-branch self-attention network model, and obtain a representation of the time series containing block-by-block feature representation and intra-block feature representation through upsampling; S32: Based on The divergence loss function measures the similarity between the block-by-block feature representation and the intra-block feature representation, and calculates the two representations separately. Loss, and get the total loss function of the dual-branch self-attention network model; S33: The loss function of the dual-branch self-attention network model is iteratively optimized through the gradient descent method, and the dual-branch self-attention network model is trained. The distance between two different angle representations of the same performance feature data sample is used as the performance feature data sample abnormality score, and finally the performance feature data is filtered according to the abnormality threshold. The performance feature data samples whose performance feature data sample abnormality scores exceed the performance feature data sample abnormality threshold are collected into the fault samples to complete the training of the performance feature data offline model.

6. The intelligent operation and maintenance method based on time series data according to claim 5 is characterized in that: In step S32 The divergence loss function is formula (2), and the total loss function is formula (3): (2); (3); in: represents the result matrix of the feature representation within the block, represents the result matrix of block-by-block feature representation, represents the input time series, express The stopping gradient of express The stopping gradient, The target of the branch in the block is and The stopping gradient version of is as close as possible to the loss function, Represents the result matrix of the feature representation within the block And the block-by-block feature representation result matrix of the stopped gradient version The KL divergence between Represents the block-by-block feature representation result matrix of the stopped gradient version And the result matrix of the intra-block feature representation The KL divergence between The goal of representing the block-by-block branch is to make the block-by-block feature representation result matrix The result matrix of the feature representation within the block The stopping gradient version of is as close as possible to the loss function, Represents the result matrix of block-by-block feature representation And the resulting matrix of the intra-block feature representation of the stopped gradient version The KL divergence between The result matrix of the feature representation within the block representing the stopped gradient version And the block-by-block feature representation result matrix The KL divergence between represents the total loss function, represents the result matrix loss function of each block feature representation, represents the result matrix loss function of the feature representation within the block, Represents the result matrix of block-by-block feature representation Length.

7. The intelligent operation and maintenance method based on time series data according to claim 6 is characterized in that: According to formula (3), the performance characteristic data sample abnormality score is: (3); in: Indicates the abnormal score of the performance characteristic data sample.

8. The intelligent operation and maintenance method based on time series data according to claim 4 is characterized in that: In step S3, the following method is used to perform fault detection on the standard log feature data based on the isolation forest algorithm, and offline model training and optimization are performed on the log feature data in the log feature data training set: S34: Use the isolation forest algorithm to train the log feature data after constructing the differential feature, and use the isolation forest model to test the integrated new log feature data, record the path length, and use each log feature test data as a log feature data sample, calculate the anomaly score of the log feature data sample according to formula (4), and collect the log feature data samples whose anomaly scores are greater than the log feature data sample anomaly threshold into the fault samples; (4); in: express log feature data samples in log feature data samples The anomaly score, Represents a sample of log feature data The mean path length on the isolated tree, Represents a sample of log feature data Path length on an isolated tree, Indicated by The average path length of a BST binary tree constructed from log feature data samples; S35: Optimize the parameters of the isolation forest model using the log feature data training set data, and complete the training and optimization of the log feature data offline model.

9. The intelligent operation and maintenance method based on time series data according to claim 1, characterized in that: In step S4, the Alibaba big language model is used to set prompt words that are suitable for the fault detection task to capture the complex relationships in the operation and maintenance data, and the pre-trained Alibaba big language model is migrated to the current fault detection task, and anomalies at different levels are discovered through multi-level feature extraction.

10. The intelligent operation and maintenance method based on time series data according to claim 2, characterized in that: In step S5, the following method is used to classify the fault samples into different clusters through DBSCAN clustering, representing the operation modes or states of different types of faults: S51: Setting the density parameter and neighborhood radius of clustering; S52: Check the number of samples contained in the neighborhood radius of each data point in the fault sample set. If the number of samples contained in the neighborhood radius of the data point is greater than the set density parameter, create a new cluster with the data point as the core object as a new category of the fault sample.

Citation Information

Patent Citations

  • System health degree intelligent monitoring and evaluation method based on anomaly detection

    CN116383645A

  • Training method, device and equipment of fault detection model under micro-service architecture

    CN116561635A