An online anomaly detection method and system for OLTP applications in a cloud database

By combining the correlation measurement method with the characteristics of the cloud database architecture, the problems of high false alarm rate, low adaptability and long detection time of the OLTP application anomaly detection method are solved, and efficient and accurate anomaly detection is achieved to adapt to the cloud database load. change.

CN114721902BActive Publication Date: 2024-08-23HUAZHONG UNIV OF SCI & TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210310674.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-28
Publication Date
2024-08-23
Estimated Expiration
2042-03-28

Smart Images

  • Figure CN114721902B
    Figure CN114721902B
Patent Text Reader

Abstract

The present invention discloses an online anomaly detection method for OLTP applications in a cloud database, which is implemented based on a correlation measurement method and cloud database architecture characteristics. The correlation measurement method is used to determine the change trend of key indicators, and the correlation threshold is used to determine whether there are key indicators with abnormal change trends. Compared with methods based on statistics and machine learning, this method significantly improves the efficiency of detection; subsequently, it determines the database state by using the time series of key indicators, significantly improving the accuracy of anomaly judgment; at the same time, the correlation threshold discrimination mechanism simplifies the setting of the threshold, greatly reducing labor costs. The present invention also discloses an online anomaly detection system for OLTP applications in a cloud database.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of database technology, and more specifically, designs an online anomaly detection method and system for OLTP applications in a cloud database. Background Art

[0002] Cloud database is a core product in cloud infrastructure. With the rapid development of Internet technology, the scale of data is growing and the data types are becoming more complex. Enterprises need to ensure the reliable storage of data, which brings additional economic burden. Therefore, many enterprises seek more suitable solutions and transfer infrastructure services such as storage to third-party cloud computing service providers. With the continuous growth of the cloud database market, anomaly detection services are crucial to the stability of cloud databases. Online Transaction Processing (OLTP) is the main application of cloud databases and must have the characteristics of high throughput and low latency, which also puts higher requirements on the accuracy and efficiency of anomaly detection services.

[0003] The anomaly detection methods of existing OLTP applications include methods based on traditional statistics and methods based on machine learning. Among them, the anomaly detection method based on traditional statistics sets different deviation thresholds for different key indicators to calculate whether there is a trend of key indicators significantly deviating from the normal mode to discover abnormal problems; the anomaly detection method based on machine learning implicitly learns the changing trends of all key indicators through neural networks, and outputs the abnormal probability of key indicators at a certain moment to discover abnormal problems.

[0004] However, the above anomaly detection methods all have some defects that cannot be ignored: first, the anomaly detection methods based on traditional statistics have high false alarm and missed alarm rates; second, the anomaly detection methods based on traditional statistics are not highly adaptable to cloud database scenarios, which makes it difficult to obtain better accuracy; third, the anomaly detection methods based on machine learning take a long time to complete anomaly detection. Summary of the invention

[0005] In view of the above defects or improvement needs of the prior art, the present invention provides an online anomaly detection method for OLTP applications in a cloud database, which aims to solve the technical problems that the existing online anomaly detection methods based on traditional statistics have high false alarm rate and missed alarm rate, and the technical problem that the adaptability to cloud database scenarios is not high, resulting in difficulty in obtaining good accuracy; and the technical problem that the existing online anomaly detection methods based on machine learning take a long time to complete anomaly detection.

[0006] To achieve the above object, according to one aspect of the present invention, a method for online anomaly detection of OLTP applications in a cloud database is provided, comprising the following steps:

[0007] (1) Set counters count1=1, count2=1, count3=1, i=1, s=1, and obtain a key indicator information set {K} consisting of multiple key indicator information sequences from the monitoring system of the jth cloud database. j1 , K j2 , ..., K jn}, where j∈[1,M], M represents the total number of cloud databases, and n represents the number of key indicator information in the key indicator information set;

[0008] (2) Determine whether count1 is less than the number n of key indicator information in the key indicator information set. If so, proceed to step (3); otherwise, proceed to step (6);

[0009] (3) Determine whether count2 is less than the total number M of the cloud database. If so, proceed to step (4); otherwise, set the counter count1 = count1 + 1 and return to step (2).

[0010] (4) Determine whether count3 is less than the total number M of the cloud database. If so, proceed to step (5); otherwise, set the counter count2 = count2 + 1 and return to step (3);

[0011] (5) Calculate the key indicator information set {K j1 , K j2 , ..., K jn Each key indicator information sequence K in jq The key indicator information set corresponding to the p-th cloud database {K p1 , K p2 , ..., K pn The key indicator information sequence K at the same position in} pq The correlation score S kpq , where p∈[1,M], and p≠j, q∈[1,n], the correlation score S jpq Add the count2*(M-1)+count3th row and count1th column of the correlation coefficient matrix Matrix, set the counter count3=count3+1, and return to step (4).

[0012] (6) Set a matrix Matrix1 with M rows and 3 columns, and determine whether s is greater than the number n of key indicator information in the key indicator information set. If yes, proceed to step (7); otherwise, proceed to step (9);

[0013] (7) Determine whether i is greater than m*(m-1) / 2. If so, proceed to step (8); otherwise, set s=s+1 and return to step (6);

[0014] (8) Determine whether the i-th element in the s-th column of the correlation coefficient matrix Matrix is ​​greater than the first threshold, greater than the second threshold and less than or equal to the first threshold, or less than or equal to the second threshold. If it is greater than the first threshold, increase the value of the i-th row and the first column of the matrix Matrix1 by one, and return to step (7). If it is greater than the second threshold and less than or equal to the first threshold, increase the value of the i-th row and the second column of the matrix Matrix1 by one, and return to step (7). If it is less than or equal to the second threshold, increase the element of the i-th row and the third column of the matrix Matrix1 by one, then set the counter i=i+1, and return to step (7).

[0015] (9) Set counter t=1;

[0016] (10) Determine whether t is greater than M. If so, the process ends; otherwise, go to step (11);

[0017] (11) Determine whether the element in the tth row and the first column of the matrix Matrix1 is equal to the number n of key indicator information in the key indicator information set. If so, mark the tth database as normal and the process ends. Otherwise, proceed to step (12);

[0018] (12) Determine whether the element in the tth row and the third column of the matrix Matrix1 is greater than 0. If so, mark the tth database as abnormal and the process ends. Otherwise, go to step (13);

[0019] (13) Determine whether the element in the tth row and the second column of the matrix Matrix1 is greater than or equal to the third threshold value. If so, mark the tth database as abnormal and the process ends. Otherwise, proceed to step (14);

[0020] (14) The tth database is marked as being in a state to be observed, and the process ends.

[0021] Preferably, the key indicator information includes memory, CPU utilization, and disk capacity, etc.

[0022] Each key indicator information sequence in the key indicator information set has the same length, the length range is [12, 24], preferably 18;

[0023] The total sampling time for obtaining each key indicator information sequence is [60 seconds, 120 seconds], and the sampling time interval is 5 seconds.

[0024] Preferably, the correlation score S in step (5) jpq It is calculated using the following formula:

[0025]

[0026] Where ||.|| represents the modulus length of the sequence within the brackets.

[0027] Preferably, the value range of the first threshold is [0.6, 0.8], preferably 0.7;

[0028] The value range of the second threshold is [0.4, 0.6), preferably 0.5;

[0029] The value range of the third threshold is [3, 6], preferably 4.

[0030] According to another aspect of the present invention, there is provided an online anomaly detection system for OLTP applications in a cloud database, comprising:

[0031] The first module is used to set the counters count1=1, count2=1, count3=1, i=1, s=1, and obtain a key indicator information set {K} consisting of multiple key indicator information sequences from the monitoring system of the jth cloud database. j1 , K j2 , ..., K jn}, where j∈[1,M], M represents the total number of cloud databases, and n represents the number of key indicator information in the key indicator information set;

[0032] The second module is used to determine whether count1 is less than the number n of key indicator information in the key indicator information set, if yes, enter the third module, otherwise enter the sixth module;

[0033] The third module is used to determine whether count2 is less than the total number M of the cloud database. If so, enter the fourth module; otherwise, set the counter count1=count1+1 and return to the second module.

[0034] The fourth module is used to determine whether count3 is less than the total number M of the cloud database. If so, enter the fifth module. Otherwise, set the counter count2=count2+1 and return to the third module.

[0035] The fifth module is used to calculate the key indicator information set {K k1 , K j2 , ..., K kn Each key indicator information sequence K in jq The key indicator information set corresponding to the p-th cloud database {K p1 , K p2 , ..., K pn}The key indicator information sequence K at the same position inpq The correlation score S jpq , where p∈[1,M], and p≠j, q∈[1,n], the correlation score S kpq Add count2*(M-1)+count3th row and count1th column of the correlation coefficient matrix Matrix, set the counter count3=count3+1, and return to the fourth module.

[0036] The sixth module is used to set the matrix Matrix1, whose number of rows is M and the number of columns is 3, and judge whether s is greater than the number n of key indicator information in the key indicator information set. If so, enter the seventh module, otherwise enter the ninth module;

[0037] The seventh module is used to determine whether i is greater than m*(m-1) / 2. If so, enter the eighth module; otherwise, set s=s+1 and return to the sixth module;

[0038] The eighth module is used to determine whether the i-th element in the s-th column of the correlation coefficient matrix Matrix is ​​greater than the first threshold, greater than the second threshold and less than or equal to the first threshold, or less than or equal to the second threshold. If it is greater than the first threshold, the value of the i-th row and the first column of the matrix Matrix1 is increased by one, and the result is returned to the seventh module. If it is greater than the second threshold and less than or equal to the first threshold, the value of the i-th row and the second column of the matrix Matrix1 is increased by one, and the result is returned to the seventh module. If it is less than or equal to the second threshold, the element of the i-th row and the third column of the matrix Matrix1 is increased by one, and then the counter i=i+1 is set, and the result is returned to the seventh module.

[0039] The ninth module is used to set the counter t=1;

[0040] The tenth module is used to determine whether t is greater than M. If so, the process ends, otherwise it enters the eleventh module;

[0041] The eleventh module is used to determine whether the element in the t-th row and the first column of the matrix Matrix1 is equal to the number n of key indicator information in the key indicator information set. If so, the t-th database is marked as normal and the process ends. Otherwise, the process enters the twelfth module.

[0042] The twelfth module is used to determine whether the element in the t-th row and the third column of the matrix Matrix1 is greater than 0. If so, the t-th database is marked as abnormal and the process ends. Otherwise, it enters the thirteenth module;

[0043] The thirteenth module is used to determine whether the element in the t-th row and the second column of the matrix Matrix1 is greater than or equal to the third threshold value. If so, the t-th database is marked as abnormal and the process ends. Otherwise, the process enters the fourteenth module.

[0044] The fourteenth module is used to mark the t-th database as a state to be observed, and the process ends.

[0045] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:

[0046] (1) Since the present invention adopts step (5), the threshold of the key indicator of the database is defined between [0, 1], which solves the problem that the traditional statistical anomaly detection method has a high false alarm rate and a high false alarm rate because the threshold of the key indicator types is difficult to set;

[0047] (2) Since the present invention adopts steps (5) to (7) and judges the sequence of key indicators by using a correlation method, it can solve the technical problem that in the anomaly detection method based on a machine learning method, the neural network needs more time series to learn the sequence change characteristics and complete the anomaly detection;

[0048] (3) Since the present invention adopts step (1) and takes the structure of the cloud database itself into consideration for anomaly detection, it can solve the problem that the statistical anomaly detection method is not highly adaptable to the cloud database scenario, resulting in low accuracy.

[0049] (4) Since the present invention adopts steps (9) to (14), the problem of fluctuations in changes in key indicators of the database is taken into consideration, and the adaptability to dynamic changes in load is better, thereby solving the technical problem that machine learning-based methods have poor adaptability to load and require repeated retraining. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It is a flow chart of the online anomaly detection method of OLTP application in the cloud database of the present invention. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0052] The cloud database cluster is composed of multiple units, each of which contains multiple databases. These databases divert user requests through the load balancing module, and each database receives similar loads, which also leads to the phenomenon that the key indicators of the databases in a unit change similarly. Through this phenomenon, the present invention makes targeted improvements to the existing anomaly detection method, and its purpose is to solve the problems of low accuracy and low detection efficiency of the existing anomaly detection service, and can adapt to the characteristics of cloud database architecture and OLTP applications.

[0053] The present invention is implemented on the basis of the correlation measurement method and the characteristics of the cloud database architecture. The correlation measurement method is used to judge the changing trend of key indicators, and the correlation threshold is used to determine whether there are key indicators with abnormal changing trends. Compared with the methods based on statistics and machine learning, this method significantly improves the detection efficiency. Subsequently, it determines the database status by utilizing the time series of key indicators, which significantly improves the accuracy of abnormal judgment. At the same time, the correlation threshold judgment mechanism simplifies the setting of the threshold and greatly reduces the labor cost.

[0054] like Figure 1 As shown, the present invention provides an online anomaly detection method for OLTP applications in a cloud database, comprising the following steps:

[0055] (1) Set counters count1=1, count2=1, count3=1, i=1, s=1, and obtain a key performance information set {K} consisting of multiple key performance information (KPI) sequences from the monitoring system of the jth cloud database. j1 , K j2 , ..., K jn}, where j∈[1,M], M represents the total number of cloud databases, and n represents the number of key indicator information in the key indicator information set;

[0056] Specifically, key indicator information includes but is not limited to memory, CPU utilization, disk capacity, etc.

[0057] In the present invention, each key indicator information sequence in the key indicator information set has the same length, and the length range is [12, 24], preferably 18. The total sampling time for obtaining each key indicator information sequence is [60 seconds, 120 seconds], and the sampling time interval is 5 seconds.

[0058] The purpose of this step is to take the architecture of the cloud database into consideration so that the method can be more suitable for the anomaly detection environment of the cloud database.

[0059] The advantage of this step is that key indicators are sampled and the interval is set to 5 seconds in order to detect changes in database status more quickly and detect abnormal problems earlier.

[0060] (2) Determine whether count1 is less than the number n of key indicator information in the key indicator information set. If so, proceed to step (3); otherwise, proceed to step (6);

[0061] (3) Determine whether count2 is less than the total number M of the cloud database. If so, proceed to step (4); otherwise, set the counter count1 = count1 + 1 and return to step (2);

[0062] (4) Determine whether count3 is less than the total number M of the cloud database. If so, proceed to step (5); otherwise, set the counter count2 = count2 + 1 and return to step (3);

[0063] (5) Calculate the key indicator information set {K j1 , K j2 , ..., K jn Each key indicator information sequence K in jq The key indicator information set corresponding to the p-th cloud database {K p1 , K p2 , ..., K pn}The key indicator information sequence K at the same position in pq The correlation score S jpq , where p∈[1,M], and p≠j, q∈[1,n], the correlation score S jpq Add count2*(M-1)+count3th row and count1th column of the correlation coefficient matrix Matrix, set counter count3=count3+1, and return to step (4);

[0064] The purpose of this step is to maintain the status of multiple databases in the same matrix by maintaining the matrix. This method reduces the consumption of memory and disk space and saves resources. At the same time, serializing key indicators into correlation scores also reduces the difficulty of data processing.

[0065] Specifically, the relevance score S jpq It is calculated using the following formula:

[0066]

[0067] Where ||.|| represents the modulus length of the sequence within the brackets.

[0068] (6) Set a matrix Matrix1 with M rows and 3 columns, and determine whether s is greater than the number n of key indicator information in the key indicator information set. If yes, proceed to step (7); otherwise, proceed to step (9);

[0069] The purpose of this step is to maintain the correlation status of different KPIs through the matrix Matrix1, in order to facilitate storage and to facilitate the subsequent determination of the final status of the database.

[0070] (7) Determine whether i is greater than m*(m-1) / 2. If so, proceed to step (8); otherwise, set s=s+1 and return to step (6);

[0071] (8) Determine whether the i-th element in the s-th column of the correlation coefficient matrix Matrix is ​​greater than the first threshold, greater than the second threshold and less than or equal to the first threshold, or less than or equal to the second threshold. If it is greater than the first threshold, increase the value of the i-th row and the first column of the matrix Matrix1 by one, and return to step (7). If it is greater than the second threshold and less than or equal to the first threshold, increase the value of the i-th row and the second column of the matrix Matrix1 by one, and return to step (7). If it is less than or equal to the second threshold, increase the element of the i-th row and the third column of the matrix Matrix1 by one, then set the counter i=i+1, and return to step (7).

[0072] Specifically, the value range of the first threshold is [0.6, 0.8], preferably 0.7, and the value range of the second threshold is [0.4, 0.6), preferably 0.5;

[0073] (9) Set counter t=1;

[0074] (10) Determine whether t is greater than M. If so, the process ends; otherwise, go to step (11);

[0075] (11) Determine whether the element in the tth row and the first column of the matrix Matrix1 is equal to the number n of key indicator information in the key indicator information set. If so, mark the tth database as normal and the process ends. Otherwise, proceed to step (12);

[0076] (12) Determine whether the element in the tth row and the third column of the matrix Matrix1 is greater than 0. If so, mark the tth database as abnormal and the process ends. Otherwise, go to step (13);

[0077] (13) Determine whether the element in the tth row and the second column of the matrix Matrix1 is greater than or equal to the third threshold value. If so, mark the tth database as abnormal and the process ends. Otherwise, proceed to step (14);

[0078] Specifically, the value range of the third threshold is [3, 6], preferably 4.

[0079] (14) The tth database is marked as being in a state to be observed, and the process ends.

[0080] This step marks the database as being in a state to be observed. This method tolerates the fluctuations in the time series of key indicators caused by changes in database load, reduces misjudgment of database status, increases accuracy, and also reduces false positive and false negative rates.

[0081] Experimental Results

[0082] The experimental environment of the present invention is as follows: the CPU is 12 Intel(R) Xeon(R) Platinum 8255C CPUs @ 2.50 GHz, the memory is 64 GB DDR4, the hard disk capacity is 200 GB, and Python programming is used to implement the algorithm of the present invention under the CentOS Linux release 147.9 operating system.

[0083] In order to illustrate the universality of the present invention on a variety of data sets, the experiment uses three data sets, as shown in Table 1. In this experiment, (W1, W2, W3) loads are used to calculate accuracy and efficiency. W1, the load comes from a cloud service provider, and W2, W3 come from the open source benchmark tool Sysbench and the key indicator time series collected by the TPCC stress test. The present invention is compared with the two methods disclosed in the document "Robust Anomaly Detection for Multivariate Time Series through StochasticRecurrent Neural Network (KDD2019)" (hereinafter referred to as OmniAnomaly) and "Time-Series Anomaly Detection Service at Microsoft (KDD2019)" (hereinafter referred to as SR-CNN).

[0084] Table 1 shows the accuracy of the method of the present invention under three data sets:

[0085] Table 1 Online anomaly detection accuracy effect (RMM is the method)

[0086]

[0087] Compared with these methods, under the same conditions, the abnormality judgment accuracy of the present invention is improved by 10.3%, 6.1% and 8.2% respectively compared with the best method in the literature.

[0088] Table 2 shows the sources of the three load datasets.

[0089] Table 2 Statistics of the dataset

[0090] Dataset A cloud service provider Sysbench Dataset TPCC dataset Number of databases 100 50 50 Number of key indicators 14 14 14 Time 5529600 432000 432000 Abnormal time point 171970 17187 26308

[0091] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An online anomaly detection method for OLTP applications in a cloud database, characterized in that: The following steps are involved: (1) Set counters count1=1, count2=1, count3=1, i=1, s=1, and obtain a key indicator information set {K} consisting of multiple key indicator information sequences from the monitoring system of the jth cloud database. j1 , K j2 , ..., K jn }, where j∈[1,M], M represents the total number of cloud databases, and n represents the number of key indicator information in the key indicator information set; (2) Determine whether count1 is less than the number n of key indicator information in the key indicator information set. If so, proceed to step (3); otherwise, proceed to step (6); (3) Determine whether count2 is less than the total number M of the cloud database. If so, proceed to step (4); otherwise, set the counter count1=count1+1 and return to step (2); (4) Determine whether count3 is less than the total number M of the cloud database. If so, proceed to step (5); otherwise, set the counter count2 = count2 + 1 and return to step (3); (5) Calculate the key indicator information set {K j1 , K j2 , ..., K jn Each key indicator information sequence K in jq The key indicator information set corresponding to the p-th cloud database {K p1 , K p2 , ..., K pn }The key indicator information sequence K at the same position in pq The correlation score S jpq , where p∈[1,M], and p≠j, q∈[1,n], the correlation score S jpq Add count2*(M-1)+count3th row and count1th column of the correlation coefficient matrix Matrix, set counter count3=count3+1, and return to step (4); (6) Set a matrix Matrix1 with M rows and 3 columns, and determine whether s is greater than the number n of key indicator information in the key indicator information set. If so, proceed to step (7); otherwise, proceed to step (9); (7) Determine whether i is greater than m*(m-1) / 2. If so, proceed to step (8); otherwise, set s=s+1 and return to step (6); (8) Determine whether the i-th element in the s-th column of the correlation coefficient matrix Matrix is ​​greater than the first threshold, greater than the second threshold and less than or equal to the first threshold, or less than or equal to the second threshold; if greater than the first threshold, increment the value of the i-th row and the first column of the matrix Matrix1 by one, and return to step (7); if greater than the second threshold and less than or equal to the first threshold, increment the value of the i-th row and the second column of the matrix Matrix1 by one, and return to step (7); if less than or equal to the second threshold, increment the element of the i-th row and the third column of the matrix Matrix1 by one, then set the counter i=i+1, and return to step (7); (9) Set counter t=1; (10) Determine whether t is greater than M. If so, the process ends; otherwise, go to step (11); (11) Determine whether the element in the tth row and the first column of the matrix Matrix1 is equal to the number n of key indicator information in the key indicator information set. If so, mark the tth database as normal and the process ends. Otherwise, proceed to step (12); (12) Determine whether the element in the tth row and the third column of the matrix Matrix1 is greater than 0. If so, mark the tth database as abnormal and the process ends. Otherwise, go to step (13); (13) Determine whether the element in the tth row and the second column of the matrix Matrix1 is greater than or equal to the third threshold value. If so, mark the tth database as abnormal and the process ends. Otherwise, proceed to step (14); (14) The tth database is marked as being in a state to be observed, and the process ends.

2. The online anomaly detection method for OLTP applications in a cloud database according to claim 1, characterized in that: Key metrics include memory, CPU utilization, and disk capacity; Each key indicator information sequence in the key indicator information set has the same length, and the length range is [12, 24]; The total sampling time for obtaining each key indicator information sequence is [60 seconds, 120 seconds], and the sampling time interval is 5 seconds.

3. The online anomaly detection method for OLTP applications in a cloud database according to claim 1 or 2, characterized in that: The correlation score S in step (5) jpq It is calculated using the following formula: Where ||.|| represents the modulus length of the sequence within the brackets.

4. The online anomaly detection method for OLTP applications in a cloud database according to claim 3, characterized in that: The value range of the first threshold is [0.6, 0.8]; The value range of the second threshold is [0.4, 0.6); The value range of the third threshold is [3, 6].

5. An online anomaly detection system for OLTP applications in a cloud database, characterized in that: include: The first module is used to set the counters count1=1, count2=1, count3=1, i=1, s=1, and obtain a key indicator information set {K} consisting of multiple key indicator information sequences from the monitoring system of the jth cloud database. j1 , K j2 , ..., K jn }, where j∈[1,M], M represents the total number of cloud databases, and n represents the number of key indicator information in the key indicator information set; The second module is used to determine whether count1 is less than the number n of key indicator information in the key indicator information set, if yes, enter the third module, otherwise enter the sixth module; The third module is used to determine whether count2 is less than the total number M of the cloud database. If so, enter the fourth module; otherwise, set the counter count1=count1+1 and return to the second module; The fourth module is used to determine whether count3 is less than the total number M of the cloud database. If so, enter the fifth module. Otherwise, set the counter count2=count2+1 and return to the third module. The fifth module is used to calculate the key indicator information set {K j1 , K j2 , ..., K jn Each key indicator information sequence K in jq The key indicator information set corresponding to the p-th cloud database {K p1 , K p2 , ..., K pn }The key indicator information sequence K at the same position in pq The correlation score S jpq , where p∈[1,M], and p≠j, q∈[1,n], the correlation score S jpq Add count2*(M-1)+count3th row and count1th column of correlation coefficient matrix Matrix, set counter count3=count3+1, and return to the fourth module; The sixth module is used to set the matrix Matrix1, whose number of rows is M and the number of columns is 3, and judge whether s is greater than the number n of key indicator information in the key indicator information set. If so, enter the seventh module, otherwise enter the ninth module; The seventh module is used to determine whether i is greater than m*(m-1) / 2. If so, enter the eighth module; otherwise, set s=s+1 and return to the sixth module; The eighth module is used to determine whether the i-th element in the s-th column of the correlation coefficient matrix Matrix is ​​greater than the first threshold, greater than the second threshold and less than or equal to the first threshold, or less than or equal to the second threshold. If it is greater than the first threshold, the value of the i-th row and the first column of the matrix Matrix1 is increased by one, and the result is returned to the seventh module. If it is greater than the second threshold and less than or equal to the first threshold, the value of the i-th row and the second column of the matrix Matrix1 is increased by one, and the result is returned to the seventh module. If it is less than or equal to the second threshold, the element of the i-th row and the third column of the matrix Matrix1 is increased by one, and then the counter i=i+1 is set, and the result is returned to the seventh module. The ninth module is used to set the counter t=1; The tenth module is used to determine whether t is greater than M. If so, the process ends, otherwise it enters the eleventh module; The eleventh module is used to determine whether the element in the t-th row and the first column of the matrix Matrix1 is equal to the number n of key indicator information in the key indicator information set. If so, the t-th database is marked as normal and the process ends. Otherwise, the process enters the twelfth module. The twelfth module is used to determine whether the element in the t-th row and the third column of the matrix Matrix1 is greater than 0. If so, the t-th database is marked as abnormal and the process ends. Otherwise, it enters the thirteenth module; The thirteenth module is used to determine whether the element in the t-th row and the second column of the matrix Matrix1 is greater than or equal to the third threshold value. If so, the t-th database is marked as abnormal and the process ends. Otherwise, the process enters the fourteenth module. The fourteenth module is used to mark the t-th database as a state to be observed, and the process ends.