A method, medium and device for allocating cloud server resources
The cloud server resource allocation model is constructed through extreme value theory and Copula theory, which solves the problem of difficulty in predicting and processing sudden load peaks in the existing technology, achieves more efficient resource allocation and load warning, and improves the overall performance and performance of the cloud server. efficiency.
Patent Information
- Application Number
- CN202210739590.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-28
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-06-28
AI Technical Summary
Existing cloud server resource allocation methods are difficult to effectively predict and handle sudden load peaks, resulting in SLA violations and performance degradation. Especially when load data lacks correlation, existing methods cannot accurately predict extreme load conditions and cannot effectively optimize resources. distribute.
Use extreme value theory and Copula theory to establish a volatility data function model, screen maximum load values, build a super-threshold extreme value model, design resource allocation evaluation parameters and load warning mechanisms, optimize resource allocation through edge distribution models, and perform real-time monitoring and adjustment Resource allocation.
It improves load prediction accuracy and resource allocation efficiency, can effectively respond to the needs of different risk attitudes, handle extreme load situations, reduce the probability of SLA violations, and improve the overall efficiency of cloud servers.
Smart Images

Figure CN115098261B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cloud server resource allocation, and in particular to a method, medium and device for cloud server resource allocation. Background Art
[0002] Cloud server (Elastic Compute Service, ECS) is a simple, efficient, secure, reliable, and elastically scalable computing service that allows users to share data through a virtual environment. Due to the elasticity of cloud servers and the pay-per-use model, the efficiency of shared resources is improved, which is cost-effective and makes the business model of cloud computing more and more mature.
[0003] However, with the increase in cloud users, the number of cloud servers experiencing extreme loads is increasing. Especially when considering VM-based cloud services, where resources in a physical server are virtualized and shared among multiple tenants, a server crash will have a huge impact on the tenants' business. Therefore, although extreme loads are rare, they can have catastrophic consequences if they occur once. Avoiding extreme values by placing new servers without limits will incur huge costs. Therefore, resource allocation methods based on extreme values are of great value.
[0004] At present, the existing cloud server resource allocation methods can be divided into two categories, static allocation methods and dynamic allocation methods. The static allocation method mainly improves resource utilization efficiency by optimizing the allocation mechanism. The dynamic allocation method mainly predicts the load before designing the resource allocation model. Most of the current prediction-based cloud server resource allocation methods do not predict the load peak. Cloud users request cloud server resources irregularly, especially when there is a load peak, which will lead to SLA violations and performance degradation, and even server downtime in severe cases. These methods believe that the load peak cannot be predicted, so they focus on the resource allocation mechanism, hoping to reduce resource allocation time and thereby reduce the cost caused by resource imbalance. The extreme value theory points out that extreme value events, that is, situations with extremely rare probability of occurrence, can be analyzed through rigorous mathematical derivation. The extreme value algorithm can predict the possibility of extreme events that have not occurred in the future through past data. Therefore, the extreme value theory can be used to analyze and predict the future load peak of cloud services, and by optimizing the allocation of resources between resource blocks of cloud servers, the probability of SLA violations can be reduced, thereby improving the overall efficiency of cloud servers. The few resource allocation methods that take peak prediction into consideration cannot handle sudden, unpredictable peak situations. These methods often use time series and deep learning methods for prediction. A typical example is the LSTM method, but this type of method requires the load data to have a large autocorrelation. Because this type of method predicts the trend of the load data in the next period based on the trend of the load data in the previous period, prediction can only be made when there is a large correlation between the data. For those sudden, uncorrelated load peaks, this type of method cannot make predictions. Extreme value theory has a great advantage in processing uncorrelated data. Therefore, by using extreme value theory to predict sudden, uncorrelated load data, the prediction accuracy of the overall load can be improved, and then the overall cloud service resource allocation method can be optimized. Summary of the invention
[0005] The present invention provides a method, medium and device for allocating resources of a cloud server, the purpose of which is to accurately predict and allocate resources of different types of resource blocks, and to improve the prediction accuracy and resource allocation efficiency according to the load warning information of the remaining resource blocks.
[0006] In order to achieve the above object, the present invention provides a method for allocating cloud server resources, based on extreme value theory and Capula theory, the method includes:
[0007] Step 1, establish a volatility data function model to obtain volatility;
[0008] Step 2, sorting the volatility and determining the threshold of the load data according to the sorting result;
[0009] Step 3, screening the load maximum value according to the threshold, and building a super-threshold extreme value model of the resource block according to the load maximum value;
[0010] Step 4, designing a resource allocation evaluation parameter for evaluating the load of a resource block;
[0011] Step 5, modeling the edge distribution of the constructed super-threshold extreme value model of the resource block according to the Copula theory to obtain the edge distribution model between resource blocks;
[0012] Step 6: Design a load warning mechanism based on the edge distribution model between resource blocks;
[0013] Step 7: Adjust resource allocation evaluation parameters according to the load warning mechanism, and perform resource allocation according to the adjusted resource allocation evaluation parameters.
[0014] Specifically, step 1 includes:
[0015] The volatility data function model is established as follows:
[0016]
[0017] in, Indicates the fluctuation rate of load data; Represents the load data at time t; Indicates the load mean of the load data, by time period Load data within Determine, the calculation formula is:
[0018]
[0019] Among them, λ represents the weight factor, represents the time window of the load average, The value of
[0020] Further, step 2 specifically includes:
[0021] The threshold for determining load data is:
[0022]
[0023] in, represents the threshold of load data at time t, The volatility series Tk * volatility, T represents the total time points, k * Represents the optimal threshold point, and the calculation formula is as follows:
[0024]
[0025] Among them, AMSE (H T (k)) represents the asymptotic mean square error of the Hill graph method, H T (k) represents the statistic of the Hill plot method, and the calculation formula is as follows:
[0026]
[0027] Among them, k represents the sequence of moments, 1≤k <T; is a positive ratio function, when hour, τ>0 and ρ≤0, τ and ρ are both constants.
[0028] Further, step 3 specifically includes:
[0029] According to the PBdH theorem, the super-threshold extreme value model is constructed as follows:
[0030]
[0031] Among them, F(x) is the super-threshold extreme value model, Indicates that the threshold is exceeded The number of loads, ξ is the shape parameter of the resource block load data, is the scale parameter of resource block load data;
[0032] Calculate the log-likelihood function of the super-threshold extreme value model F(x) for:
[0033]
[0034] When the shape parameter ξ=0, the scale parameter The maximum likelihood estimate of for:
[0035]
[0036] When the shape parameter ξ≠0, the shape parameter ξ and the scale parameter are expressed by the following equation: Take the partial derivative to get the maximum likelihood estimate and the maximum likelihood estimate
[0037]
[0038] in, Indicates that the threshold is exceeded The mean deviation of The objects in .
[0039] Further, step 4 specifically includes:
[0040] The Var parameter is designed as a resource allocation evaluation parameter to evaluate the load of the resource block. The calculation formula is as follows:
[0041]
[0042] Among them, Var ∈ represents the Var parameter at the significance level, ∈ represents the significance level;
[0043] Select ES parameter to assist Var parameter in resource allocation. The calculation formula is as follows:
[0044]
[0045] ES refers to when the load of the resource block exceeds Var ∈ The expected value of the load under the condition of ES ∈ represents the ES parameter at the significance level;
[0046] Use the KS method to determine the rationality of the distribution and calculate Var ∈ and ES ∈ .
[0047] Further, step 5 specifically includes:
[0048] The edge distribution model between resource blocks is determined according to the Copula theory and calculated according to the following formula:
[0049]
[0050] Where F(x,y) represents the resource block g X and g Y The joint distribution of load; γ represents the Copula parameter of the marginal distribution model;
[0051] Among them, F X (x) represents resource block g X The marginal distribution of the load is calculated as follows:
[0052]
[0053] F Y (y) represents resource block g Y The marginal distribution of the load is calculated as follows:
[0054]
[0055] More specifically, step 6 includes:
[0056] Determine the resource block g according to the edge distribution model between resource blocks X and g Y The conditional distribution function of the load, as an early warning mechanism for resource block load, is calculated as follows:
[0057]
[0058] Where F(x|y) represents the resource block g X and g Y Conditional distribution function of the load.
[0059] Furthermore, step 6 also includes:
[0060] The likelihood function is estimated by estimating the Copula parameter γ in F(x|y). The formula is as follows:
[0061]
[0062] in, Indicates resource block g X The load threshold, Indicates resource block g Y The load threshold, Indicates resource block g X Logistic model, Indicates resource block g Y Logistic model, Calculate using the following formula:
[0063]
[0064] Based on the early warning mechanism, the load of the resource block is monitored in real time; when the resource block g X The load reaches the threshold Then, according to F(x|y), resource block g Y resource allocation.
[0065] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed, the above-mentioned cloud server resource allocation method is implemented.
[0066] The present invention also provides a device for allocating cloud server resources, characterized in that it includes a memory and a processor; the memory is used to store computer programs and intermediate data during program processing, and the processor is used to execute the computer program to implement the above-mentioned cloud server resource allocation method.
[0067] The above scheme of the present invention has the following beneficial effects:
[0068] Compared with the existing technology, the present invention uses extreme value theory and Copula theory to predict the extreme load conditions of cloud servers, and establishes a cloud service environment that can effectively predict loads and allocate resources. The maximum value of the load data of the server resource block is modeled by extreme value theory, so that future extreme load conditions can be predicted. By setting resource allocation evaluation parameters, the method can meet the needs of cloud service providers with different risk attitudes. By constructing an association model between resource blocks through the Copula model, the cloud service provider can analyze the edge distribution model between resource blocks, play an early warning role in the resource allocation of resource blocks, and improve the efficiency of resource allocation. The present invention can effectively deal with load prediction problems in extreme situations and improve the efficiency of cloud server resource allocation.
[0069] Other beneficial effects of the present invention will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 A schematic diagram of a flow chart of an embodiment of the present invention;
[0071] Figure 2 A Hill diagram for judging the rationality of a threshold value in an embodiment of the present invention;
[0072] Figure 3 (a) is a threshold test diagram of the shape parameter ξ in an embodiment of the present invention, Figure 3 (b) is the scale parameter in the embodiment of the present invention Threshold test map of ;
[0073] Figure 4 It is a density function based on Copula probability in an embodiment of the present invention. DETAILED DESCRIPTION
[0074] In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will be described in detail with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0075] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0076] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a locking connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0077] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0078] In view of the existing problems, the present invention provides a method, medium and device for allocating cloud server resources.
[0079] Example 1
[0080] like Figure 1 As shown, an embodiment of the present invention provides a method for allocating cloud server resources, based on extreme value theory and Copula theory, the method includes:
[0081] Step 1, establish a volatility data function model to obtain volatility;
[0082] Step 2, sorting the volatility and determining the threshold of the load data according to the sorting result;
[0083] Step 3, screening the load maximum value according to the threshold, and building a super-threshold extreme value model of the resource block according to the load maximum value;
[0084] Step 4, designing a resource allocation evaluation parameter for evaluating the load of a resource block;
[0085] Step 5, modeling the edge distribution of the constructed super-threshold extreme value model of the resource block according to the Copula theory to obtain the edge distribution model between resource blocks;
[0086] Step 6: Design a load warning mechanism based on the edge distribution model between resource blocks;
[0087] Step 7: Adjust resource allocation evaluation parameters according to the load warning mechanism, and perform resource allocation according to the adjusted resource allocation evaluation parameters.
[0088] In the embodiment of the present invention, a cloud service system environment is first established before step 1;
[0089] The resource allocation problem under cloud computing is to map resource blocks that need resources with physical resources based on certain optimization goals. The physical resources of cloud computing include CPU, memory, storage space, etc.; and the load status of resource blocks can be obtained by detecting CPU utilization, the current number of processes, etc. The cloud computing platform uses virtual technology to map host resources to the virtual machine layer, which simplifies the allocation of physical resources between resource blocks. Therefore, the resource allocation method under cloud computing can be simplified as follows: 1. Predict the load status of resource blocks. 2. Allocate virtual resources to resource blocks based on the prediction results. 3. Monitor the load status of resource blocks in real time and adjust the allocation of resource blocks in real time.
[0090] For the simulation experiment of the present invention, the daily Baidu index of a basketball team member is used as the experimental analysis data. The Baidu index reflects the load of each resource block in the Baidu server. The specific description information of some selected stars is shown in Table 1:
[0091] Table 1 Descriptive statistical characteristics
[0092]
[0093] Step 1 in the embodiment of the present invention specifically includes:
[0094] The load data closer to time t has a greater influence on the description of the mean value at time t. The load mean of the load data is calculated according to the load mean weight. The calculation formula is:
[0095]
[0096] Among them, λ represents the weight factor, represents the time window of the load average, Indicates the load mean of the load data, by time period Load data within Decide, The value of
[0097] After removing the calculated mean from the load data, the volatility data function model is established as follows:
[0098]
[0099] in, Indicates the fluctuation rate of load data, Represents the load data at time t.
[0100] Step 2 in the embodiment of the present invention specifically includes:
[0101] Based on the Hill graph method, the threshold is selected. First, all the volatility Sort and get the sequence Then, based on this sequence, we can get the Hill graph statistic H T The calculation formula of (k) is as follows:
[0102]
[0103] Next, the exponential regression model used to calculate the above Hill statistic is as follows:
[0104]
[0105] Among them, 1≤m≤k, {f 1 ,f 2 ,…,f k} is a set of independent and identically distributed random variables that obey the standard exponential distribution, k represents the sequence of moments, k = 1, 2, ..., T-1; is a positive ratio function, when hour, τ>0 and ρ≤0, τ and ρ are both constants.
[0106] Based on the exponential regression model of the Hill statistic, the asymptotic mean square error of the Hill statistic can be obtained. The formula is as follows:
[0107]
[0108] When the asymptotic mean square error is minimized, the threshold selection meets the requirements, and the optimal threshold point k is obtained. * , the calculation formula is as follows:
[0109]
[0110] Among them, AMSE (H T (k)) represents the asymptotic mean square error of the Hill graph method.
[0111] According to the optimal threshold point k * , determine the threshold of load data as:
[0112]
[0113] in, represents the threshold of load data at time t, The volatility series Tk * volatility, T represents the total time point;
[0114] Step 3 in the embodiment of the present invention specifically includes:
[0115] According to the PBdH theorem, the super-threshold extreme value model is constructed as follows:
[0116]
[0117] Among them, F(x) is the super-threshold extreme value model, represents the number of loads exceeding the threshold; ξ is the shape parameter of the resource block load data, is the scale parameter of resource block load data;
[0118] Use maximum likelihood to calculate the shape parameter ξ and the scale parameter Perform parameter estimation;
[0119] When the shape parameter ξ=0, the scale parameter The maximum likelihood estimate of Calculated as follows:
[0120]
[0121] in, Indicates that the threshold is exceeded The mean deviation of The object in
[0122] Among them, when ξ≠0, the shape parameter ξ and the scale parameter The maximum likelihood estimate of and It can be solved by the following equation:
[0123]
[0124] in, The log-likelihood function representing the super-threshold extreme value model can be calculated as follows:
[0125]
[0126] Specifically, the threshold is optimized and adjusted in combination with the super-threshold extreme value model;
[0127] Threshold By W 2 The method is optimized and adjusted, W 2 The statistic is calculated as follows:
[0128]
[0129] in, Volatility The sequence of values in the super-threshold extreme value model The objects in .
[0130] At the significance level α, the corresponding W 2 The statistic is If the calculated W 2 When it is greater than the significance level α, the corresponding statistic is This means that the threshold Too low, need to increase the threshold And test again until W 2 The test results are accepted.
[0131] Step 4 in the embodiment of the present invention specifically includes:
[0132] The Var parameter is designed as a resource allocation evaluation parameter to evaluate the load of the resource block. The calculation formula is as follows:
[0133]
[0134] Among them, Var ∈ represents the Var parameter at the significance level, ∈ represents the significance level;
[0135] Select ES parameters to assist Var parameters in resource configuration. The calculation formula is as follows:
[0136]
[0137] ES refers to when the resource block load exceeds Var ∈ The expected value of the load under the condition of ES ∈ represents the ES parameter at the significance level.
[0138] If ES ∈ Much larger than Var ∈ , then the resource block may have just become popular, and in this case, the size of the significance level ∈ needs to be increased; if ES ∈ Close to Var ∈ , then Var ∈ It can be used as a good reference for allocation.
[0139] Use the KS method to judge the rationality of the distribution. If it is reasonable, calculate ES by the above formula ∈ and Var ∈ If it is unreasonable, the Var is calculated by sorting the volatility and then calculating the percentage. ∈ and ES ∈ .
[0140] Step 5 in the embodiment of the present invention specifically includes:
[0141] The edge distribution model between resource blocks is determined according to the Copula theory and calculated according to the following formula:
[0142]
[0143] Where F(x,y) represents the resource block g X and g Y The joint distribution of load; γ represents the Copula parameter of the marginal distribution model;
[0144] Among them, F X (x) represents resource block g X The marginal distribution of the load is calculated as follows:
[0145]
[0146] F Y (y) represents resource block g Y The marginal distribution of the load is calculated as follows:
[0147]
[0148] Step 6 in the embodiment of the present invention specifically includes:
[0149] Determine the resource block g according to the edge distribution model between resource blocks X and g Y The conditional distribution function of the load, as the criterion for the early warning mechanism of the resource block load, is calculated as follows:
[0150]
[0151] Where F(x|y) represents the resource block g X and g Y The conditional distribution function of the load;
[0152] The likelihood function is estimated by estimating the Copula parameter γ in F(x|y). The formula is as follows:
[0153]
[0154] in Indicates resource block g X The load threshold, Indicates resource block g Y The load threshold, Indicates resource block g X Logistic model, Indicates resource block g Y Logistic model, Calculate using the following formula:
[0155]
[0156] Based on the early warning mechanism, the load of the resource block is monitored in real time; when the resource block g X The load reaches the threshold Then, according to F(x|y), resource block g Y resource allocation.
[0157] In the embodiment of the present invention, the impact of the embodiment of the present invention on resource allocation in the environment is first evaluated; Figure 2 What is shown is a Hill graph, which can be used to judge the rationality of threshold selection. According to the selection criteria of the Hill graph, the sample point corresponding to the horizontal coordinate of the starting point where the Hill graph presents a stable state should be used as the threshold. From the figure, it can be seen that when order∈(410,430), the sequence begins to become stable, so the threshold should be within the sample point corresponding to this range. The threshold value 118.22 calculated by the above steps is within this range, so the threshold calculation method of the embodiment of the present invention is reasonable.
[0158] The parameter estimation of the super-threshold extreme value model changes with the threshold, such as Figure 3 As shown in the figure, a series of thresholds are selected first, and then the parameter estimates corresponding to each threshold are calculated using maximum likelihood estimation. If the changes in the parameter estimates obtained near the threshold are stable, it can be said that the selected threshold is appropriate. As can be seen from the figure, the shape parameter ξ and the scale parameter The graph near the threshold value of 118.22 is stable, which further proves the rationality of the threshold selection. Whether the threshold selection is appropriate determines the accuracy of the load prediction of the embodiment of the present invention, which shows that the embodiment of the present invention is stable in predicting the load extreme value.
[0159] The Copula-based probability density function of the early warning mechanism is as follows: Figure 4 As shown, there is a large correlation between the two sets of load data. It can be clearly seen that the two sets of load data have obvious right skewness, and there is a high probability that the two sets of data will reach extreme values at the same time, which ensures the effectiveness of the embodiment of the present invention. And the cumulative probability density function in the figure is relatively smooth, which shows that when the resource block resources are configured using the embodiment of the present invention, the configured resource amount will change smoothly and stably with the changes in the actual situation, and there will be no sudden changes, so it will not add burden to the cloud server. This is conducive to the use of the embodiment of the present invention in reality.
[0160] Example 2
[0161] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed, the above-mentioned cloud server resource allocation method is implemented.
[0162] Example 3
[0163] The present invention also provides a device for allocating cloud server resources, characterized in that it includes a memory and a processor; the memory is used to store computer programs and intermediate data during program processing, and the processor is used to execute the computer program to implement the above-mentioned cloud server resource allocation method.
[0164] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0165] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0166] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0167] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0168] It can be understood that the same or similar parts in the above embodiments can refer to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.
[0169] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0170] The above are preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.
Claims
1. A method for allocating cloud server resources, based on extreme value theory and Copula theory, characterized in that: The method comprises: Step 1, establish a volatility data function model to obtain volatility; Step 2, sorting the volatility, and determining a threshold value of load data according to the sorting result; Step 3, screening the load maximum value according to the threshold, and constructing an over-threshold extreme value model of the resource block according to the load maximum value; Step 4, designing a resource allocation evaluation parameter for evaluating the load of a resource block; Step 5, modeling the edge distribution of the constructed super-threshold extreme value model of the resource block according to the Copula theory to obtain the edge distribution model between resource blocks; Step 6: Design a load warning mechanism based on the edge distribution model between resource blocks; Step 7: adjusting resource allocation evaluation parameters according to the load early warning mechanism, and performing resource allocation according to the adjusted resource allocation evaluation parameters.
2. The method for allocating cloud server resources according to claim 1, characterized in that: The step 1 specifically includes: The volatility data function model is established as follows: in, Indicates the fluctuation rate of load data; Represents the load data at time t; Indicates the load mean of the load data, by time period Load data within Determine, the calculation formula is: Among them, λ represents the weight factor, represents the time window of the load average, The value of 3. The method for allocating cloud server resources according to claim 1, characterized in that: The step 2 specifically includes: The threshold value of the load data is determined as: in, represents the threshold of load data at time t, The volatility series Tk * volatility, T represents the total time points, k * Represents the optimal threshold point, and the calculation formula is as follows: Among them, AMSE (H T (k)) represents the asymptotic mean square error of the Hill graph method, H T (k) represents the statistic of the Hill plot method, and the calculation formula is as follows: Among them, k represents the sequence of moments, 1≤k <T; is a positive ratio function, when hour, τ>0 and ρ≤0, τ and ρ are both constants.
4. The method for allocating cloud server resources according to claim 1, characterized in that: The step 3 specifically includes: According to the PBdH theorem, the super-threshold extreme value model is constructed as follows: Among them, F(x) is the super-threshold extreme value model, Indicates that the threshold is exceeded The number of loads, ξ is the shape parameter of the resource block load data, is the scale parameter of resource block load data; Calculate the log-likelihood function of the super-threshold extreme value model F(x) for: When the shape parameter ξ=0, the scale parameter The maximum likelihood estimate of for: When the shape parameter ξ≠0, the shape parameter ξ and the scale parameter are expressed by the following equation: Take the partial derivative to get the maximum likelihood estimate and the maximum likelihood estimate in, Indicates that the threshold is exceeded The mean deviation of The objects in .
5. The method for allocating cloud server resources according to claim 1, characterized in that: The step 4 specifically includes: The Var parameter is designed as a resource allocation evaluation parameter to evaluate the load of the resource block. The calculation formula is as follows: Among them, Var ∈ represents the Var parameter at the significance level, ∈ represents the significance level; Select ES parameter to assist Var parameter in resource allocation. The calculation formula is as follows: ES refers to when the load of the resource block exceeds Var ∈ The expected value of the load under the condition of ES ∈ represents the ES parameter at the significance level; Use the KS method to determine the rationality of the distribution and calculate Var ∈ and ES ∈ .
6. The method for allocating cloud server resources according to claim 1, characterized in that: The step 5 specifically includes: The edge distribution model between resource blocks is determined according to the Copula theory and calculated according to the following formula: Where F(x,y) represents the resource block g X and g Y The joint distribution of the load; γ represents the Copula parameter of the marginal distribution model; where F X (x) represents resource block g X The marginal distribution of the load is calculated as follows: F Y (y) represents resource block g Y The marginal distribution of the load is calculated as follows:
7. The method for allocating cloud server resources according to claim 1, characterized in that: The step 6 specifically includes: Determine the resource block g according to the edge distribution model between resource blocks X and g Y The conditional distribution function of the load, as an early warning mechanism for resource block load, is calculated as follows: Where F(x|y) represents the resource block g X and g Y Conditional distribution function of the load.
8. The method for allocating cloud server resources according to claim 1, characterized in that: The step 6 also includes: The likelihood function is estimated by estimating the Copula parameter γ in F(x|y). The formula is as follows: in, Indicates resource block g X The load threshold, Indicates resource block g Y The load threshold, Indicates resource block g X Logistic model, Indicates resource block g Y Logistic model, Calculate using the following formula: Based on the early warning mechanism, the load of the resource block is monitored in real time; when the resource block g X The load reaches the threshold Then, according to F(x|y), resource block g Y Adjust resource allocation.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the cloud server resource allocation method according to any one of claims 1 to 8 is implemented.
10. A device for allocating cloud server resources, characterized in that: It comprises a memory and a processor; the memory is used to store computer programs and intermediate data during program processing, and the processor is used to execute the computer program to implement the cloud server resource allocation method as described in any one of claims 1 to 8.
