Cluster capacity prediction method and device

By building a neural network model in the cluster and using performance index data of the real production environment for capacity prediction, the problem of low cluster capacity prediction accuracy in the existing technology is solved and a more accurate cluster capacity evaluation is achieved.

CN112115036BInactive Publication Date: 2024-09-17BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011038553.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-28
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing cluster capacity prediction methods have poor accuracy and cannot effectively reflect the overall capacity of the cluster. This is mainly because they rely on the test environment for evaluation and are different from the real production environment.

Method used

By obtaining the performance index values ​​​​of each system application, a neural network model is constructed, capacity prediction is performed based on the data of the real production environment, and the preset index fields and capacity values ​​are used for model training and optimization to generate more accurate cluster capacity prediction results.

Benefits of technology

The accuracy of cluster capacity prediction is improved. The data comes from the real production environment and can more accurately reflect the overall carrying capacity of the cluster.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112115036B
    Figure CN112115036B
Patent Text Reader

Abstract

The present application provides a cluster capacity prediction method and device, the method comprising: during the operation of each system application, obtaining each performance indicator value of each system application, extracting the performance indicator value corresponding to each preset indicator field from each performance indicator value, and determining each extracted performance indicator value as the target performance indicator value, inputting each target performance indicator value into a pre-built capacity prediction model, and obtaining the capacity prediction result of the cluster output by the capacity prediction model. It can be seen that the present technical solution pre-builds a capacity prediction model, and predicts the cluster capacity through the capacity prediction model based on each performance indicator of each system application in the real production environment. Since the data for cluster capacity prediction is derived from the real production environment, and the cluster capacity prediction is based on the cluster as a whole, the obtained cluster capacity prediction result is more accurate than the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a cluster capacity prediction method and device. Background Art

[0002] A cluster is a group of independent system applications that are interconnected through a high-speed network. They form a group and are managed as a single system. With the rapid development and widespread application of Internet technology, many business processes currently require cluster processing to meet performance requirements.

[0003] Cluster capacity refers to the overall carrying capacity of the cluster. Accurate cluster capacity prediction is of great significance for guiding production expansion and reduction. At present, cluster capacity prediction is generally based on the test environment. First, a single system application capacity prediction is performed, and then the cluster capacity is evaluated based on the results of all single system application capacity predictions. Because the existing capacity prediction is based on the test environment, and the test environment and the online production environment have large differences in physical machines and deployment, and the cluster processing business involves multiple system applications, which are linked and coordinated to present services to the outside world as a whole. Evaluating cluster capacity through the capacity evaluation of a single system user cannot reflect the overall capacity of the cluster. Therefore, the accuracy of the existing cluster capacity prediction is poor. Summary of the invention

[0004] The present application provides a cluster capacity prediction method and device, aiming to solve the problem of poor accuracy of existing cluster capacity prediction.

[0005] In order to achieve the above objectives, this application provides the following technical solutions:

[0006] A cluster capacity prediction method, wherein the cluster includes at least two system applications, and the method includes:

[0007] During the operation of each of the system applications, obtaining each performance indicator value of each of the system applications;

[0008] Extracting the performance indicator value corresponding to each preset indicator field from each of the performance indicator values, and determining each extracted performance indicator value as a target performance indicator value;

[0009] Each of the target performance indicator values ​​is input into a pre-built capacity prediction model to obtain a capacity prediction result of the cluster output by the capacity prediction model.

[0010] In the above method, optionally, the process of constructing the capacity prediction model includes:

[0011] Obtaining various performance indicator samples pre-stored in the database;

[0012] Performing data preprocessing on each performance indicator sample to obtain an initial performance indicator sample corresponding to each performance indicator sample;

[0013] Extracting the initial performance indicators corresponding to each of the preset indicator fields from each initial performance sample, and determining each extracted initial performance indicator as a target performance indicator sample;

[0014] According to the timestamp corresponding to each of the target performance indicator samples, each target performance indicator sample is grouped to obtain a plurality of sample groups; the number of target performance indicator samples in each of the sample groups is the same;

[0015] Obtaining the capacity value corresponding to each of the sample groups;

[0016] Establishing a neural network model, and training the neural network model according to each of the sample groups and the capacity value corresponding to each of the sample groups;

[0017] Determine, among the sample groups, the sample group that meets the preset boundary conditions as the optimized sample group;

[0018] According to each optimized sample group and the capacity value corresponding to each of the optimized sample groups, the trained neural network model is optimized to obtain a target neural network model, and the target neural network model is used as a capacity prediction model.

[0019] In the above method, optionally, the process of storing each of the performance indicator samples includes:

[0020] During the operation of each system application, each performance indicator value of each system application is obtained according to a preset period, and each obtained performance indicator value is used as a performance indicator sample;

[0021] Determining the business type to which each of the performance indicator samples belongs;

[0022] For each of the performance indicator samples, the performance indicator sample is stored in a location in the database corresponding to the business type to which the performance indicator sample belongs.

[0023] The above method may optionally include optimizing the trained neural network model based on each optimized sample group and the capacity value corresponding to each optimized sample group to obtain the target neural network model, including:

[0024] Selecting one of the optimized sample groups from each of the optimized sample groups;

[0025] The current neural network model is trained using the selected optimized sample group and the capacity value of the optimized sample group to obtain a first result;

[0026] Calculating an error rate according to the current first result and the capacity value of the optimized sample group corresponding to the current first result;

[0027] Determine whether the current error rate is less than a preset error threshold;

[0028] If not, then select one of the optimization sample groups from the remaining optimization sample groups that have not been selected, and return to the step of training the current neural network model with the selected optimization sample group to obtain the first result, until the current error rate meets the preset error threshold, and the optimization of the neural network model is completed;

[0029] The optimized neural network model is used as the target neural network model.

[0030] The above method may, optionally, after obtaining the capacity prediction result of the cluster output by the capacity prediction model, further include:

[0031] The capacity prediction result of the cluster is sent to a visualization interface for display.

[0032] The above method may optionally further include:

[0033] Obtaining the full load index value corresponding to each of the preset index fields;

[0034] Each of the full load index values ​​is input into the capacity prediction model to obtain a limit capacity prediction result of the cluster output by the capacity prediction model.

[0035] A cluster capacity prediction device, wherein the cluster includes at least two system applications, and the device includes:

[0036] A first acquisition unit, used for acquiring each performance indicator value of each of the system applications during the operation of each of the system applications;

[0037] A first extraction unit, configured to extract the performance indicator value corresponding to each preset indicator field from each of the performance indicator values, and determine each extracted performance indicator value as a target performance indicator value;

[0038] The first prediction unit is used to input each of the target performance indicator values ​​into a pre-built capacity prediction model to obtain a capacity prediction result of the cluster output by the capacity prediction model.

[0039] The above device may optionally further include:

[0040] A second acquisition unit is used to acquire each performance indicator sample pre-stored in the database;

[0041] A preprocessing unit, used to perform data preprocessing on each performance indicator sample to obtain an initial performance indicator sample corresponding to each performance indicator sample;

[0042] A second extraction unit is used to extract the initial performance indicators corresponding to each of the preset indicator fields from each initial performance sample, and determine each extracted initial performance indicator as a target performance indicator sample;

[0043] A grouping unit, used to group each target performance indicator sample according to a timestamp corresponding to each target performance indicator sample to obtain a plurality of sample groups; each sample group has the same number of target performance indicator samples;

[0044] A third acquisition unit, used to acquire the capacity value corresponding to each of the sample groups;

[0045] A training unit, used for establishing a neural network model, and training the neural network model according to each of the sample groups and the capacity value corresponding to each of the sample groups;

[0046] A first determining unit, configured to determine, among the sample groups, a sample group that meets a preset boundary condition as an optimized sample group;

[0047] The optimization unit is used to optimize the trained neural network model according to each optimized sample group and the capacity value corresponding to each of the optimized sample groups, obtain a target neural network model, and use the target neural network model as a capacity prediction model.

[0048] The above device may optionally further include:

[0049] A third acquisition unit is used to acquire each performance indicator value of each system application according to a preset period during the operation of each system application, and use each acquired performance indicator value as a performance indicator sample;

[0050] A second determining unit, configured to determine the service type to which each performance indicator sample belongs;

[0051] The storage unit is used to store each performance indicator sample in a location in the database corresponding to the business type to which the performance indicator sample belongs.

[0052] In the above device, optionally, the optimization unit optimizes the trained neural network model according to each optimization sample group to obtain a target neural network model, which is used for:

[0053] Selecting one of the optimized sample groups from each of the optimized sample groups;

[0054] Optimizing the current neural network model with the selected optimization sample group to obtain a first result;

[0055] Calculate the error rate based on the current first result and the selected optimized sample group;

[0056] Determining whether the error rate meets a preset error threshold;

[0057] If not, then select one of the optimization sample groups from the remaining optimization sample groups that have not been selected, and return to the step of optimizing the current neural network model with the selected optimization sample group to obtain the first result, until the current error rate meets the preset error threshold, and the optimization of the neural network model is completed;

[0058] The optimized neural network model is used as the target neural network model.

[0059] A storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned cluster capacity prediction method.

[0060] An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to perform the above-mentioned cluster capacity prediction method.

[0061] Compared with the prior art, this application has the following advantages:

[0062] The present application provides a cluster capacity prediction method and device, the method comprising: during the operation of each system application, obtaining each performance indicator value of each system application, extracting the performance indicator value corresponding to each preset indicator field from each performance indicator value, and determining each extracted performance indicator value as the target performance indicator value, inputting each target performance indicator value into a pre-built capacity prediction model, and obtaining the capacity prediction result of the cluster output by the capacity prediction model. It can be seen that the present technical solution pre-builds a capacity prediction model, and predicts the cluster capacity through the capacity prediction model based on each performance indicator of each system application in the real production environment. Since the data for cluster capacity prediction is derived from the real production environment, and the cluster capacity prediction is based on the cluster as a whole, the obtained cluster capacity prediction result is more accurate than the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0064] Figure 1 A method flow chart of a cluster capacity prediction method provided in this application;

[0065] Figure 2 A flow chart of another method for cluster capacity prediction method provided in this application;

[0066] Figure 3 Another method flow chart of a cluster capacity prediction method provided by the present application;

[0067] Figure 4 An example diagram of a cluster capacity prediction method provided in this application;

[0068] Figure 5 A schematic diagram of the structure of a cluster capacity prediction device provided in this application;

[0069] Figure 6 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION

[0070] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0071] The present application embodiment provides a cluster capacity prediction method, wherein the cluster includes at least two system applications. The method can be applied to a variety of system platforms, and its execution subject can be a processor running on a computer. The flowchart of the cluster capacity prediction method is as follows: Figure 1 As shown, specifically including:

[0072] S101. During the operation of each system application, obtain each performance indicator value of each system application.

[0073] In the method provided in the embodiment of the present application, a distributed monitoring and collection environment is pre-built to obtain the performance indicator values ​​of each system application in a real production environment, that is, during the operation of each system application, the performance indicator values ​​of each system application are obtained.

[0074] Optionally, each performance indicator value of each system application can be obtained in the form of logs.

[0075] It should be noted that the obtained performance indicator values ​​of the various system applications are in the same time series, that is, the timestamps corresponding to the obtained performance indicator values ​​belong to the same time series.

[0076] It should be noted that the various performance indicator values ​​of the system application include performance indicator values ​​at multiple levels, and may optionally include performance indicator values ​​at the underlying hardware layer, the middleware layer, and the upper application layer;

[0077] Optionally, in the method provided in the embodiment of the present application, the distributed monitoring and collection environment constructed can be distributed monitoring zabbix, and the performance indicator values ​​of various levels of the system application are collected through distributed monitoring zabbix. The cluster is collaboratively managed by the distributed system coordination zookeeper.

[0078] S102: extracting the performance indicator value corresponding to each preset indicator field from each performance indicator value, and determining each extracted performance indicator value as a target performance indicator value.

[0079] A plurality of indicator fields are preset, and each preset indicator field is an indicator field having a greater impact on the cluster capacity. For example, the preset field may be a CPU usage rate.

[0080] According to each preset indicator field, the performance indicator value corresponding to each preset indicator field is extracted from all performance indicator values. Specifically, for each preset indicator field, the performance indicator value corresponding to the preset indicator field is obtained by traversing each performance indicator value.

[0081] The performance indicator value corresponding to each pair of the extracted preset indicator fields is determined as the target performance indicator value.

[0082] S103: Input each target performance indicator value into a pre-built capacity prediction model to obtain a capacity prediction result of the cluster output by the capacity prediction model.

[0083] Pre-build the capacity prediction model. It should be noted that the construction of the capacity prediction model involves model training and model optimization. Model training and model optimization are also based on data obtained in the real production environment. That is, the training data for model training and the optimization data for model optimization are both from the real production environment.

[0084] Each target performance indicator value is used as the input of the capacity prediction model. After being processed by the capacity prediction model, the capacity prediction result of the cluster output by the capacity prediction model is obtained.

[0085] It should be noted that before inputting each target performance indicator value into the capacity prediction model, data preprocessing can be performed on each model performance indicator value. Optionally, data preprocessing includes but is not limited to data cleaning. The specific process of data cleaning for each performance indicator sample is an existing technology. Please refer to the existing data cleaning process and will not be repeated here. Input each target performance indicator value after data preprocessing into the capacity prediction model to obtain the capacity prediction result of the cluster of capacity prediction model data.

[0086] The cluster capacity prediction method provided in the embodiment of the present application obtains each performance indicator value of each system application during the operation of each system application, extracts the performance indicator value corresponding to each preset indicator field from each performance indicator value, and determines each extracted performance indicator value as the target performance indicator value, and inputs each target performance indicator value into a pre-built capacity prediction model to obtain the capacity prediction result of the cluster output by the capacity prediction model. The cluster capacity prediction method provided in the embodiment of the present application pre-builds a capacity prediction model, and predicts the cluster capacity through the capacity prediction model based on each performance indicator of each system application in the real production environment. Since the data for cluster capacity prediction is derived from the real production environment and the cluster capacity prediction is based on the cluster as a whole, the obtained cluster capacity prediction result is more accurate than the prior art.

[0087] The above embodiments of the present invention Figure 1 The disclosed step S103 involves a capacity prediction model, and the construction process of the capacity prediction model is shown in the flowchart as follows: Figure 2 As shown, the following steps are included:

[0088] S201. Acquire various performance indicator samples pre-stored in a database.

[0089] The database pre-stores various performance indicator samples of each system application in the cluster, where each performance indicator sample is obtained from the real production environment according to a preset period, that is, it is the historical data of the real production environment. It should be noted that what is stored in the database is the performance indicator samples within a past time period, that is, a large number of performance indicator samples are stored in the database, that is to say, the sample size of the performance indicator samples pre-stored in the acquired database is large enough.

[0090] The process of obtaining each performance indicator sample pre-stored in the database specifically includes the following steps:

[0091] During the operation of each system application, each performance indicator value of each system application is obtained according to a preset period, and each obtained performance indicator value is used as a performance indicator sample;

[0092] Determine the business type to which each performance indicator sample belongs;

[0093] For each performance indicator sample, the performance indicator sample is stored in a location in the database corresponding to the business type to which the performance indicator sample belongs.

[0094] In the method provided in the embodiment of the present application, during the operation of each system in the cluster, each performance indicator value of each system application is obtained according to a preset period, that is, the performance indicator value of each system application during operation in the real production environment is obtained regularly, and each performance indicator value obtained according to the preset period is used as a performance indicator sample, and the business type to which each performance indicator sample belongs is determined. Based on the business type, the performance indicator samples with the same business type are classified, and the performance indicator samples classified into the same category are stored in the location corresponding to the business type in the database. Optionally, each performance indicator sample can be converted into a data format according to a preset format, and the performance indicator samples after format conversion can be stored. Optionally, the preset format can be a Json format.

[0095] S202: Perform data preprocessing on each performance indicator sample to obtain an initial performance indicator sample corresponding to each performance indicator sample.

[0096] For the performance indicator samples obtained from the database, data preprocessing can be performed on each performance indicator sample. Optionally, the data preprocessing includes but is not limited to data cleaning. It should be noted that the specific process of data cleaning for each performance indicator sample is an existing technology. Please refer to the existing data cleaning process, which will not be repeated here.

[0097] Each performance indicator sample after data preprocessing is used as an initial performance indicator sample, that is, after data preprocessing is performed on the performance indicator samples, an initial performance indicator sample corresponding to each performance indicator sample is obtained.

[0098] S203: Extracting the initial performance indicators corresponding to each preset indicator field from each initial performance sample, and determining each extracted initial performance indicator as a target performance indicator sample.

[0099] The preset indicator field mentioned in step S203 is the same as the preset indicator field mentioned in step S102, and will not be described again here.

[0100] The initial performance indicator samples corresponding to each preset field are extracted from all the initial performance indicator samples, that is, the initial performance indicator samples with a greater impact on the cluster capacity are extracted, and the initial performance indicator samples corresponding to each extracted preset field are determined as target performance indicator samples, thereby obtaining multiple target performance indicator samples.

[0101] S204 . Group each target performance indicator sample according to the timestamp corresponding to each target performance indicator sample to obtain a plurality of sample groups.

[0102] According to the timestamp corresponding to each target performance indicator sample, each target performance indicator sample is grouped to group the target indicator samples whose timestamps belong to the same time series together, thereby obtaining multiple sample groups, wherein each sample group contains the performance indicator values ​​corresponding to all preset indicator fields, and the number of samples of the target performance indicator samples in each sample group is the same.

[0103] It should be noted that each sample group contains the performance indicator value of each system application in the cluster; for example, the cluster contains system application A, system application B and system application C, and the preset field is CPU usage. Then, sample group 1 contains system application A with a CPU usage of 40%, system application B with a CPU usage of 30% and system application C with a CPU usage of 14%.

[0104] S205: Obtain the capacity value corresponding to each sample group.

[0105] In the method provided in the embodiment of the present application, the capacity value corresponding to each sample group is obtained.

[0106] S206: Establish a neural network model, and train the neural network model according to each sample group and the capacity value corresponding to each sample group.

[0107] A neural network model is established, and the neural network model is trained according to each sample group and the capacity value corresponding to each sample group, wherein each time a group of sample groups and their corresponding capacity values ​​are used for training, and when all sample groups are used for model training, the training of the neural network model is completed.

[0108] It should be noted that the process of performing model training based on a sample group and its corresponding capacity value can be found in the prior art and will not be described in detail here.

[0109] S207: Determine, among the sample groups, the sample group that meets the preset boundary conditions as the optimized sample group.

[0110] Determine a sample group that meets the preset boundary conditions from the sample group, and determine the sample group that meets the preset boundary conditions as the optimized sample group, wherein the preset boundary conditions include the boundary conditions corresponding to each preset indicator field, and the sample group that meets the preset boundary conditions is used to indicate that each target performance indicator sample in the sample group meets the boundary conditions corresponding to the preset indicator field corresponding to each sample group, that is, for each sample group, determine whether each target performance indicator sample included in the sample meets the boundary conditions corresponding to its corresponding preset indicator field, and if all meet, then determine the sample group as the optimized sample group. For example, in sample group 1, the CPU usage of system application A is 60%, the CPU usage of system application B is 50%, and the CPU usage of system application C is 35%, and the boundary condition corresponding to the preset indicator field CPU is 50%. Since the CPU usage of system application C in sample group 1 is 25%, the boundary condition 50% is not met, and therefore, sample group 1 is not the optimized sample group.

[0111] S208. According to each optimized sample group and the capacity value corresponding to each optimized sample group, the trained neural network model is optimized to obtain a target neural network model, and the target neural network model is used as a capacity prediction model.

[0112] The trained neural network model is optimized according to each optimized sample group and the capacity value corresponding to each optimized sample group. Optionally, the trained neural network model is optimized one optimized sample group and its corresponding capacity value each time, and the error rate is calculated after each optimization. When the error rate meets the error threshold, the optimization of the neural network model is completed, and the optimized neural network model is determined as the target neural network model.

[0113] See also Figure 3 , according to each optimization sample group, the trained neural network model is optimized to obtain the specific process of the target neural network model, including the following steps:

[0114] S301. Select an optimized sample group from various optimized sample groups.

[0115] S302: Train the current neural network model with the selected optimized sample group and the capacity value of the optimized sample group to obtain a first result.

[0116] S303: Calculate the error rate according to the current first result and the capacity value of the optimized sample group corresponding to the current first result.

[0117] In the method provided in the embodiment of the present application, after the current neural network model is trained with the selected optimized sample group and the capacity value of the optimized sample each time, the error rate is calculated based on the first result obtained from the training and the capacity value of the optimized sample group corresponding to the first result.

[0118] S304: Determine whether the current error rate is less than a preset error threshold.

[0119] The error rate is compared with a preset error threshold. When the error rate is less than the preset error threshold, step S305 is executed. When the error rate is not less than the preset error threshold, step S306 is executed.

[0120] S305, completing the optimization of the neural network model, and using the optimized neural network model as the target neural network model.

[0121] S306: Select an optimized sample group from the remaining optimized sample groups that have not been selected.

[0122] If the current error rate is not less than the preset error threshold, an optimized sample group is selected from the remaining optimized sample groups that have not been selected, and the process returns to step S302.

[0123] In the method provided in the embodiment of the present application, the trained neural network model is optimized by optimizing the sample group, that is, the sample group that meets the boundary conditions and the corresponding capacity value, so that the optimized neural network model can predict the boundary data more accurately.

[0124] In the cluster capacity prediction method provided in the embodiment of the present application, a neural network model is trained using historical data from a real production environment to obtain a capacity prediction model.

[0125] In the cluster capacity prediction method provided in the embodiment of the present application, the full load index value corresponding to each preset index field can also be obtained, that is, the full load value of each system application corresponding to each preset index field is obtained, that is, the number of each full load index value obtained is the same as the number of inputs of the capacity prediction model; it should be noted that each full load value is a numerical value artificially constructed based on the preset index field, and each full load index value is input into the capacity prediction model to obtain the maximum capacity prediction result of the cluster output by the capacity prediction model data, thereby realizing the prediction of the maximum capacity of the cluster.

[0126] In the cluster capacity prediction method provided in the embodiment of the present application, after obtaining the capacity prediction result and the limit capacity prediction result of the cluster output by the capacity prediction model, the capacity prediction result and the limit capacity prediction result can also be sent to a visualization interface for display.

[0127] In the method provided in the embodiment of the present application, the overall implementation of the cluster capacity prediction method is described, such as Figure 4 As shown, the specific steps include:

[0128] Through distributed monitoring Zabbix, the performance indicator values ​​of each system application at each level are collected as performance indicator samples and written into the distributed log system Kafka. The same type of indicators are written to the same topic in Kafka, and the cluster is managed by the distributed system coordination Zookeeper. Customize the required indicators for the current cluster, and multi-process periodically fetch data consumption. The time series database OpenTSDB periodically stores the performance indicator samples collected from Kafka. Read the data in OpenTSDB, perform data preprocessing, and associate multiple performance indicator samples into a row of data to form a sample group according to the same time series dimension. Then, based on each sample group, train the pre-established neural network model, and optimize the trained model to obtain the capacity prediction model. Use the capacity prediction model to predict the cluster's real-time or periodic capacity. You can also predict the cluster's limit capacity based on the full load indicator, and send the capacity prediction results to the front-end visualization interface for display.

[0129] Use the trained model to predict the maximum capacity of the system under high index values. The predicted value is automatically pushed to the front-end for update.

[0130] and Figure 1 Corresponding to the method described above, the embodiment of the present application further provides a cluster capacity prediction device for Figure 1 The specific implementation of the method is shown in the following diagram: Figure 5 As shown, specifically including:

[0131] A first acquisition unit 501 is used to acquire each performance indicator value of each system application during the operation of each system application;

[0132] A first extraction unit 502 is used to extract the performance indicator value corresponding to each preset indicator field from each of the performance indicator values, and determine each extracted performance indicator value as a target performance indicator value;

[0133] The first prediction unit 503 is used to input each of the target performance indicator values ​​into a pre-built capacity prediction model to obtain a capacity prediction result of the cluster output by the capacity prediction model.

[0134] The cluster capacity prediction device provided in the embodiment of the present application obtains each performance indicator value of each system application during the operation of each system application, extracts the performance indicator value corresponding to each preset indicator field from each performance indicator value, and determines each extracted performance indicator value as the target performance indicator value, and inputs each target performance indicator value into a pre-built capacity prediction model to obtain the capacity prediction result of the cluster output by the capacity prediction model. The cluster capacity prediction device provided in the embodiment of the present application pre-builds a capacity prediction model, and predicts the cluster capacity through the capacity prediction model based on each performance indicator of each system application in the real production environment. Since the data for cluster capacity prediction is derived from the real production environment and the cluster capacity prediction is based on the cluster as a whole, the obtained cluster capacity prediction result is more accurate than the prior art.

[0135] In one embodiment of the present application, based on the above solution, it can also be configured as follows:

[0136] A second acquisition unit is used to acquire each performance indicator sample pre-stored in the database;

[0137] A preprocessing unit, used to perform data preprocessing on each performance indicator sample to obtain an initial performance indicator sample corresponding to each performance indicator sample;

[0138] A second extraction unit is used to extract the initial performance indicators corresponding to each of the preset indicator fields from each initial performance sample, and determine each extracted initial performance indicator as a target performance indicator sample;

[0139] A grouping unit, used to group each target performance indicator sample according to a timestamp corresponding to each target performance indicator sample to obtain a plurality of sample groups; each sample group has the same number of target performance indicator samples;

[0140] A third acquisition unit, used to acquire the capacity value corresponding to each of the sample groups;

[0141] A training unit, used for establishing a neural network model, and training the neural network model according to each of the sample groups and the capacity value corresponding to each of the sample groups;

[0142] A first determining unit, configured to determine, among the sample groups, a sample group that meets a preset boundary condition as an optimized sample group;

[0143] The optimization unit is used to optimize the trained neural network model according to each optimized sample group and the capacity value corresponding to each of the optimized sample groups, obtain a target neural network model, and use the target neural network model as a capacity prediction model.

[0144] In one embodiment of the present application, based on the above solution, it can also be configured as follows:

[0145] A third acquisition unit is used to acquire each performance indicator value of each system application according to a preset period during the operation of each system application, and use each acquired performance indicator value as a performance indicator sample;

[0146] A second determining unit, configured to determine the service type to which each performance indicator sample belongs;

[0147] The storage unit is used to store each performance indicator sample in a location in the database corresponding to the business type to which the performance indicator sample belongs.

[0148] In one embodiment of the present application, based on the above scheme, the optimization unit optimizes the trained neural network model according to each optimization sample group to obtain a target neural network model for:

[0149] Selecting one of the optimized sample groups from each of the optimized sample groups;

[0150] Optimizing the current neural network model with the selected optimization sample group to obtain a first result;

[0151] Calculate the error rate based on the current first result and the selected optimized sample group;

[0152] Determining whether the error rate meets a preset error threshold;

[0153] If not, then select one of the optimization sample groups from the remaining optimization sample groups that have not been selected, and return to the step of optimizing the current neural network model with the selected optimization sample group to obtain the first result, until the current error rate meets the preset error threshold, and the optimization of the neural network model is completed;

[0154] The optimized neural network model is used as the target neural network model.

[0155] In one embodiment of the present application, based on the above solution, it can also be configured as follows:

[0156] The display unit is used to send the capacity prediction result of the cluster to a visualization interface for display.

[0157] In one embodiment of the present application, based on the above solution, it can also be configured as follows:

[0158] A fourth acquisition unit, used to acquire a full load index value corresponding to each of the preset index fields;

[0159] The second prediction unit is used to input each of the full load index values ​​into the capacity prediction model to obtain a limit capacity prediction result of the cluster output by the capacity prediction model.

[0160] The embodiment of the present application further provides a storage medium, wherein the storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to perform the following operations:

[0161] During the operation of each of the system applications, obtaining each performance indicator value of each of the system applications;

[0162] Extracting the performance indicator value corresponding to each preset indicator field from each of the performance indicator values, and determining each extracted performance indicator value as a target performance indicator value;

[0163] Each of the target performance indicator values ​​is input into a pre-built capacity prediction model to obtain a capacity prediction result of the cluster output by the capacity prediction model.

[0164] The present application also provides an electronic device, whose structural diagram is as follows: Figure 6 As shown, it specifically includes a memory 601 and one or more instructions 602, wherein the one or more instructions 602 are stored in the memory 601 and are configured to be executed by one or more processors 603 to perform the following operations:

[0165] During the operation of each of the system applications, obtaining each performance indicator value of each of the system applications;

[0166] Extracting the performance indicator value corresponding to each preset indicator field from each of the performance indicator values, and determining each extracted performance indicator value as a target performance indicator value;

[0167] Each of the target performance indicator values ​​is input into a pre-built capacity prediction model to obtain a capacity prediction result of the cluster output by the capacity prediction model.

[0168] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0169] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0170] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0171] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.

[0172] The above is a detailed introduction to a cluster capacity prediction method and device provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A cluster capacity prediction method, characterized in that: The cluster includes at least two system applications, and the cluster needs multiple system applications to cooperate in a coordinated manner when processing services; the method includes: During the operation of each of the system applications, obtaining each performance indicator value of each of the system applications in the cluster; the each performance indicator includes performance indicators at multiple levels, and the multiple levels include underlying hardware, middleware layer and upper application layer; Extracting the performance indicator value corresponding to each preset indicator field from each of the performance indicator values, and determining each extracted performance indicator value as a target performance indicator value; The target performance indicator value corresponding to each system application is input into a pre-built capacity prediction model to obtain a capacity prediction result of the cluster output by the capacity prediction model; wherein the capacity prediction result represents a predicted value of the overall carrying capacity of the cluster.

2. The method according to claim 1, characterized in that The process of constructing the capacity prediction model includes: Obtaining various performance indicator samples pre-stored in the database; Performing data preprocessing on each performance indicator sample to obtain an initial performance indicator sample corresponding to each performance indicator sample; Extracting the initial performance indicators corresponding to each of the preset indicator fields from each initial performance sample, and determining each extracted initial performance indicator as a target performance indicator sample; According to the timestamp corresponding to each target performance indicator sample, each target performance indicator sample is grouped to obtain a plurality of sample groups; the number of target performance indicator samples in each sample group is the same; Obtaining the capacity value corresponding to each of the sample groups; Establishing a neural network model, and training the neural network model according to each of the sample groups and the capacity value corresponding to each of the sample groups; Determine, among the sample groups, the sample group that meets the preset boundary conditions as the optimized sample group; According to each optimized sample group and the capacity value corresponding to each of the optimized sample groups, the trained neural network model is optimized to obtain a target neural network model, and the target neural network model is used as a capacity prediction model.

3. The method according to claim 2, characterized in that The process of storing each of the performance indicator samples includes: During the operation of each system application, each performance indicator value of each system application is obtained according to a preset period, and each obtained performance indicator value is used as a performance indicator sample; Determining the business type to which each of the performance indicator samples belongs; For each of the performance indicator samples, the performance indicator sample is stored in a location in the database corresponding to the business type to which the performance indicator sample belongs.

4. The method according to claim 2, characterized in that: The method of optimizing the trained neural network model according to each optimized sample group and the capacity value corresponding to each optimized sample group to obtain the target neural network model includes: Selecting one of the optimized sample groups from each of the optimized sample groups; The current neural network model is trained using the selected optimized sample group and the capacity value of the optimized sample group to obtain a first result; Calculating an error rate according to the current first result and the capacity value of the optimized sample group corresponding to the current first result; Determine whether the current error rate is less than a preset error threshold; If not, then select one of the optimization sample groups from the remaining optimization sample groups that have not been selected, and return to the step of training the current neural network model with the selected optimization sample group to obtain the first result, until the current error rate meets the preset error threshold, and the optimization of the neural network model is completed; The optimized neural network model is used as the target neural network model.

5. The method according to claim 1, characterized in that After obtaining the capacity prediction result of the cluster output by the capacity prediction model, the method further includes: The capacity prediction result of the cluster is sent to a visualization interface for display.

6. The method according to claim 1, characterized in that Also includes: Obtaining the full load index value corresponding to each of the preset index fields; Each of the full load index values ​​is input into the capacity prediction model to obtain a limit capacity prediction result of the cluster output by the capacity prediction model.

7. A cluster capacity prediction device, characterized in that: The cluster includes at least two system applications, and the cluster needs multiple system applications to cooperate in a coordinated manner when processing services; the device includes: A first acquisition unit is used to acquire each performance indicator value of each system application in the cluster during the operation of each system application; each performance indicator includes performance indicators at multiple levels, and the multiple levels include underlying hardware, middleware layer and upper application layer; A first extraction unit, configured to extract the performance indicator value corresponding to each preset indicator field from each of the performance indicator values, and determine each extracted performance indicator value as a target performance indicator value; The first prediction unit is used to input the target performance indicator value corresponding to each system application into a pre-built capacity prediction model to obtain the capacity prediction result of the cluster output by the capacity prediction model; wherein the capacity prediction result represents the predicted value of the overall carrying capacity of the cluster.

8. The device according to claim 7, characterized in that Also includes: A second acquisition unit is used to acquire each performance indicator sample pre-stored in the database; A preprocessing unit, used to perform data preprocessing on each performance indicator sample to obtain an initial performance indicator sample corresponding to each performance indicator sample; A second extraction unit is used to extract the initial performance indicators corresponding to each of the preset indicator fields from each initial performance sample, and determine each extracted initial performance indicator as a target performance indicator sample; A grouping unit, used to group each target performance indicator sample according to a timestamp corresponding to each target performance indicator sample to obtain a plurality of sample groups; each sample group has the same number of target performance indicator samples; A third acquisition unit, used to acquire the capacity value corresponding to each of the sample groups; A training unit, used for establishing a neural network model, and training the neural network model according to each of the sample groups and the capacity value corresponding to each of the sample groups; A first determining unit, configured to determine, among the sample groups, a sample group that meets a preset boundary condition as an optimized sample group; The optimization unit is used to optimize the trained neural network model according to each optimized sample group and the capacity value corresponding to each of the optimized sample groups, obtain a target neural network model, and use the target neural network model as a capacity prediction model.

9. The device according to claim 8, characterized in that Also includes: A third acquisition unit is used to acquire each performance indicator value of each system application according to a preset period during the operation of each system application, and use each acquired performance indicator value as a performance indicator sample; A second determining unit, configured to determine the service type to which each performance indicator sample belongs; The storage unit is used to store each performance indicator sample in a location in the database corresponding to the business type to which the performance indicator sample belongs.

10. The device according to claim 8, characterized in that The optimization unit optimizes the trained neural network model according to each optimization sample group to obtain a target neural network model, which is used for: Selecting one of the optimized sample groups from each of the optimized sample groups; Optimizing the current neural network model with the selected optimization sample group to obtain a first result; Calculate the error rate based on the current first result and the selected optimized sample group; Determining whether the error rate meets a preset error threshold; If not, then select one of the optimization sample groups from the remaining optimization sample groups that have not been selected, and return to the step of optimizing the current neural network model with the selected optimization sample group to obtain the first result, until the current error rate meets the preset error threshold, and the optimization of the neural network model is completed; The optimized neural network model is used as the target neural network model.