Disk abnormality detection method, device, electronic device and storage medium
By collecting disk hardware parameters and business performance indicators, constructing histogram data, and judging disk health status, it solves the problem of disk failure detection delay in the existing technology and achieves highly accurate and universally applicable disk anomaly detection.
Patent Information
- Application Number
- CN202311150163.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-06
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2043-09-06
AI Technical Summary
Existing technology is difficult to detect and predict disk failures in time before they occur, resulting in business downtime and data loss, affecting business stability.
By collecting the hardware parameter index feature set and business performance index data of the disk, constructing histogram data, using the pre-trained model to obtain the business performance evaluation value, calculating the anomaly detection score, determining the threshold, and then judging the health status of the disk and realizing disk anomalies. detection.
It improves the accuracy and timeliness of disk anomaly detection, eliminates the need for time-consuming and laborious collection of fault data, is not restricted by disk models, and enhances the pertinence and universal applicability of detection.
Smart Images

Figure CN117215868B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of detection technology, and in particular to a disk anomaly detection method, device, electronic device and storage medium. Background Art
[0002] With the rapid development of big data and cloud computing, the data generated by data centers every day has experienced explosive growth. Most of the data is stored in disks. Disk failures lead to component replacement, which may cause business downtime or even data loss, causing a significant impact on the stable operation of the business. Therefore, it is necessary to perform anomaly detection and fault prediction on disks in advance. Timely detection and replacement before disk failures occur can reduce the impact of disk failures on business systems. Summary of the invention
[0003] The present invention provides a disk anomaly detection method, device, electronic device and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a disk anomaly detection method is provided, comprising:
[0005] Acquire a set of service performance indicator evaluation values of the first disk according to a set of hardware parameter indicator features of the first disk collected within a first time period;
[0006] Obtaining a first histogram anomaly detection score set according to a business performance indicator evaluation value set of the first disk;
[0007] Determining a first threshold based on the first histogram anomaly detection score set;
[0008] Obtaining a set of service performance indicator evaluation values of the second disk according to a set of hardware parameter indicator features of the second disk collected in a second time period; wherein the first time period is earlier than the second time period;
[0009] Obtaining a second histogram anomaly detection score set according to the service performance indicator evaluation value set of the second disk;
[0010] The service health status of the second disk is determined according to the first threshold and the second histogram anomaly detection score set.
[0011] According to a second aspect of an embodiment of the present disclosure, a disk abnormality detection device is provided, comprising:
[0012] A first acquisition module, configured to acquire a set of service performance indicator evaluation values of the first disk according to a set of hardware parameter indicator characteristics of the first disk collected within a first time period;
[0013] A second acquisition module, configured to acquire a first histogram anomaly detection score set according to a service performance indicator evaluation value set of the first disk;
[0014] A first determination module, configured to determine a first threshold based on a first histogram anomaly detection score set;
[0015] A third acquisition module is used to acquire a set of service performance index evaluation values of the second disk according to a set of hardware parameter index characteristics of the second disk collected in a second time period; wherein the first time period is earlier than the second time period;
[0016] A fourth acquisition module, configured to acquire a second histogram anomaly detection score set according to a service performance indicator evaluation value set of a second disk;
[0017] The second determination module is used to determine the service health status of the second disk according to the first threshold and the second histogram anomaly detection score set.
[0018] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device comprising:
[0019] at least one processor; and
[0020] a memory communicatively connected to at least one processor; wherein,
[0021] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute the method described in the first aspect above.
[0022] According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the storage medium stores computer instructions for causing a computer to execute the method described in the first aspect above.
[0023] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the method described in the first aspect above can be implemented.
[0024] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0025] According to the hardware parameter indicator feature set of the first disk collected in the first time period, the business performance indicator evaluation value set of the first disk is obtained; according to the business performance indicator evaluation value set of the first disk, the first histogram anomaly detection score set is obtained; based on the first histogram anomaly detection score set, the first threshold is determined; according to the hardware parameter indicator feature set of the second disk collected in the second time period, the business performance indicator evaluation value set of the second disk is obtained; wherein, the first time period is earlier than the second time period; according to the business performance indicator evaluation value set of the second disk, the second histogram anomaly detection score set is obtained; according to the first threshold and the second histogram anomaly detection score set, the business health status of the second disk is determined. This solution determines the business health status of the disk based on the disk hardware parameter indicator data and the disk business performance indicator data, does not require time-consuming and labor-intensive collection of disk failure data, and is not limited by the disk model, thereby improving the timeliness and universal applicability of the application of disk anomaly detection. By associating and combining the disk hardware parameter indicator with the disk business performance indicator, a mixed judgment of the disk business health status is achieved, which improves the pertinence and accuracy of disk anomaly detection.
[0026] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0028] Figure 1 It is a flowchart of a disk anomaly detection method provided according to an embodiment of the present disclosure.
[0029] Figure 2 It is a flowchart of a method for constructing a disk hardware parameter indicator feature set according to an embodiment of the present disclosure.
[0030] Figure 3 It is a flowchart of a first model training method provided according to an embodiment of the present disclosure.
[0031] Figure 4 It is a flowchart of another disk anomaly detection method provided according to an embodiment of the present disclosure.
[0032] Figure 5 This is a flowchart of another disk anomaly detection method provided according to an embodiment of the present disclosure.
[0033] Figure 6 It is a block diagram of a disk anomaly detection device provided according to an embodiment of the present disclosure.
[0034] Figure 7is a block diagram of an electronic device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0035] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0036] In order to facilitate the understanding of the present disclosure by those skilled in the art, SMART (Self-Monitoring Analysis And Reporting Technology) is briefly introduced below. SMART (Self-Monitoring Analysis And Reporting Technology) is a technical standard for automatically monitoring the health of disk drives and reporting potential problems. As a unified industry standard, SMART stipulates various standards that disk manufacturers should follow. The SMART standard indicator set provides 255 standard indicators, and disk drives manufactured by disk manufacturers can choose to support all or some of the indicators.
[0037] Figure 1 FIG. 1 is a flow chart of a disk anomaly detection method provided according to an embodiment of the present disclosure. Figure 1 As shown, the disk anomaly detection method includes the following steps:
[0038] In step S101, a service performance indicator evaluation value set of the first disk is obtained according to a hardware parameter indicator feature set of the first disk collected in a first time period.
[0039] Optionally, based on the association between the disk service performance indicator evaluation value and the disk hardware parameter indicator feature, the hardware parameter indicator feature set of the first disk collected in the first time period is converted into a corresponding service performance indicator evaluation value set.
[0040] In some embodiments of the present disclosure, a histogram data set of the first disk is constructed based on a set of hardware parameter indicator features of the first disk collected during a first time period; the histogram data set of the first disk is input into a pre-trained first model to obtain a set of business performance indicator evaluation values of the first disk output by the first model; wherein the first model has learned the correlation between the disk business performance indicator evaluation values and the disk hardware parameter indicator features.
[0041] For example, when the first time period is the most recent day, the hardware parameter indicator data of the first disk on the previous day is collected based on the hardware parameter indicator of the first disk. The hardware parameter indicator data of the first disk is processed by feature engineering to obtain a histogram data set of the first disk. The histogram data set of the first disk is input into a pre-trained first model, and according to the correlation between the disk business performance indicator evaluation value and the disk hardware parameter indicator feature, the first model outputs a business performance indicator evaluation value set of the first disk.
[0042] Optionally, the hardware parameter indicator feature set of the first disk may be a hardware parameter indicator feature set based on a SMART indicator. For example, in a first time period, data is collected based on the SMART indicator to obtain hardware parameter indicator data of the first disk. Feature engineering processing is performed based on the hardware parameter indicator data of the first disk to obtain a histogram data set of the first disk.
[0043] Optionally, the first model can be called a comprehensive evaluation model of the health status of disk services, or a correlation analysis model of disk service performance indicators and hardware parameter SMART indicators, or a correlation analysis model, or other names, which are not specifically limited here.
[0044] In step S102, a first histogram anomaly detection score set is obtained according to a service performance indicator evaluation value set of a first disk.
[0045] In some embodiments of the present disclosure, based on the business performance indicator evaluation value set of the first disk, an indicator feature histogram is constructed, and a probability density distribution model for histogram outlier anomaly detection is calculated; based on the business performance indicator evaluation value set of the first disk, the probability density of each sample in the business performance indicator evaluation value set of the first disk in the indicator feature histogram is calculated; based on the probability density distribution model and the probability density of each sample in the indicator feature histogram, a first histogram anomaly detection score set is obtained.
[0046] Optionally, in some embodiments of the present disclosure, the business performance indicator evaluation value set of the first disk may be normalized first, and then the first histogram anomaly detection score set may be obtained based on the processed business performance indicator evaluation value set of the first disk.
[0047] Optionally, based on the business performance indicator evaluation value set of the first disk, by setting equal-width bins, the samples in the business performance indicator evaluation value set of the first disk are divided into distribution intervals equal to the number of equal-width bins. Each distribution interval corresponds to an equal-width bin. Based on the samples, equal-width bins, and distribution intervals in the business performance indicator evaluation value set of the first disk, the relative number of samples falling into each equal-width bin is used as the equal-width bin height. Based on the samples and equal-width bins in the business performance indicator evaluation value set of the first disk, a probability density distribution model for histogram outlier anomaly detection is obtained.
[0048] For example, based on the business performance indicator evaluation value set of the first disk, 10 equal-width boxes are set to divide the samples into 10 distribution intervals with an interval step of 0.1. Each distribution interval corresponds to an equal-width box. Based on the samples, equal-width boxes, and distribution intervals in the business performance indicator evaluation value set of the first disk, the relative number of samples falling into each equal-width box is used as the height of the equal-width box.
[0049] As an example of a possible implementation method, based on the number of samples in each distribution interval, the probability density of each sample in the indicator feature histogram is calculated. The probability density of each sample in the indicator feature histogram can be calculated as shown in the following formula (1):
[0050]
[0051] Among them, P i represents the probability density of the i-th sample, c represents the c-th distribution interval, m represents the number of distribution intervals, and h c represents the number of samples in the cth distribution interval, SUM(h1…h m ) refers to the sum of the number of samples in all distribution intervals.
[0052] As an example of a possible implementation, the histogram anomaly detection score of each sample is calculated based on the probability density distribution model and the probability density of each sample in the indicator feature histogram. Based on the histogram anomaly detection score of each sample, the first histogram anomaly detection score set is obtained. The calculation of the histogram anomaly detection score of each sample can be shown by the following formula (2):
[0053]
[0054] in, represents the histogram anomaly detection score of the i-th sample, P (i) Represents the probability density of the i-th sample.
[0055] In step S103, a first threshold is determined based on the first histogram anomaly detection score set.
[0056] In some embodiments of the present disclosure, after the first histogram anomaly detection score is calculated, the outlier degree of each score in the first histogram anomaly detection score set is calculated based on the first histogram anomaly detection score set. A first threshold is determined based on the outlier degree of each score in the first histogram anomaly detection score set.
[0057] In step S104, a set of service performance indicator evaluation values of the second disk is obtained according to a set of hardware parameter indicator features of the second disk collected in a second time period; wherein the first time period is earlier than the second time period.
[0058] In some embodiments of the present disclosure, a histogram data set of the second disk is constructed based on a set of hardware parameter indicator features of the second disk collected during a second time period; the histogram data set of the second disk is input into a pre-trained first model to obtain a set of business performance indicator evaluation values of the second disk output by the first model; wherein the first model has learned the correlation between the disk business performance indicator evaluation values and the disk hardware parameter indicator features.
[0059] For example, when the first time period is the previous day, the second time period may be the most recent hour. Twelve collection cycles may be divided in the second time period. Based on the hardware parameter index feature set of the second disk obtained in each collection cycle, a set of business performance index evaluation values of the second disk is obtained. In this way, inaccurate prediction results caused by a single collection anomaly can be avoided, and the stability of the prediction results can be improved.
[0060] Optionally, when the first disk is a disk, the second disk may be the same disk as the first disk, or may be a different disk from the first disk.
[0061] Optionally, when the first disk is a plurality of disks, the second disk may be one of the plurality of disks.
[0062] Optionally, the hardware parameter indicator feature set of the second disk may be a hardware parameter indicator feature set based on a SMART indicator. For example, during the second time period, data is collected based on the SMART indicator to obtain hardware parameter indicator sample data of the second disk. Feature engineering processing is performed based on the hardware parameter indicator sample data of the second disk to obtain a histogram data set of the second disk.
[0063] In step S105, a second histogram anomaly detection score set is obtained according to the service performance indicator evaluation value set of the second disk.
[0064] Optionally, in some embodiments of the present disclosure, a normalization process is performed based on the service performance indicator evaluation value set of the second disk to obtain a normalized service performance indicator evaluation value set of the second disk. A second histogram anomaly detection score set is obtained based on the normalized service performance indicator evaluation value set of the second disk.
[0065] In some embodiments of the present disclosure, a second histogram anomaly detection score set is obtained based on the probability density distribution model described in step S102 and a set of business performance indicator evaluation values of the second disk.
[0066] For example, based on the probability density distribution model and the business performance indicator evaluation value set of the second disk, the distribution interval corresponding to each sample is determined. According to the probability density distribution model and the distribution interval corresponding to each sample, the probability density of each sample in the probability density distribution model is determined. Based on the probability density of each sample, the histogram anomaly detection score of each sample is calculated. Among them, the calculation of the histogram anomaly detection score of each sample can be shown as shown in formula (2). Based on the histogram anomaly detection score of each sample, a second histogram anomaly detection score set is obtained.
[0067] In step S106, the service health status of the second disk is determined according to the first threshold and the second histogram anomaly detection score set.
[0068] In some embodiments of the present disclosure, the outlier mean value of the second histogram anomaly detection score set is calculated according to the second histogram anomaly detection score set, and the service health status of the second disk is determined based on the comparison between the outlier mean value of the second histogram anomaly detection score set and the first threshold.
[0069] In an embodiment of the present disclosure, a business performance indicator evaluation value set of the first disk is obtained based on a hardware parameter indicator feature set of the first disk collected in a first time period. A first histogram anomaly detection score set is obtained based on the business performance indicator evaluation value set of the first disk, which does not require time-consuming and labor-intensive collection of disk failure data for model training, and is not limited by disk models, thereby improving the timeliness and universal applicability of disk anomaly detection in practical applications. Based on the first histogram anomaly detection score set, a first threshold is determined, and a hybrid determination of the disk business health status is achieved by combining the disk anomaly detection score, thereby improving the pertinence and accuracy of disk anomaly detection. Based on a hardware parameter indicator feature set of the second disk collected in a second time period, a business performance indicator evaluation value set of the second disk is obtained. Based on the business performance indicator evaluation value set of the second disk, a second histogram anomaly detection score set is obtained. Based on the first threshold and the second histogram anomaly detection score set, the business health status of the second disk is determined, thereby improving the accuracy of online disk anomaly detection.
[0070] It should be noted that after obtaining the sample data of the hardware parameter indicators of the first disk collected in the first time period, the sample data of the hardware parameter indicators of the first disk is subjected to dimensionality reduction processing to obtain the feature set of the hardware parameter indicators of the first disk collected in the first time period, thereby removing the redundant indicators in the hardware parameter indicators of the first disk, reducing the computing power requirements, and improving the computing speed. Compared with directly using the hardware parameter indicators of the first disk for model training, the possibility of overfitting is reduced, and the hardware health status of the first disk is reflected by the minimum dimensional indicators. Optional, Figure 2 FIG. 1 is a flowchart of a method for constructing a hardware parameter index feature set of a first disk according to an embodiment of the present disclosure. Figure 2 As shown, the method for constructing the disk hardware parameter index feature set includes the following steps:
[0071] In step S201, a correlation index set and an irrelevant index set of the first disk are obtained based on hardware parameter index sample data of the first disk collected in a first time period.
[0072] In some embodiments of the present disclosure, a hardware parameter indicator covariance matrix of the first disk is constructed based on hardware parameter indicator sample data of the first disk collected during a first time period; and a correlation indicator set and an irrelevant indicator set of the first disk are obtained by analyzing the hardware parameter indicator covariance matrix of the first disk.
[0073] Optionally, based on the hardware parameter index sample data of the first disk collected in the first time period, the hardware parameter index covariance matrix of the first disk can be constructed by the following formula (3):
[0074]
[0075] Where Cov(z) refers to the covariance matrix of the hardware parameter indicators of the first disk; x1,…,x n represents the hardware parameter index of n first disks, where n is an integer greater than 1; Cov(x a ,x n ) represents the hardware parameter index x of the first disk a The hardware parameter index of the first disk is x b covariance, a, b are integers greater than or equal to 1 and less than or equal to n.
[0076] Optionally, the covariance of any two identical or different indicators in the hardware parameter indicators of the first disk can be calculated by the following formula (4):
[0077]
[0078] Wherein, x, y represent any two identical or different indicators of the hardware parameter indicators of the first disk; X represents the sample data set of the hardware parameter indicator x of the first disk collected in the first time period; Y represents the sample data set of the hardware parameter indicator y of the first disk collected in the first time period; x i is the i-th sample data in the sample data set X; y i is the i-th sample data in the sample data set Y; is the average value of all sample data in the sample data set X; is the average value of all sample data in the sample data set Y.
[0079] In some embodiments of the present disclosure, after the hardware parameter index covariance matrix of the first disk is calculated, the correlation between the hardware parameter indexes in the first disk is determined based on the hardware parameter index covariance matrix of the first disk. Based on the correlation between the hardware parameter indexes in the first disk, a correlation index set and an irrelevance index set of the first disk are determined.
[0080] As a possible implementation, the covariance of any two indicators in the hardware parameter indicators of the first disk can be obtained through the covariance matrix of the hardware parameter indicators of the first disk. Based on the covariance of any two indicators in the hardware parameter indicators of the first disk, the hardware parameter indicators with a covariance greater than 1 are classified into the correlation indicator set of the first disk, and the hardware parameter indicators with a covariance less than 1 are classified into the irrelevant indicator set of the first disk.
[0081] In step S202, a comprehensive index of the first disk is obtained based on the hardware parameter index sample data of the first disk collected in a first time period and a correlation index set.
[0082] In some embodiments of the present disclosure, based on the hardware parameter index sample data of the first disk collected in the first time period and the correlation index set, a hardware parameter index sample matrix of the first disk can be obtained. The hardware parameter index sample matrix of the first disk can be calculated by the following formula (5):
[0083]
[0084] Wherein, X refers to the hardware parameter index sample matrix of the first disk; n refers to the number of hardware parameter index sample data of the first disk; m refers to the number of hardware parameter indexes of the first disk; x coji It refers to the i-th hardware parameter indicator in the j-th sample data, where j can be an integer greater than or equal to 1 and less than or equal to n, and i can be an integer greater than or equal to 1 and less than or equal to m.
[0085] Optionally, after obtaining the hardware parameter index sample matrix of the first disk, the hardware parameter index sample matrix of the first disk may be standardized to obtain a standardized matrix of the hardware parameter index samples of the first disk. The standardized matrix of the hardware parameter index samples of the first disk may be calculated by the following formula (6):
[0086]
[0087] Among them, z ji refers to the standardized data of the i-th hardware parameter index in the j-th sample data in the hardware parameter index sample standardized matrix of the first disk; x ji It refers to the sample data of the i-th hardware parameter indicator in the j-th sample data in the hardware parameter indicator sample standardization matrix of the first disk; n refers to the number of hardware parameter indicator sample data of the first disk.
[0088] Optionally, based on the standardized matrix of the hardware parameter index samples of the first disk, a correlation coefficient matrix of the first disk is calculated. The correlation coefficient matrix of the first disk can be calculated by the following formula (7):
[0089]
[0090] Among them, r ij represents the correlation coefficient between the i-th hardware parameter index and the j-th hardware parameter index; i, j can be integers greater than or equal to 1 and less than or equal to m; n is the number of hardware parameter index sample data of the first disk; m is the number of hardware parameter indexes of the first disk; z kj refers to the standardized data of the jth hardware parameter index in the kth sample data in the hardware parameter index sample standardized matrix of the first disk; ki It is the standardized data of the i-th hardware parameter indicator in the k-th sample data in the hardware parameter indicator sample standardized matrix of the first disk.
[0091] In some embodiments of the present disclosure, based on the hardware parameter index sample data of the first disk and the correlation coefficient matrix of the first disk, a comprehensive index of the first disk can be calculated.
[0092] As a possible implementation method, based on the correlation coefficient matrix of the first disk, the eigenvalues and eigenvectors of the correlation coefficient matrix can be obtained; based on the hardware parameter indicator sample data of the first disk and the eigenvectors of the correlation coefficient matrix, the principal component variable expression of the first disk is constructed; based on the eigenvalues of the correlation coefficient matrix of the first disk, the cumulative contribution rate of the principal component variables of each first disk is calculated; and the principal component variables that meet the second requirement are used as the comprehensive indicators of the first disk.
[0093] Optionally, based on the hardware parameter index sample data of the first disk and the eigenvector of the correlation coefficient matrix, the principal component variable expression of the first disk can be constructed as shown in the following formula (8):
[0094] θ i = l i1 x1+l i2 x2+…+l im x m (8)
[0095] Among them, θ i refers to the principal component variable of the i-th sample; l im refers to the characteristic vector of the mth indicator of the i-th sample; x m It refers to the sample data of the mth indicator of the ith sample.
[0096] Optionally, based on the correlation coefficient eigenvalue of the first disk, the cumulative contribution rate of the principal component variable of each first disk can be calculated as shown in the following formula (9):
[0097]
[0098] Among them, λ k It refers to the characteristic value of the kth hardware parameter indicator; m is the number of indicators in the correlation indicator set of the first disk; i can be an integer greater than or equal to 1 and less than or equal to m.
[0099] As a possible implementation method, the second requirement may be that the cumulative contribution rate is greater than 85%. That is, the principal component variables with a cumulative contribution rate greater than 85% are used as the comprehensive index of the first disk.
[0100] In step S203, the comprehensive index of the first disk is combined with the irrelevant index set to obtain a hardware parameter index feature set of the first disk.
[0101] It should be noted that the implementation method of constructing the hardware parameter index feature set of the second disk is similar to the implementation method of constructing the hardware parameter index feature set of the first disk. Figure 2 The hardware parameter indicator feature set of the second disk is constructed by using the construction method of the hardware parameter indicator feature set of the first disk shown, which will not be repeated here.
[0102] In an embodiment of the present disclosure, based on the hardware parameter indicator sample data of the first disk collected within a first time period, a correlation indicator set and an irrelevant indicator set of the first disk are obtained. Based on the hardware parameter indicator sample data of the first disk collected within the first time period and the correlation indicator set, a comprehensive indicator of the first disk is obtained. The comprehensive indicator of the first disk is combined with the irrelevant indicator set to obtain a hardware parameter indicator feature set of the first disk, thereby achieving dimensionality reduction of the hardware parameter indicator template data of the first disk and removing redundant indicators in the hardware parameter indicators of the first disk, thereby reducing the amount of calculation and improving the calculation speed. Compared with directly using the hardware parameter indicators of the first disk for model training, the possibility of overfitting is reduced, and the hardware health status of the first disk is reflected by the minimum dimensional indicator.
[0103] It should be noted that the first model is constructed based on the disk service performance indicator set and the disk hardware parameter indicator feature set. The first model converts the hardware parameter indicator feature set of the first disk collected in the first time period into a corresponding service performance indicator evaluation value set. Figure 3 is a flow chart of a first model training method provided according to an embodiment of the present disclosure. Figure 3 As shown, the first model training method comprises the following steps:
[0104] In step S301, the weight of each service performance indicator in the service performance indicator feature set is calculated according to the service performance indicator feature set of the first disk collected in the first time period.
[0105] In some embodiments of the present disclosure, the service performance indicator feature set of the first disk may be defined according to the actual operation and maintenance situation of the resource pool or data center. For example, the service performance indicator feature set of the first disk may include disk input and output usage and disk input and output waiting time.
[0106] Optionally, a business performance indicator feature data set of the first disk is obtained according to a business performance indicator feature set of the first disk collected within a first time period.
[0107] Optionally, after obtaining the service performance indicator characteristic data set of the first disk, the service performance indicator characteristic data set of the first disk may be normalized.
[0108] Optionally, based on the business performance indicator feature data set of the first disk, the weight of each indicator in the business performance indicator feature set is calculated. The weight of each indicator in the business performance indicator feature set can be calculated by the following formula (10):
[0109]
[0110] Among them, w jIt refers to the weight of the jth indicator in the service performance indicator feature set of the first disk; m represents the number of indicators in the service performance indicator feature set of the first disk. ij It refers to the sample data of the jth indicator of the ith sample in the business performance indicator characteristic data set of the first disk; n refers to the number of hardware parameter indicator sample data of the first disk.
[0111] In step S302, a disk service performance evaluation value calculation formula is obtained based on the service performance indicator feature set of the first disk and the weight corresponding to each service performance indicator.
[0112] Optionally, the disk service performance evaluation value calculation formula can be calculated by the following formula (11):
[0113] y service =α1x1+…+α m x m (11)
[0114] Among them, y service Refers to the disk service performance evaluation value of the first disk; x m Refers to the mth indicator data in the service performance indicator feature set of the first disk; α m It refers to the weight of the mth indicator in the service performance indicator feature set of the first disk.
[0115] In step S303, a first model is constructed based on the service performance indicator feature set of the first disk, the hardware parameter indicator feature set, and the disk service performance evaluation value calculation formula.
[0116] Optionally, the business performance indicator feature set of the first disk and the hardware parameter indicator feature set of the first disk can be subjected to correlation analysis and calculation based on a multivariate linear regression method to construct a first model, so as to convert the hardware parameter indicator feature set of the first disk collected in the first time period into a corresponding business performance indicator evaluation value set. The first model can be shown in the following formula (12):
[0117]
[0118] Where y corresponds to the disk service performance index evaluation value y in formula (10) service ;x i is the i-th indicator in the hardware parameter indicator feature set of the first disk; β0 is the offset; n represents the number of indicators in the hardware parameter indicator feature set of the first disk; β i is a model parameter; the value range of i is an integer greater than or equal to 1 and less than or equal to n.
[0119] In step S304, training is performed based on the service performance indicator feature set of the first disk, the hardware parameter indicator feature set, and the disk service performance evaluation value calculation formula obtained in the first time period to obtain an optimal model of the first model.
[0120] In some embodiments of the present disclosure, a training set of the first model may be determined based on a business performance indicator feature set of the first disk and a hardware parameter indicator feature set of the first disk.
[0121] In some embodiments of the present disclosure, based on the training set of the first model, the loss function of the first model is determined. The loss function of the first model can be shown in the following formula (13):
[0122]
[0123] Where L(w) refers to the loss function of the first model; y (j) It refers to the true value of the business performance indicator evaluation value of the jth sample in the training set of the first disk; ^(j) It refers to the predicted value of the business performance indicator evaluation value of the jth sample in the training set of the first disk; m refers to the number of samples in the training set of the first model.
[0124] Optionally, after determining the loss function of the first model, the regression training formula of the first model can be determined based on the loss function of the first model and the training set of the first model. For example, the first model can be regressed by gradient descent to obtain the optimal model parameters. In other words, the gradient descent calculation formula of the first model is determined based on the loss function of the first model and the training set of the first model. The gradient descent calculation formula of the first model can be shown as follows (14):
[0125]
[0126] Among them, α is the learning rate; It refers to the m-th iteration result of the i-th model parameter; refers to the sample data of the i-th indicator of the j-th sample in the training set of the first model; y (j) It refers to the true value of the business performance indicator evaluation value of the jth sample in the training set of the first disk; y ^(j) It refers to the predicted value of the business performance indicator evaluation value of the jth sample in the training set of the first disk; m refers to the number of samples in the training set of the first model.
[0127] Optionally, after determining the regression training formula of the first model, iterative training is continuously performed based on the regression training formula of the first model and the training set of the first model until the loss function of the first model converges to obtain the optimal model parameters of the first model. Based on the optimal model parameters of the first model, the optimal model of the first model is determined.
[0128] For example, set m = 5000 iterations, loss function threshold a = 0.01, and learning rate α = 0.001. When the loss value of the loss function is less than the loss function threshold, the optimal model parameters of the first model are obtained, and the training iteration can be exited. After completing m iterations of training, the loss value of the loss function is greater than the loss function threshold, and the first model parameters are adjusted to perform the next batch of iterative training until the optimal model parameters of the first model are obtained. Substitute the optimal model parameters of the first model into the first model to obtain the optimal model of the first model. Among them, the optimal model of the first model can be shown as follows (15):
[0129]
[0130] Where y corresponds to the disk service performance index evaluation value y in formula (10) service ;x i is the ith indicator in the hardware parameter indicator feature set of the first disk; n represents the number of indicators in the hardware parameter indicator feature set of the first disk; w i Represents the weight coefficient of the i-th indicator in the hardware parameter indicator feature set of the first disk; the value range of i is an integer greater than or equal to 1 and less than or equal to n.
[0131] In an embodiment of the present disclosure, the weight of each indicator in the business performance indicator feature set is calculated based on the business performance indicator feature set of the first disk collected within the first time period. Based on the business performance indicator feature set of the first disk and the weight corresponding to each business performance indicator, a disk business performance evaluation value calculation formula is obtained. Based on the business performance indicator feature set of the first disk, the hardware parameter indicator feature set and the disk business performance evaluation value calculation formula, a first model is constructed. Based on the business performance indicator feature set of the first disk obtained within the first time period, the hardware parameter indicator feature set and the disk business performance evaluation value calculation formula, training is performed to obtain the optimal model of the first model. Through the optimal model of the first model, the hardware parameter indicator feature set of the first disk collected within the first time period can be converted into a corresponding business performance indicator evaluation value set. By correlating and analyzing the hardware parameter indicators of the first disk with the business performance indicators of the first disk, the first model can detect the business health status of the first disk based on the hardware parameter indicator data of the first disk.
[0132] It should be noted that, based on the degree of outliers of each score in the first histogram anomaly detection score set, the first threshold is determined, and the outlier mean and outlier difference of the first histogram anomaly detection score set need to be calculated. The disclosed embodiment provides a method for calculating the average value of discrete points, which avoids the problem of insufficient influence of the calculated average value on the outliers and large volatility, and makes up for the problem of lack of a method for calculating the average value of discrete points. Based on the discrete point average value, the outlier difference is calculated to achieve a better separation effect. Figure 4 FIG. 1 is a flow chart of another disk anomaly detection method provided according to an embodiment of the present disclosure. Figure 4 As shown, the disk anomaly detection method includes the following steps:
[0133] In step S401, a service performance indicator evaluation value set of the first disk is obtained according to a hardware parameter indicator feature set of the first disk collected in a first time period.
[0134] In the embodiments of the present disclosure, step S401 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0135] In step S402, a first histogram anomaly detection score set is obtained according to a service performance indicator evaluation value set of a first disk.
[0136] In the embodiments of the present disclosure, step S402 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0137] In step S403, the outlier mean of the first histogram anomaly detection score set is determined.
[0138] In some embodiments of the present disclosure, according to the first histogram anomaly detection score set, the scores in the first histogram anomaly detection score set are logarithmically transformed and exponentially transformed to achieve smoothing of outliers in the first histogram anomaly detection score set, so that the scores in the first histogram anomaly detection score set are closer to a normal distribution. Based on the first histogram anomaly detection scores close to the normal distribution, the outlier mean of the first histogram anomaly detection score set is calculated. The outlier mean of the first histogram anomaly detection score set can be calculated by the following formula (16):
[0139]
[0140] in, is the outlier mean of the first histogram anomaly detection score set; x iis the nth score in the first histogram anomaly detection score set; n is the total number of scores in the first histogram anomaly detection score set; log is the logarithmic function.
[0141] In step S404, the outlier difference of the first histogram anomaly detection score set is determined according to the outlier mean value.
[0142] In some embodiments of the present disclosure, based on the outlier mean, the outlier difference of the first histogram anomaly detection score set can be calculated by the following formula (17):
[0143]
[0144] Where σ is the outlier difference of the first histogram anomaly detection score set; is the outlier mean value of the first histogram anomaly detection score set corresponding to equation (15); i is the nth score in the first histogram anomaly detection score set; n is the total number of scores in the first histogram anomaly detection score set; log is a logarithmic function.
[0145] In step S405, a first threshold is determined according to the outlier mean and the outlier difference.
[0146] In some embodiments of the present disclosure, the first threshold may be one or more.
[0147] For example, when the disk service health status includes only two states, normal and risk, the first threshold may be a risk threshold. When the disk service health status includes three states, normal, sub-healthy and risk, the first threshold may include a risk threshold and a sub-healthy threshold.
[0148] Optionally, according to the outlier mean and the outlier difference, the first threshold value can be calculated by the following formula (18):
[0149]
[0150] Wherein, Threshold is the first threshold; is the outlier mean of the first histogram anomaly detection score set; σ is the outlier difference of the first histogram anomaly detection score set; n is a threshold parameter, which can be an integer greater than or equal to 1. For example, when the disk service health status can be divided into three types: normal state, risk state, and sub-health state, the value of n in the risk threshold can be 3, and the value of n in the sub-health threshold can be 2.
[0151] In step S406, a set of service performance indicator evaluation values of the second disk is obtained according to a set of hardware parameter indicator features of the second disk collected in a second time period; wherein the first time period is earlier than the second time period.
[0152] In the embodiments of the present disclosure, step S406 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0153] In step S407, a second histogram anomaly detection score set is obtained according to the service performance indicator evaluation value set of the second disk.
[0154] In the embodiments of the present disclosure, step S407 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0155] In step S408, the service health status of the second disk is determined according to the first threshold and the second histogram anomaly detection score set.
[0156] In the embodiments of the present disclosure, step S408 may be implemented in any of the ways in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0157] In the embodiment of the present disclosure, the outlier mean of the first histogram anomaly detection score set is determined, which avoids the problem of insufficient influence of the calculated average value on the outlier and large volatility, and makes up for the problem of lack of calculation method for the average value of discrete points. According to the outlier mean, the outlier difference of the first histogram anomaly detection score set is determined, which can achieve a better separation effect. According to the outlier mean and the outlier difference, the first threshold is determined, which improves the accuracy of disk anomaly detection.
[0158] It should be noted that after determining the first threshold and the second histogram anomaly detection score set, the outlier mean of the second histogram anomaly detection score set can be calculated, and then the outlier mean of the second histogram anomaly detection score set is compared with the first threshold to determine the business health status of the second disk. After determining the business health status of the second disk, the disk business performance indicator anomaly detection verification can be further performed.
[0159] Figure 5 FIG. 1 is a flowchart of another disk anomaly detection method provided according to an embodiment of the present disclosure. Figure 5 As shown, the disk anomaly detection method includes the following steps:
[0160] In step S501, a service performance indicator evaluation value set of the first disk is obtained according to a hardware parameter indicator feature set of the first disk collected in a first time period.
[0161] In the embodiments of the present disclosure, step S501 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0162] In step S502, a first histogram anomaly detection score set is obtained according to a service performance indicator evaluation value set of a first disk.
[0163] In the embodiments of the present disclosure, step S502 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0164] In step S503, a first threshold is determined based on the first histogram anomaly detection score set.
[0165] In the embodiments of the present disclosure, step S503 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0166] In step S504, a set of service performance indicator evaluation values of the second disk is obtained according to a set of hardware parameter indicator features of the second disk collected in a second time period; wherein the first time period is earlier than the second time period.
[0167] In the embodiments of the present disclosure, step S504 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0168] In step S505, a second histogram anomaly detection score set is obtained according to the service performance indicator evaluation value set of the second disk.
[0169] In the embodiments of the present disclosure, step S505 may be implemented in any manner in the embodiments of the present disclosure, and the embodiments of the present disclosure do not limit this and will not be described in detail.
[0170] In step S506 , the outlier mean of the second histogram anomaly detection score set is determined.
[0171] In some embodiments of the present disclosure, the outlier mean value of the second histogram anomaly detection score set may be calculated by formula (14).
[0172] In step S507, the outlier mean value of the second histogram anomaly detection score set is compared with the first threshold.
[0173] As a possible implementation manner, when the first threshold is a single threshold, the service health status of the second disk may be determined by comparing the outlier mean value of the second histogram anomaly detection score set with the first threshold.
[0174] As a possible implementation, when the first threshold includes multiple thresholds, the business health status of the second disk can be determined by comparing the outlier mean value of the second histogram anomaly detection score set with multiple thresholds in the first threshold. For example, when the disk business health status is divided into three states: normal, sub-healthy and risky, the first threshold also includes a risk threshold and a sub-healthy threshold. The risk threshold can be The sub-health threshold can be The service health status of the second disk may be determined by comparing the outlier mean value of the second histogram anomaly detection score set with the risk threshold and the sub-health threshold.
[0175] In step S508, a comparison result between the outlier mean value of the second histogram anomaly detection score set and the first threshold satisfies the first requirement, and it is determined that the service health status of the second disk is suspected to be abnormal.
[0176] As a possible implementation manner, when the first threshold is a single threshold, the first requirement may mean that the outlier mean value of the second histogram anomaly detection score set is greater than the first threshold.
[0177] For example, when the disk service health status is divided into a normal state and a risk state, the first threshold is the risk threshold. When the outlier mean of the second histogram anomaly detection score set is greater than the risk threshold, the first requirement is met and it is determined that the service health status of the second disk is suspected to be abnormal.
[0178] As a possible implementation method, when the first threshold is multiple thresholds, the first requirement may mean that the outlier mean value of the second histogram anomaly detection score set is greater than the maximum threshold value in the first threshold value, or that the outlier mean value of the second histogram anomaly detection score set is located in a threshold interval composed of two similar threshold values in the first threshold value.
[0179] For example, when the disk service health status is divided into a normal state, a sub-healthy state, and a risk state, the first threshold may include a sub-healthy threshold and a risk threshold. When the outlier mean of the second histogram anomaly detection score set is greater than the risk threshold, the first requirement is met, and it is determined that the service health status of the second disk is suspected to be abnormal. When the outlier mean of the second histogram anomaly detection score set is greater than the sub-healthy threshold and less than the risk threshold, the first requirement is met, and it is determined that the service health status of the second disk is suspected to be abnormal.
[0180] In step S509, a first business performance indicator set and a second business performance indicator set of corresponding time periods in the business performance indicator evaluation value set of the first disk and the business performance indicator evaluation value set of the second disk are obtained.
[0181] Optionally, in some embodiments of the present disclosure, a first business performance indicator set corresponding to a first time period in a business performance indicator evaluation value set of a first disk may be obtained.
[0182] Optionally, in some embodiments of the present disclosure, a second business performance indicator set corresponding to a second time period in a business performance indicator evaluation value set of a second disk may be obtained.
[0183] In step S510, an anomaly detection verification value is determined according to the first service performance indicator set and the second service performance indicator set.
[0184] Optionally, in some embodiments of the present disclosure, the first business performance indicator set and the second business performance indicator set may be normalized to obtain a normalized first business performance indicator set and a normalized second business performance indicator set.
[0185] In some embodiments of the present disclosure, the specific implementation method of determining the anomaly detection verification value based on the first business performance indicator set and the second business performance indicator set may be: determining the first root mean square mean and standard deviation of the first business performance indicator set; determining the second root mean square mean of the second business performance indicator set; determining the anomaly detection verification value based on the first root mean square mean, standard deviation and second root mean square mean.
[0186] Optionally, based on the second service performance indicator set, the root mean square mean of the second service performance indicator set is calculated. The root mean square mean of the second service performance indicator set can be calculated by the following formula (19):
[0187]
[0188] Among them, D′ service-test (avg) is the root mean square mean of the second service performance indicator set; x i is the ith score in the second service performance indicator set; and n is the total number of scores in the second service performance indicator set.
[0189] In some embodiments of the present disclosure, after the RMS mean of the second service performance indicator set is determined, the RMS mean and standard deviation of the first service performance indicator set may be calculated based on the first service performance indicator set.
[0190] Optionally, the root mean square mean of the first service performance indicator set can be calculated by the following formula (20):
[0191]
[0192] Among them, D′ service-train (avg) is the root mean square mean of the first service performance indicator set; x iis the i-th score in the first service performance indicator set; n is the total number of scores in the first service performance indicator set.
[0193] Optionally, the standard deviation of the first service performance indicator set can be calculated by the following formula (21):
[0194]
[0195] Among them, D′ service-train (σ) is the standard deviation of the first service performance indicator set; x i is the i-th score in the first service performance indicator set; n is the total number of scores in the first service performance indicator set; is the average value of all scores in the first service performance indicator set.
[0196] In some embodiments of the present disclosure, an anomaly detection verification value is determined based on a root mean square mean of the first business performance indicator set, a standard deviation of the first business performance indicator set, and a root mean square mean of the second business performance indicator set.
[0197] As an example of a possible implementation, the difference between the root mean square mean of the first service performance indicator set and the root mean square mean of the second service performance indicator set is calculated, and the absolute value of the quotient obtained by dividing the difference by the standard deviation of the first service performance indicator set is determined as the anomaly detection verification value. The anomaly detection verification value can be calculated by the following formula (22):
[0198]
[0199] Among them, z service-test is the anomaly detection verification value; D′ service-train (avg) is the root mean square mean of the first service performance indicator set; D′ service-train (σ) is the standard deviation of the first service performance indicator set; D′ service-test (avg) is the root mean square mean of the second service performance indicator set.
[0200] As an example of a possible implementation, the difference between the root mean square mean of the first service performance indicator set and the root mean square mean of the second service performance indicator set is calculated. The quotient obtained by dividing the difference with the standard deviation of the first service performance indicator set of integer multiples is determined as the anomaly detection verification value by the absolute value of the quotient. The anomaly detection verification value can be calculated by the following formula (23):
[0201]
[0202] Among them, z service-test is the anomaly detection verification value; D′ service-train(avg) is the root mean square mean of the first service performance indicator set; D′ service-train (σ) is the standard deviation of the first service performance indicator set; D′ service-tes t(avg) is the root mean square mean of the second service performance indicator set; a is the standard deviation multiple, the value range is an integer greater than or equal to 2, and the general value is 3.
[0203] In step S511, it is determined whether an abnormality occurs in the service health status of the second disk according to the abnormality detection verification value.
[0204] In some embodiments of the present disclosure, if the anomaly detection verification value is greater than or equal to the second threshold, it is determined that an abnormality has occurred in the business health status of the second disk; or, if the anomaly detection verification value is less than or equal to the second threshold, it is determined that no abnormality has occurred in the business health status of the second disk.
[0205] As a possible implementation, when the second threshold is 1 and the anomaly detection verification value is greater than 1, it is determined that the service health status of the second disk is abnormal. service-tes When t>1, it means D′ service-test (avg) Overall distance D′ service-train (avg) reaches more than a times the standard deviation, generally 3 times the standard deviation, so it can be determined that the business health status of the second disk is abnormal.
[0206] As a possible implementation, when the second threshold is 1 and the anomaly detection verification value is less than or equal to 1, it is determined that the service health status of the second disk is normal. service-test When ≤1, it means D′ service-test (avg) Overall distance D′ service-train (avg) is lower than a times the standard deviation, usually 3 times the standard deviation. Therefore, it can be determined that the service health status of the second disk is normal.
[0207] In an embodiment of the present disclosure, when the comparison result of the outlier mean value of the second histogram anomaly detection score set and the first threshold value meets the first requirement, it is determined that the business health status of the second disk is suspected to be abnormal. After determining that the business health status of the second disk is suspected to be abnormal, the anomaly detection verification value is determined based on the first business performance indicator set and the second business performance indicator set. According to the anomaly detection verification value, it is determined whether the business health status of the second disk is abnormal, thereby realizing the serial judgment of the business health status of the disk and further improving the accuracy of the disk anomaly detection.
[0208] Figure 6 is a block diagram of a disk anomaly detection device provided according to an embodiment of the present disclosure. Figure 6The device includes a first acquisition module 601, a second acquisition module 602, a first determination module 603, a third acquisition module 604, a fourth acquisition module 605 and a second determination module 606.
[0209] A first acquisition module 601 is used to acquire a service performance indicator evaluation value set of the first disk according to a hardware parameter indicator feature set of the first disk collected in a first time period;
[0210] A second acquisition module 602 is used to acquire a first histogram anomaly detection score set according to a service performance indicator evaluation value set of the first disk;
[0211] A first determination module 603, configured to determine a first threshold based on the first histogram anomaly detection score set;
[0212] A third acquisition module 604 is used to acquire a set of service performance indicator evaluation values of the second disk according to a set of hardware parameter indicator characteristics of the second disk collected in a second time period; wherein the first time period is earlier than the second time period;
[0213] A fourth acquisition module 605 is used to acquire a second histogram anomaly detection score set according to the service performance indicator evaluation value set of the second disk;
[0214] The second determination module 606 is configured to determine the service health status of the second disk according to the first threshold and the second histogram anomaly detection score set.
[0215] As an example, the first acquisition module 601 can also be used to: construct a histogram data set of the first disk based on a set of hardware parameter indicator features of the first disk collected during a first time period; input the histogram data set of the first disk into a pre-trained first model to obtain a set of business performance indicator evaluation values of the first disk output by the first model; wherein the first model has learned the correlation between the disk business performance indicator evaluation value and the disk hardware parameter indicator feature.
[0216] As an example, the second acquisition module 602 can also be used to: construct an indicator feature histogram based on the business performance indicator evaluation value set of the first disk, and calculate the probability density distribution model of histogram outlier anomaly detection; calculate the probability density of each sample in the business performance indicator evaluation value set of the first disk in the indicator feature histogram based on the business performance indicator evaluation value set of the first disk; obtain the first histogram anomaly detection score set based on the probability density distribution model and the probability density of each sample in the indicator feature histogram.
[0217] As an example, the disk anomaly detection device may further include a first processing module 607 for normalizing the service performance indicator evaluation value set of the first disk.
[0218] As an example, the first determination module 603 can also be used to: determine the outlier mean of the first histogram anomaly detection score set; determine the outlier difference of the first histogram anomaly detection score set based on the outlier mean; determine the first threshold based on the outlier mean and the outlier difference.
[0219] As an example, the first determination module 603 may also be used to calculate the outlier mean value by the following formula:
[0220]
[0221] in, is the outlier mean value of the first histogram anomaly detection score set; x i is the ith score in the first histogram anomaly detection score set; n is the total number of scores in the first histogram anomaly detection score set; and log is a logarithmic function.
[0222] As an example, the first determination module 603 may also be used to calculate the outlier difference by the following formula:
[0223]
[0224] Wherein, σ is the outlier difference of the first histogram anomaly detection score set.
[0225] As an example, the second determination module 606 can also be used to: determine the outlier mean of the second histogram anomaly detection score set; compare the outlier mean of the second histogram anomaly detection score set with the first threshold; if the comparison result of the outlier mean of the second histogram anomaly detection score set and the first threshold meets the first requirement, it is determined that the business health status of the second disk is suspected to be abnormal.
[0226] As an example, the disk anomaly detection device may also include a first verification module 608 for obtaining a first business performance indicator set and a second business performance indicator set for corresponding time periods in a business performance indicator evaluation value set of the first disk and a business performance indicator evaluation value set of the second disk; determining an anomaly detection verification value based on the first business performance indicator set and the second business performance indicator set; and determining whether an abnormality occurs in the business health status of the second disk based on the anomaly detection verification value.
[0227] As an example, the first verification module 608 can also be used to: determine a first root mean square mean and standard deviation of a first set of business performance indicators; determine a second root mean square mean of a second set of business performance indicators; and determine an anomaly detection verification value based on the first root mean square mean, standard deviation, and second root mean square mean.
[0228] As an example, the first verification module 608 can also be used to: when the anomaly detection verification value is greater than or equal to the second threshold, determine that an abnormality has occurred in the business health status of the second disk; or, when the anomaly detection verification value is less than or equal to the second threshold, determine that no abnormality has occurred in the business health status of the second disk.
[0229] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0230] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a non-transitory computer-readable storage medium.
[0231] like Figure 7 , is a block diagram of an electronic device provided according to an embodiment of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0232] Reference Figure 7 , the electronic device includes: at least one processor 701, a memory 702, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 701 is taken as an example.
[0233] The memory 702 is a non-transient computer-readable storage medium provided by the present disclosure. The memory stores instructions executable by at least one processor to enable the at least one processor to perform the disk anomaly detection method provided by the present disclosure. The non-transient computer-readable storage medium of the present disclosure stores computer instructions, which are used to enable a computer to perform the disk anomaly detection method provided by the present disclosure.
[0234] The memory 702 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the disk anomaly detection method in the embodiment of the present disclosure (for example, the attached Figure 4 The processor 701 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 702, that is, the disk anomaly detection method in the above method embodiment is implemented.
[0235] The memory 702 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created by the use of the electronic device of the disk anomaly detection method, etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 702 may optionally include a memory remotely arranged relative to the processor 701, and these remote memories may be connected to the electronic device for implementing the disk anomaly detection method via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0236] The electronic device of the disk anomaly detection method may further include: an input device 703 and an output device 704. The processor 701, the memory 702, the input device 703 and the output device 704 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.
[0237] The input device 703 can receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device of the disk anomaly detection method, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 704 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0238] The present disclosure also provides a computer program product, which implements the functions of any of the above method embodiments when executed by a computer.
[0239] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application-specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs, that is, the present disclosure also proposes a computer program, which, when executed by a processor, implements the disk anomaly detection method described in the above embodiments, and the one or more computer programs can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a dedicated or general-purpose programmable processor, which can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0240] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0241] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0242] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.
[0243] A computer system may include a client and a server. The client and the server are generally far away from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in a cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain. It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solution disclosed in this disclosure can be achieved, and this document is not limited here. After considering the specification and practicing the invention disclosed here, those skilled in the art will easily think of other embodiments of the present invention. This application is intended to cover any variation, use or adaptation of the present invention, which follows the general principles of the present invention and includes common knowledge or customary technical means in the art that are not disclosed in this disclosure. The description and examples are to be regarded as exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0244] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A disk anomaly detection method, characterized in that: include: Acquire a service performance indicator evaluation value set of the first disk according to a hardware parameter indicator feature set of the first disk collected within a first time period; Obtaining a first histogram anomaly detection score set according to the service performance indicator evaluation value set of the first disk; Determining a first threshold based on the first histogram anomaly detection score set; According to the hardware parameter indicator feature set of the second disk collected in the second time period, a service performance indicator evaluation value set of the second disk is obtained; wherein the first time period is earlier than the second time period; Obtaining a second histogram anomaly detection score set according to the service performance indicator evaluation value set of the second disk; Determining the business health status of the second disk according to the first threshold and the second histogram anomaly detection score set; The determining a first threshold based on the first histogram anomaly detection score set includes: Determining an outlier mean of the first histogram anomaly detection score set; Determining an outlier difference of the first histogram anomaly detection score set according to the outlier mean; Determining the first threshold value according to the outlier mean and the outlier difference; The outlier mean is calculated by the following formula: in, is the outlier mean of the first histogram anomaly detection score set; is the first histogram anomaly detection score set i score; is the total number of scores in the first histogram anomaly detection score set; log is a logarithmic function; and / or, The outlier difference is calculated by the following formula: in, is the outlier difference of the first histogram anomaly detection score set.
2. The method according to claim 1, characterized in that The step of obtaining a set of service performance indicator evaluation values of the first disk according to a set of hardware parameter indicator features of the first disk collected within a first time period includes: Constructing a histogram data set of the first disk according to the hardware parameter indicator feature set of the first disk collected in the first time period; The histogram data set of the first disk is input into a pre-trained first model to obtain a set of business performance indicator evaluation values of the first disk output by the first model; wherein the first model has learned the correlation between the disk business performance indicator evaluation value and the disk hardware parameter indicator characteristics.
3. The method according to claim 1, characterized in that The step of obtaining a first histogram anomaly detection score set according to the service performance indicator evaluation value set of the first disk includes: Based on the business performance indicator evaluation value set of the first disk, construct an indicator feature histogram, and calculate a probability density distribution model for histogram outlier anomaly detection; Based on the service performance indicator evaluation value set of the first disk, calculating the probability density of each sample in the service performance indicator evaluation value set of the first disk in the indicator feature histogram; Based on the probability density distribution model and the probability density of each sample in the indicator feature histogram, the first histogram anomaly detection score set is obtained.
4. The method according to any one of claims 1 to 3, characterized in that Before obtaining the first histogram anomaly detection score set according to the service performance indicator evaluation value set of the first disk, the method further includes: The service performance indicator evaluation value set of the first disk is normalized.
5. The method according to claim 1, characterized in that The determining the service health status of the second disk according to the first threshold and the second histogram anomaly detection score set includes: determining an outlier mean of the second histogram anomaly detection score set; Compare the outlier mean value of the second histogram anomaly detection score set with the first threshold; A comparison result between the outlier mean value of the second histogram anomaly detection score set and the first threshold value meets the first requirement, and it is determined that the business health status of the second disk is suspected to be abnormal.
6. The method according to claim 1 or 5, characterized in that The method further comprises: Obtain a first business performance indicator set and a second business performance indicator set for a corresponding time period in the business performance indicator evaluation value set of the first disk and the business performance indicator evaluation value set of the second disk; Determining an anomaly detection verification value according to the first service performance indicator set and the second service performance indicator set; It is determined whether an abnormality occurs in the service health status of the second disk according to the abnormality detection verification value.
7. The method according to claim 6, characterized in that The determining, according to the first service performance indicator set and the second service performance indicator set, an anomaly detection verification value includes: Determining a first root mean square mean and a standard deviation of the first service performance indicator set; Determining a second root mean square mean of the second service performance indicator set; The anomaly detection verification value is determined based on the first root mean square mean, the standard deviation, and the second root mean square mean.
8. The method according to claim 6 or 7, characterized in that The determining, according to the abnormality detection verification value, whether an abnormality occurs in the service health status of the second disk, includes: The abnormality detection verification value is greater than or equal to the second threshold, and it is determined that the service health status of the second disk is abnormal; or The anomaly detection verification value is less than or equal to the second threshold, and it is determined that there is no anomaly in the service health status of the second disk.
9. A disk anomaly detection device, characterized in that: include: A first acquisition module, configured to acquire a set of service performance indicator evaluation values of the first disk according to a set of hardware parameter indicator features of the first disk collected within a first time period; A second acquisition module, configured to acquire a first histogram anomaly detection score set according to a service performance indicator evaluation value set of the first disk; A first determination module, configured to determine a first threshold based on the first histogram anomaly detection score set; A third acquisition module is used to acquire a set of service performance indicator evaluation values of the second disk according to a set of hardware parameter indicator features of the second disk collected in a second time period; wherein the first time period is earlier than the second time period; A fourth acquisition module, configured to acquire a second histogram anomaly detection score set according to the service performance indicator evaluation value set of the second disk; A second determination module, configured to determine a business health status of the second disk according to the first threshold and the second histogram anomaly detection score set; The determining a first threshold based on the first histogram anomaly detection score set includes: Determining an outlier mean of the first histogram anomaly detection score set; Determining an outlier difference of the first histogram anomaly detection score set according to the outlier mean; Determining the first threshold value according to the outlier mean and the outlier difference; The outlier mean is calculated by the following formula: in, is the outlier mean of the first histogram anomaly detection score set; is the first histogram anomaly detection score set i score; is the total number of scores in the first histogram anomaly detection score set; log is a logarithmic function; and / or, The outlier difference is calculated by the following formula: in, is the outlier difference of the first histogram anomaly detection score set.
10. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.
11. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 8.
