A method for evaluating server health in cloud data centers
By performing feature engineering and cluster analysis on server data, we solve the limitations of server health status assessment and diversity of fault causes in existing technologies, achieve more accurate health assessment and fault warning, and improve operation and maintenance efficiency.
Patent Information
- Application Number
- CN202210464136.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-29
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-04-29
AI Technical Summary
In the existing technology, in server health status assessment, the threshold-based method has great limitations and relies on the setting of multiple attribute data, and is not very versatile, while the similarity calculation-based method cannot effectively consider the diversity of fault causes. , affecting the accuracy of health status judgment.
By collecting various indicator data of the server for feature engineering, filtering attributes without obvious changes, performing dimensionality reduction visualization and clustering, calculating the distance between the server to be evaluated and various center points, and comprehensively mapping it to the range of [0,1], we get The health of the server and alarm based on the set threshold.
This method can more accurately assess the health status of the server, takes into account a variety of fault causes, improves the accuracy and applicability of judgment, helps operation and maintenance personnel take timely measures, and improves the efficiency of active operation and maintenance.
Smart Images

Figure CN114860540B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud data center evaluation, and in particular to a cloud data center server health evaluation method. Background Art
[0002] As humans enter the era of big data, a number of emerging technologies such as 5G, the Internet of Things, and cloud computing have developed rapidly. The development and maturity of emerging technologies have provided support and convenience for the construction of cloud data centers, but also brought new challenges. The huge amount of data places extremely high demands on the reliability and stability of data centers. In large data centers, even with redundant servers as emergency response solutions, server failures may also cause considerable losses. On the one hand, the inability of working businesses to continue running on the failed server will cause trouble to users and service providers; on the other hand, failures may cause data loss, and the consequences of data loss may be catastrophic, difficult or even impossible to recover, resulting in huge economic losses. Therefore, being able to accurately monitor and evaluate the health status of the server in real time can help staff to conduct proactive operations and maintenance, take corresponding measures in advance, and avoid various hazards and losses caused by failures.
[0003] At present, most of the methods for evaluating the health status of servers are based on threshold methods, that is, the monitored data is compared with the preset threshold in real time, and corresponding measures are taken according to the comparison results. There are also methods based on similarity calculation, that is, the vector representation of each server is calculated, and the similarity between the server to be evaluated and each faulty server is calculated by methods such as cosine similarity or Euclidean distance, and finally the average of all calculation results is taken as the health of the server. The threshold-based method relies on the threshold setting and real-time monitoring of many attribute data of the server, which has great limitations and is not very versatile. However, the traditional method based on similarity calculation does not take into account the various causes of failures. Calculating the average similarity with all faulty servers will affect the accuracy of judging the health status of the server.
[0004] In order to understand the development status of the prior art, the existing patents and documents were searched, compared and analyzed, and the following technical information with high relevance to the present invention was screened out:
[0005] Patent Solution 1: CN111008104A A server host health calculation, alarm method and system, provides a server host health calculation, alarm method and system, the method obtains the resource utilization rate of the server host CPU, memory and storage, and divides the resource utilization rate into three intervals. The respective health is calculated by the resource utilization rate of the CPU, memory and storage and the preset health calculation formula, and the calculation formula is fine-tuned according to different utilization intervals. Finally, the sum of the CPU, memory and storage health is calculated using the preset weights to obtain the server health, and the server health is compared with the set threshold to determine whether to issue an alarm and the alarm level. Defects: This solution aims to calculate the health of the server in real time through the resource utilization rate of the main system in the server, and to issue an alarm in time. This solution does not collect the changes and real-time data of various parameters related to server failures in various components of the server, but only focuses on the current resource utilization rate, ignoring the adverse effects of hardware loss and other reasons on server performance and load limits. In addition, the parameters in its health calculation formula and the setting of the weights of each component need to be adjusted differently on different servers, and cannot be widely applied to the health assessment system of various server models.
[0006] Patent Solution 2: CN112925668A server health evaluation method, device, equipment and storage medium, discloses a server health evaluation method, which first collects and merges the server system logs to obtain a merged log, processes it using a word vector model, and obtains a vector representation of the server. The vector representation of each server and the vector representation of each faulty server in the faulty server vector set are used to calculate the similarity, thereby obtaining the similarity value between the server and each faulty server, and then all similarity values are added and the mean is calculated, and the mean is used as the health of the server. Finally, the health of the server is compared with a pre-set health threshold, and the operation to be performed on the server is determined based on the comparison result. This method improves the overall control ability of the server health by evaluating the health of the server, enabling operation and maintenance personnel to pre-process the server in a targeted manner, and indirectly improves the stability of the service. Defects: This solution obtains the vector representation of the system log of the server to be evaluated through the word vector model, calculates the cosine similarity or Euclidean distance between the server and each server in the set of faulty servers to obtain the similarity value between the two servers, and finally adds up all the similarity values and takes the average as the health of the server. However, due to the variety of reasons for server failures, the server to be evaluated may be similar to a certain type of faulty server while being completely dissimilar to other faulty servers. Due to this situation, simply summing the similarity values and taking the average will affect the accuracy of the final health assessment. Summary of the invention
[0007] The present invention aims at the real-time evaluation problem of server health status in large data centers, focuses on two major problems: the numerous attributes constituting server status and the various causes of server failures, and proposes a server health evaluation method.
[0008] The technical solution adopted by the present invention is:
[0009] A method for evaluating the health of a cloud data center server comprises the following steps:
[0010] S1. Collect various indicator data of the server at set time, perform feature engineering, filter out attributes that have no obvious changes in normal servers and faulty servers, and obtain the final feature set of server real-time data;
[0011] S2. Perform dimension reduction visualization on the final feature set of the server's real-time data, analyze the distribution of data samples, and obtain the number of sample clusters of faulty samples; cluster the feature vectors, calculate the class center points of normal servers and faulty servers, calculate the distance between the sample points to be evaluated and the class center points, comprehensively calculate the distance, map the calculation results to the range of [0,1], and obtain the health of the server to be evaluated;
[0012] S3. Compare the health of the server to be evaluated with the set threshold. If the health is greater than the threshold, the server to be evaluated is considered normal. Otherwise, it is considered that the server to be evaluated is about to fail and a failure alarm is issued.
[0013] Furthermore, step S1 specifically includes:
[0014] S11, calculating the variance of each dimension feature in the feature set of each historical indicator data of the server, and filtering the features whose variance is 0 or differs from 0 by a set threshold; wherein the indicator data includes processor load data, memory data and hard disk underlying data read error rate;
[0015] S12. In the feature set that has been initially filtered, for each dimension of feature, select the corresponding feature data in the normal server sample and the faulty server sample, run the Wilcoxon rank sum test, and obtain the p-value of the corresponding feature;
[0016] S13. Compare the calculated p-value of the corresponding feature with the preset significance level; if the p-value is greater than the significance level, it is considered that there is no significant difference between the normal and faulty samples of the corresponding feature and the feature is filtered; otherwise, it is retained to form the final feature set.
[0017] Furthermore, step S2 specifically includes:
[0018] S21, standardizing the features of each dimension in the feature set;
[0019] S22. Use t-SNE to reduce the dimension of the high-dimensional server feature vector after standardization and visualize it, analyze the distribution of data samples, and obtain the number of sample clusters of faulty servers;
[0020] S23. Use the K-Means algorithm to cluster the normal server samples and the faulty server samples respectively, and calculate the class center of each class.
[0021] Further, step S23 specifically includes:
[0022] S231, randomly select k data samples as the initial class center of each class, denoted as c1, c2, ..., ck; where k is the number of clusters, which is calculated according to the number of sample clusters of the faulty server;
[0023] S232, for all data samples, calculate the distance to the center point of each current class, and assign them to the class with the closest distance;
[0024] S233. Calculate a new class center point based on all samples in each class. The calculation formula of the new class center point is as follows:
[0025]
[0026] where c i represents the new center point of the i-th class, represents the jth data sample in the i-th class, p i Represents the number of samples in the i-th class;
[0027] S234, repeating steps S232 and S233 until the maximum number of iterations is reached or the error square sum criterion function converges, and obtaining the class center of each class and the class label of each data sample;
[0028] S235, calculating the Euclidean distance from the sample to be evaluated to the center of each class, and converting it into a probability distribution through a softmax function to obtain the health of the server to be evaluated;
[0029] That is, the softmax value of the i element is the ratio of the index of the element to the sum of the indexes of all elements; therefore, the calculation formula for the health of the server to be evaluated is:
[0030]
[0031] Among them, d xj Represents the Euclidean distance from the sample to be tested to the center point of the normal sample class, d xmrepresents the Euclidean distance from the sample to be tested to each class center. The server health H(x) calculated by formula (5) is mapped to [0,1]. When the difference between H(x) and 1 is within the set range, it indicates that the closer the sample is to the class center of the normal sample, the healthier the server is. When the difference between H(x) and 0 is within the set range, it indicates that the closer the sample is to the class center of the fault sample, the more likely the server is to fail.
[0032] Compared with the prior art, the present invention has the following advantages:
[0033] (1) The present invention collects various status data of the server for feature engineering, obtains a feature set that has a certain correlation with the health status of the server, and calculates clustering and cluster centers based on this feature set. Compared with the traditional health status assessment method based on a single attribute threshold, this method can comprehensively consider the impact of various attributes on the health status of the server.
[0034] (2) In order to solve the problem that the method of taking the average of the similarities between the sample to be evaluated and each fault sample cannot accurately reflect the health of the server due to the diverse causes of faults, this method first analyzes the distribution of fault samples, obtains the number of sample clusters of fault samples, clusters them to obtain the classification center, and comprehensively considers the distance from the sample to be evaluated to the center of each sample class. This method is more suitable for application scenarios where there is more than one type of fault cause.
[0035] (3) The present invention can help operation and maintenance personnel better check, monitor and manage the health status of servers, take targeted measures for servers with low health levels, and improve the efficiency of proactive operation and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 The figure is a flow chart of a method according to an embodiment of the present invention.
[0037] Figure 2 This is a visualization effect diagram of t-SNE dimensionality reduction of fault samples in an embodiment of the present invention. DETAILED DESCRIPTION
[0038] The present invention will be further explained below in conjunction with the accompanying drawings.
[0039] like Figure 1 As shown, the specific analysis steps of an example of a cloud data center server health assessment method of the present invention are as follows:
[0040] S1. Collect various indicator data of the server at set time, perform feature engineering, filter out attributes that have no obvious changes in normal servers and faulty servers, and obtain the final feature set of server real-time data; Step S1 specifically includes:
[0041] S11. Collect various attributes and real-time data that constitute the server status, including processor load data, processor temperature data, memory data, hard disk underlying data read error rate, seek error rate, relocation sector count, etc., a total of 31 dimensions of feature data, calculate the variance of each dimension of all data samples, and filter out features with variances of 0 or close to 0. The results are as follows:
[0042]
[0043]
[0044] Table 1. Calculation results of characteristic data variance
[0045] S12. Set the significance level to 0.05, take normal samples and fault samples on the initially filtered feature set to calculate the Wilcoxon rank sum test, and obtain the p-value of the corresponding feature;
[0046] S13. Compare the calculated p-value with the significance level. Features greater than the significance level are filtered out. The calculation results are as follows:
[0047]
[0048]
[0049] Table 2 Calculation results of characteristic data rank sum test
[0050] After the above steps, the feature set is reduced from the original 31 dimensions to 12 dimensions.
[0051] S2. Perform dimension reduction visualization on the final feature set of the server's real-time data, analyze the distribution of data samples, and obtain the number of sample clusters of faulty samples; cluster the feature vectors, calculate the class center points of normal servers and faulty servers, calculate the distance between the sample points to be evaluated and the class center points, comprehensively calculate the distance, map the calculation results to the range of [0,1], and obtain the health of the server to be evaluated;
[0052] Step S2 specifically includes:
[0053] S21. Standardize the features of each dimension in the feature set. The standardization formula is as follows:
[0054]
[0055] Among them, x represents a certain original eigenvalue, x max represents the maximum value in this feature, x min represents the minimum value of the feature, X normalRepresents the standardized eigenvalue. Through standardization, all eigenvalues are mapped to the range [-1, 1];
[0056] S22. Perform t-SNE dimension reduction visualization on the fault samples and analyze the distribution of the samples. The number of sample clusters of the fault samples is 2. The visualization effect is as follows: Figure 2 ;
[0057] S23, perform K-means clustering on normal samples and fault samples, and calculate the class center of each sample cluster. The calculation results are as follows:
[0058]
[0059]
[0060] Table 3 Class center calculation results
[0061] Step S23 specifically includes:
[0062] S231, randomly select k data samples as the initial class center of each class, denoted as c1, c2, ..., ck; where k is the number of clusters, which is calculated according to the number of sample clusters of the faulty server;
[0063] S232. For all data samples, calculate the distance to the center point of each current class and assign them to the class with the closest distance. The distance calculation formula is as follows:
[0064]
[0065] in represents the value of the i-th feature in the j-th data sample, represents the value of the i-th feature in the center point of the r-th class, d jr represents the distance from the jth data sample to the center point of the rth class, and m is the total number of features;
[0066] S233. Calculate a new class center point based on all samples in each class. The calculation formula of the new class center point is as follows:
[0067]
[0068] where c i represents the new center point of the i-th class, represents the jth data sample in the i-th class, p i Represents the number of samples in the i-th class;
[0069] S234, repeating steps S232 and S233 until the maximum number of iterations is reached or the error square sum criterion function converges, and obtaining the class center of each class and the class label of each data sample;
[0070] S235. Calculate the Euclidean distance from the sample to be evaluated to the center of each class, and convert it into a probability distribution through a softmax function to obtain the health of the server to be evaluated; wherein the softmax function is as follows:
[0071]
[0072] That is, the softmax value of the i element is the ratio of the index of the element to the sum of the indexes of all elements; therefore, the calculation formula for the health of the server to be evaluated is:
[0073]
[0074] Among them, d xj Represents the Euclidean distance from the sample to be tested to the center point of the normal sample class, d xm The server health H(x) calculated by formula (5) is mapped to the range [0,1]. When H(x) is closer to 1, it indicates that the sample is closer to the class center of the normal sample, and the server is healthier. When H(x) is closer to 0, it indicates that the sample is closer to the class center of the fault sample, and the server is more likely to fail.
[0075] The health threshold is set to 0.4. The Euclidean distances from the sample to be evaluated to the center of the normal class and fault class 1 and fault class 2 are calculated, and the calculation results are 0.6338, 0.2256, and 0.6549 respectively. When input into the health calculation formula, the calculation result is 0.295, which is lower than the health threshold, and the sample is judged to be "about to fail".
[0076] The present invention collects various parameters and real-time data of the server, performs feature engineering, selects the features with a high degree of correlation with the health status of the server, forms a feature set, performs clustering based on this feature set, and uses the class center obtained by clustering to perform similarity calculation with the sample to be evaluated, taking into account the impact of various attribute data of the server on the health status. The health calculation formula constructed by the present invention can comprehensively evaluate the similarity between the sample to be tested, the normal sample and various fault samples. Compared with the method of calculating the similarity between the sample to be tested and each fault sample and taking the average, this method is more suitable for scenarios with diverse fault causes.
Claims
1. A cloud data center server health assessment method, characterized in that: The following steps are involved: S1. Collect various indicator data of the server at set time, perform feature engineering, filter out attributes that have no obvious changes in normal servers and faulty servers, and obtain the final feature set of server real-time data; S2. Perform dimension reduction visualization on the final feature set of the server real-time data, analyze the distribution of data samples, and obtain the number of sample clusters of fault samples; The feature vectors are clustered to calculate the class center points of normal servers and faulty servers, and the distances between the sample points to be evaluated and the class center points are calculated. The calculated distances are comprehensively mapped to the range of [0,1] to obtain the health of the server to be evaluated. S3, comparing the health of the server to be evaluated with the set threshold. If the health is greater than the threshold, the server to be evaluated is considered normal. Otherwise, it is considered that the server to be evaluated is about to fail and a failure alarm is issued. Wherein, step S1 specifically includes: S11, calculating the variance of each dimension feature in the feature set of each historical indicator data of the server, and filtering the features whose variance is 0 or differs from 0 by a set threshold; wherein the indicator data includes processor load data, memory data and hard disk underlying data read error rate; S12. In the feature set that has been initially filtered, for each dimension of feature, select the corresponding feature data in the normal server sample and the faulty server sample, run the Wilcoxon rank sum test, and obtain the p-value of the corresponding feature; S13, comparing the calculated p-value of the corresponding feature with the preset significance level; if the p-value is greater than the significance level, it is considered that there is no significant difference between the normal and faulty samples of the corresponding feature, and filtering is performed; otherwise, it is retained to form the final feature set; Wherein, step S2 specifically includes: S21, standardizing the features of each dimension in the feature set; S22. Use t-SNE to reduce the dimension of the high-dimensional server feature vector after standardization and visualize it, analyze the distribution of data samples, and obtain the number of sample clusters of faulty servers; S23, using the K-Means algorithm to cluster the normal server samples and the faulty server samples respectively, and calculating the class center of each class; Wherein, step S23 specifically includes: S231, randomly select k data samples as the initial class center of each class, denoted as c1, c2, ..., ck; where k is the number of clusters, which is calculated according to the number of sample clusters of the faulty server; S232, for all data samples, calculate the distance to the center point of each current class, and assign them to the class with the closest distance; S233. Calculate a new class center point based on all samples in each class. The calculation formula of the new class center point is as follows: where c i represents the new center point of the i-th class, represents the jth data sample in the i-th class, p i Represents the number of samples in the i-th class; S234, repeating steps S232 and S233 until the maximum number of iterations is reached or the error square sum criterion function converges, and obtaining the class center of each class and the class label of each data sample; S235, calculating the Euclidean distance from the sample to be evaluated to the center of each class, and converting it into a probability distribution through a softmax function to obtain the health of the server to be evaluated; That is, the softmax value of the i element is the ratio of the index of the element to the sum of the indexes of all elements; therefore, the calculation formula for the health of the server to be evaluated is: Among them, d xi Represents the Euclidean distance from the sample to be tested to the center point of the normal sample class, d xm The Euclidean distance between the sample to be tested and each class center is represented by the server health H(x) calculated by formula (5) and mapped to [0, 1]. When the difference between H(x) and 1 is within the set range, it indicates that the closer the sample is to the class center of the normal sample, the healthier the server is. When the difference between H(x) and 0 is within the set range, it indicates that the closer the sample is to the class center of the fault sample, the more likely the server is to fail.
Citation Information
Patent Citations
Server host health degree calculation and alarm method and system
CN111008104A
Server health evaluation method and device, equipment and storage medium
CN112925668A
Health degree evaluation method for IT centralized monitoring service system
CN111274087A
Hard disk health degree evaluation method and device
CN111400122A
Key characteristic quantity determination method and system for characterizing health state of transformer
CN111797566A
