Method for detecting abnormal load in cloud computing oriented online service
First Claim
1. A method for detecting an abnormal load in a cloud computing oriented online service comprising:
- step 1, collecting data of each load item in all hosts that bears a current online service with a fixed sampling period;
step 2, pre-processing the data of each load item in all hosts to obtain a first sequence with a fixed time interval, and merging first sequences of all hosts for each load item to obtain a second sequence corresponding to each load item;
step 3, obtaining a coefficient matrix and a detail vector by performing a discrete wavelet transform to each second sequence, and computing an abnormal load probability for each coefficient vector of the coefficient matrix by performing a statistical analysis to each coefficient vector of the coefficient matrix;
step 4, computing a weighted mean of the abnormal load probabilities of all the coefficient vectors of the coefficient matrix with a weighted formula, to obtain an abnormal load probability of each second sequence;
step 5, comparing the abnormal load probability of each second sequence with a confidence interval given by a confidence function, and judging whether there is an abnormal load, and judging that there is no abnormity in the corresponding second sequence if the abnormal load probability of each second sequence is in the confidence interval;
step 6, judging whether there is an abnormal load in the current online service according to data of all load items of the current online service and the abnormal load probability of each second sequence of the current online service, and comprising steps of;
step 6.1, obtaining second sequences of all load items that have the abnormity in the current online service according to a judging result of step 5; and
step 6.2, for each load item that has the abnormity, recording a time point corresponding to a last point in the second sequence of each load item as an occurring time point of the abnormal load, and storing the recorded items into the online service data base; and
step 7, finding a bearing host that has the abnormal load from the current online service by using K-means clustering algorithm;
wherein step 3 comprises;
step 3.1, performing a one-dimensional discrete wavelet transform to the second sequence to obtain the coefficient matrix cA and the detail vector cD according to following formula;
cA,cD=DWT([S1x,S2x, . . . ,Snx],L,‘
haar’
),where Haar wavelet is taken as wavelet basis of the one-dimensional discrete wavelet transform, and transform level L is set according to a difference between the fixed time interval T1 and an abnormal detection period Ts, wherein S1x, S2x, . . . , Snx represents the second sequence;
step 3.2, filtering coefficient vectors out from the coefficient matrix, performing a statistical analysis based on a normal distribution to each coefficient vector, and computing the abnormal load probability of the second sequence, wherein a mean value of the normal distribution is 0, a variance of the normal distribution is an estimated variance of values of the load item in past time of Ts×
m, m is an experience value, the abnormal load probability of the second sequence is a largest value of cumulative distribution probabilities of values of the load item at each time point in Ts, and computed according to following formula of;
1 Assignment
0 Petitions
Accused Products
Abstract
Disclosed are a method and device for detecting an abnormal load. The method includes: collecting data of each load item in all hosts; pre-processing to obtain a second sequence corresponding to each load item; obtaining a coefficient matrix and a detail vector; computing a weighted mean of abnormal load probabilities of all the coefficient vectors, to obtain an abnormal load probability of each second sequence; comparing the abnormal load probability with a confidence interval, and judging whether there is an abnormal load, and judging that there is no abnormity in the corresponding second sequence if the abnormal load probability of each second sequence is in the confidence interval; judging whether there is an abnormal load according to data of all load items and the abnormal load probability of each second sequence; and finding a bearing host that has the abnormal load from the current online service.
12 Citations
10 Claims
-
1. A method for detecting an abnormal load in a cloud computing oriented online service comprising:
-
step 1, collecting data of each load item in all hosts that bears a current online service with a fixed sampling period; step 2, pre-processing the data of each load item in all hosts to obtain a first sequence with a fixed time interval, and merging first sequences of all hosts for each load item to obtain a second sequence corresponding to each load item; step 3, obtaining a coefficient matrix and a detail vector by performing a discrete wavelet transform to each second sequence, and computing an abnormal load probability for each coefficient vector of the coefficient matrix by performing a statistical analysis to each coefficient vector of the coefficient matrix; step 4, computing a weighted mean of the abnormal load probabilities of all the coefficient vectors of the coefficient matrix with a weighted formula, to obtain an abnormal load probability of each second sequence; step 5, comparing the abnormal load probability of each second sequence with a confidence interval given by a confidence function, and judging whether there is an abnormal load, and judging that there is no abnormity in the corresponding second sequence if the abnormal load probability of each second sequence is in the confidence interval; step 6, judging whether there is an abnormal load in the current online service according to data of all load items of the current online service and the abnormal load probability of each second sequence of the current online service, and comprising steps of; step 6.1, obtaining second sequences of all load items that have the abnormity in the current online service according to a judging result of step 5; and step 6.2, for each load item that has the abnormity, recording a time point corresponding to a last point in the second sequence of each load item as an occurring time point of the abnormal load, and storing the recorded items into the online service data base; and step 7, finding a bearing host that has the abnormal load from the current online service by using K-means clustering algorithm; wherein step 3 comprises; step 3.1, performing a one-dimensional discrete wavelet transform to the second sequence to obtain the coefficient matrix cA and the detail vector cD according to following formula;
cA,cD=DWT([S1x,S2x, . . . ,Snx],L,‘
haar’
),where Haar wavelet is taken as wavelet basis of the one-dimensional discrete wavelet transform, and transform level L is set according to a difference between the fixed time interval T1 and an abnormal detection period Ts, wherein S1x, S2x, . . . , Snx represents the second sequence; step 3.2, filtering coefficient vectors out from the coefficient matrix, performing a statistical analysis based on a normal distribution to each coefficient vector, and computing the abnormal load probability of the second sequence, wherein a mean value of the normal distribution is 0, a variance of the normal distribution is an estimated variance of values of the load item in past time of Ts×
m, m is an experience value, the abnormal load probability of the second sequence is a largest value of cumulative distribution probabilities of values of the load item at each time point in Ts, and computed according to following formula of; - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A device for detecting an abnormal load in a cloud computing oriented online service comprising:
-
a processor; and
a memory for storing instructions executable by the processor,wherein the processor is configured to; collect data of each load item in all hosts that bears a current online service with a fixed sampling period; pre-process the data of each load item in all hosts to obtain a first sequence with a fixed time interval, and merge first sequences of all hosts for each load item to obtain a second sequence corresponding to each load item; obtain a coefficient matrix and a detail vector by performing a discrete wavelet transform to each second sequence, and compute an abnormal load probability for each coefficient vector of the coefficient matrix by performing a statistical analysis to each coefficient vector of the coefficient matrix; compute a weighted mean of the abnormal load probabilities of all the coefficient vectors of the coefficient matrix with a weighted formula, to obtain an abnormal load probability of each second sequence; compare the abnormal load probability of each second sequence with a confidence interval given by a confidence function, and judge whether there is an abnormal load, and judge that there is no abnormity in the corresponding second sequence if the abnormal load probability of each second sequence is in the confidence interval; obtain second sequences of all load items that have the abnormity in the current online service according to a judging result of whether there is an abnormal load, and judging that there is no abnormity in the corresponding second sequence if the abnormal load probability of each second sequence is in the confidence interval; and for each load item that has the abnormity, record a time point corresponding to a last point in the second sequence of each load item as an occurring time point of the abnormal load, and store the recorded items into the online service data base; and find a bearing host that has the abnormal load from the current online service by using K-means clustering algorithm; perform a one-dimensional discrete wavelet transform to the second sequence to obtain the coefficient matrix cA and the detail vector cD according to following formula;
cA,cD=DWT([S1x,S2x, . . . ,Snx],L,‘
haar’
),where Haar wavelet is taken as wavelet basis of the one-dimensional discrete wavelet transform, and transform level L is set according to a difference between the fixed time interval T1 and an abnormal detection period Ts, wherein S1x, S2x, . . . , Snx represents the second sequence; filter coefficient vectors out from the coefficient matrix, perform a statistical analysis based on a normal distribution to each coefficient vector, and compute the abnormal load probability of the second sequence, wherein a mean value of the normal distribution is 0, a variance of the normal distribution is an estimated variance of values of the load item in past time of Ts×
m, m is an experience value, the abnormal load probability of the second sequence is a largest value of cumulative distribution probabilities of values of the load item at each time point in Ts, and computed according to following formula of;
-
-
10. A non-transitory computer-readable storage medium having stored therein instructions that, when executed by a processor of an intelligent terminal, causes the intelligent terminal to perform a method for loading a theme application, the method comprising:
-
step 1, collecting data of each load item in all hosts that bears a current online service with a fixed sampling period; step 2, pre-processing the data of each load item in all hosts to obtain a first sequence with a fixed time interval, and merging first sequences of all hosts for each load item to obtain a second sequence corresponding to each load item; step 3, obtaining a coefficient matrix and a detail vector by performing a discrete wavelet transform to each second sequence, and computing an abnormal load probability for each coefficient vector of the coefficient matrix by performing a statistical analysis to each coefficient vector of the coefficient matrix; step 4, computing a weighted mean of the abnormal load probabilities of all the coefficient vectors of the coefficient matrix with a weighted formula, to obtain an abnormal load probability of each second sequence; step 5, comparing the abnormal load probability of each second sequence with a confidence interval given by a confidence function, and judging whether there is an abnormal load, and judging that there is no abnormity in the corresponding second sequence if the abnormal load probability of each second sequence is in the confidence interval; step 6.1, obtaining second sequences of all load items that have the abnormity in the current online service according to a judging result of step 5; and step 6.2, for each load item that has the abnormity, recording a time point corresponding to a last point in the second sequence of each load item as an occurring time point of the abnormal load, and storing the recorded items into the online service data base; and step 7, finding a bearing host that has the abnormal load from the current online service by using K-means clustering algorithm; wherein step 3 comprises; step 3.1, performing a one-dimensional discrete wavelet transform to the second sequence to obtain the coefficient matrix cA and the detail vector cD according to following formula;
cA,cD=DWT([S1x,S2x, . . . ,Snx],L,‘
haar’
),where Haar wavelet is taken as wavelet basis of the one-dimensional discrete wavelet transform, and transform level L is set according to a difference between the fixed time interval T1 and an abnormal detection period Ts, wherein S1x, S2x, . . . , Snx represents the second sequence; step 3.2, filtering coefficient vectors out from the coefficient matrix, performing a statistical analysis based on a normal distribution to each coefficient vector, and computing the abnormal load probability of the second sequence, wherein a mean value of the normal distribution is 0, a variance of the normal distribution is an estimated variance of values of the load item in past time of Ts×
m, m is an experience value, the abnormal load probability of the second sequence is a largest value of cumulative distribution probabilities of values of the load item at each time point in Ts, and computed according to following formula of;
-
Specification