Anomaly detection cloud resource management system that receives external information and includes short-term resource planning
By integrating internal and external metrics for anomaly detection and employing short-term and long-term resource management, the system addresses the limitations of traditional cloud resource management, improving predictive accuracy and efficiency.
Patent Information
- Application Number
- JP2024518244
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-10-08
- Filing Date
- 2022-10-06
- Publication Date
- 2024-10-04
- Estimated Expiration
- 2042-10-06
AI Technical Summary
Traditional anomaly detection systems in cloud resource management fail to accurately predict anomalies caused by external events, leading to late corrective actions that degrade application performance, and existing resource optimization techniques lack long-term effectiveness.
Anomaly detection systems that integrate internal and external metrics to predict anomalies, using external information sources like traffic congestion and weather forecasts, combined with short-term and long-term resource allocation strategies to proactively manage resources.
Enhances anomaly detection accuracy and resource management efficiency by anticipating performance issues, allowing proactive resource adjustments and optimizing resource allocation for both short-term needs and long-term cost-effectiveness.
Smart Images

Figure 2024536046000001_ABST
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to U.S. Provisional Patent Application No. 63 / 253898, filed October 8, 2021, the entire contents of which are incorporated herein by reference.
[0002] (Technical field) The present invention relates generally to computer system management, and more particularly to a system and method for anomaly-detecting cloud resource management that receives external information and includes short-term and long-term resource planning. [Background technology]
[0003] "Cloud" is a collective term for computing systems in numerous private and public hosted data centers connected by various networks, including the Internet. Each data center provides a shared pool of computing resources, including, for example, servers and other computing hardware, data storage, network interfaces, operating systems, applications, services, etc. Subscribers run applications remotely on cloud servers and store data in cloud data storage facilities. Subscribers typically access their data and interface with the applications over a network, such as the Internet. Data center operators allocate computing resources, such as computing hardware, data storage, etc., to each application.
[0004] The cloud offers subscribers many benefits, including the ability to access their data and run their applications from any device with an Internet connection. Data center operators perform routine technical tasks such as replacing failed hardware, backing up data, upgrading software, and providing rapid protection from evolving malware threats. Data centers have multiple redundant power sources to prevent local power outages. Data centers can be geographically distributed, making the cloud resistant to the effects of local weather or other natural disasters. The cloud relieves subscribers of the expense and need for technical expertise to own and operate their own information technology (IT) resources.
[0005] A subscriber's application may be very small, such as an individual accessing an email server, or large, such as implementing the functions of some or all of the core network nodes of a regional or national telecommunications network. Data center operators allocate computing resources to applications according to their size and need. Such allocation may be dynamic, with resources from a shared pool being allocated to applications according to the ongoing needs of the application. The data center operator and subscriber negotiate a predetermined range of values for the application's expected performance parameters (e.g., key performance indicators, or KPIs) and agree to a predetermined range of expected resource usage by the application to achieve the required performance. The KPIs and other metadata may be recorded, and the range of expected performance / resource parameters is periodically adjusted to accommodate actual usage. The expected application performance and the predetermined range of resource usage may be quantified in a service level agreement (SLA).
[0006] Anomalies in application performance and / or resource usage are known and can result from many different causes. For example, an increase in users accessing the application (load spikes), component or network failures, malicious attacks, etc. can all adversely affect the performance of the application. As used herein, an "anomaly" in a computing system refers to an application's performance being outside of a predetermined range of its expected performance and / or an application's need for computing resources being outside of a predetermined range of the application's expected resource usage. In the face of such anomalies, data center operators may increase the computing resources allocated to the application manually or via an automated anomaly detection and resolution system (ADRS) in an attempt to maintain performance within SLA limits. For example, Kardani-Moghaddam, et al. describe such a system in their paper "ADRL: A Hybrid Anomaly-Aware Deep Reinforcement Learning-Based Resource Scaling in Clouds," published in the journal IEEE Transactions on Parallel and Distributed system, 32, no. 3, pp. 514-526, March 1, 2021. No. 6,233,993, the disclosure of which is incorporated herein by reference in its entirety.
[0007] Such anomaly detection cloud resource management tools can detect anomalous patterns and take corrective actions to mitigate or even prevent performance degradation of cloud applications. They can monitor some metrics of the application and calculate the probability or score of having an anomaly. However, internal metrics of performance and resource usage (meaning those captured from events or conditions within the computing system, such as CPU usage, memory usage, data or message throughput, latency, quality of service (QoS), etc.) do not always show a strong correlation with anomalies, especially when the anomaly is triggered by an external event or condition. For example, in a telecommunication application, an external event in the cloud, such as a traffic incident, earthquake, etc., results in a significant increase in traffic as users make more calls. However, traditional anomaly detection cloud resource management tools detect anomalies only when the impact reaches the application, i.e., when the traffic load overwhelms some core network nodes. Thus, any corrective action, such as allocation of additional resources to handle the increased call volume, is necessarily too late. The performance of the application has already deteriorated, and some calls may be dropped, users may not be able to access the network, or other degradation to QoS may occur.
[0008] Another known area of cloud management is resource optimization. Resource optimization algorithms are widely used to host and run applications as cost-efficiently as possible. However, these techniques typically only optimize in the short term. Returning to telecommunication applications as an example, it may be assumed that user traffic is not very accurately predictable in advance. If the costs of reallocating resources to applications are not negligible, short-term optimization may lead to suboptimal resource management in the long term.
[0009] The Background section of this specification is provided to place embodiments of the present invention in a technical and operational context and to aid those skilled in the art in understanding their scope and usefulness. The approaches described in the Background section are approaches that could be pursued, but are not necessarily approaches that have been previously conceived or pursued. Unless expressly identified as such, no statement in this specification is admitted to be prior art merely by inclusion in the Background section. Summary of the Invention
[0010] The following presents a simplified summary of the present disclosure in order to provide a basic understanding to those skilled in the art. This summary is not an extensive overview of the disclosure and is not intended to identify key / critical elements of embodiments of the present invention or to delineate the scope of the present invention. Its sole purpose is to present some concepts disclosed herein in a simplified form as a prelude to the more detailed description that is presented later.
[0011] According to one or more embodiments described and claimed herein, an anomaly detection resource management system in a cloud computing system monitors applications running in the cloud, such as telecommunications applications, and detects or predicts anomalies based on internal metrics related to the performance and / or resource usage of the applications and external metrics extracted from information obtained from systems external to the cloud. An external information extraction and analysis function generates external metrics from the external information. A merge function combines the internal and external metrics to generate composite metrics, which are stored. Anomalies are detected or predicted based on the composite metrics and historical data. Anomalies occur when resource usage by the application falls outside of a predetermined range of expected resource usage and / or performance of the application falls outside of a predetermined range of expected performance. Telecommunications traffic is predicted based in part on the detected or predicted anomalies. Short-term resource computation of application resource allocation is performed based in part on the predicted traffic and the short-term optimization policy. Long-term optimization of application resource allocation is performed based on short-term computing and the long-term optimization policy.
[0012] One embodiment relates to a method for managing computing resources in a computing system. An application is executed in the computing system with a predetermined range of expected resource usage by the application and a predetermined range of expected performance of the application. Execution of the application is monitored and internal metrics related to resource usage by the application and performance of the application are generated. Information regarding external events of the computing system is received. External metrics are extracted from the received information. The external and internal metrics are merged and a composite metric is generated. Based on the composite metric, an anomaly is detected or predicted, where resource usage by the application falls outside the predetermined range of expected resource usage and / or performance of the application falls outside the predetermined range of expected performance. Computing resources required by the application are determined based on the detected or predicted anomaly.
[0013] Another embodiment relates to an anomaly detection resource management system executed on a computing system. The computing system executes a telecommunications application and receives information from an external system. The anomaly detection resource management system includes a data store and a computing resource. The computing resource is configured to implement a system monitoring function configured to monitor the application and generate internal metrics regarding performance and / or resource usage of the application, an information extraction and analysis function configured to receive information from the external system and receive historical data from the data store and further configured to generate external metrics, and a feature merging function further configured to receive the internal and external metrics and generate a composite metric. The data store is configured to store the composite metric. The anomaly detection resource management system further includes an anomaly detection function configured to receive the composite metric and the historical data from the data store and further configured to detect or predict anomalies, where the resource usage by the application is outside a predetermined range of expected resource usage and / or the performance of the application is outside a predetermined range of expected performance, and a traffic inference function configured to receive the composite metric, the historical data from the data store, and the detected or predicted anomaly, and further configured to infer communication traffic. The anomaly detection resource management system is configured to determine computing resources required by an application based on traffic inferences and detected or predicted anomalies.
[0014] Yet another embodiment relates to a non-transitory computer-readable medium including instructions operable to cause a computing resource in a computing system to implement an anomaly detection resource management system configured to cause the computing resource to perform the steps of: executing an application on the computing system with a predetermined range of expected resource usage by the application and a predetermined range of expected performance of the application, monitoring the application execution and generating internal metrics related to resource usage and performance of the application, receiving information about external events of the computing system, extracting external metrics from the received information, merging the external and internal metrics to generate a composite metric, detecting or predicting an anomaly based on the composite metric where resource usage by the application is outside the predetermined range of expected resource usage and / or performance by the application is outside the predetermined range of expected performance, and determining computing resources required by the application based on the detected or predicted anomaly. [Brief description of the drawings]
[0015] The present invention will now be described in more detail with reference to the accompanying drawings, which show embodiments of the present invention. However, the present invention should not be construed as being limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the present invention to those skilled in the art. Like reference characters refer to like elements throughout. [Figure 1] FIG. 1 is a block diagram of a computing system that executes applications and an anomaly detection resource management system. [Diagram 2] FIG. 2 is a flow diagram of a method for resource management in a computing system. [Diagram 3]FIG. 3 is a flow diagram of a method for managing computing resources in a computing system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] The present invention will be described for simplicity and illustrative purposes primarily by reference to exemplary embodiments thereof. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be readily apparent to one of ordinary skill in the art that the present invention may be practiced without being limited to these specific details. Well-known methods and structures are not described in detail herein so as not to unnecessarily obscure the present invention. To illustrate aspects of an embodiment of the present invention, a specific example of a telecommunications application executed in a large-scale computing system (also referred to as a cloud) is presented. Those skilled in the art will readily recognize that this exemplary application is not a limitation of the embodiments claimed herein, and that the inventive concepts described herein may be readily and advantageously applied to many different applications in computing systems.
[0017] FIG. 1 illustrates a computing system 10, also known as a cloud, a representative telecommunications application 12 running within the computing system 10, and an anomaly detection resource management system 14 that monitors the application 12 and receives information from an external system 16.
[0018] FIG. 2 illustrates steps in a method 100 for managing resources in a computing system 10 executing an application 12 .
[0019] FIG. 3 illustrates steps in a method 200 for managing computing resources in a computing system.
[0020] Figures 1, 2 and 3 are referenced simultaneously in the following discussion.
[0021] As mentioned above, several anomaly detection resource management tools are known that operate to detect and correct anomalies in the performance and / or resource utilization of the application 12. Some functions of such tools may include a system monitoring function 18 that generates internal metrics, an anomaly detection function 20 that detects anomalies from the internal metrics and historical data stored in and retrieved from a data store 22, and, at least in the case of telecommunication applications 12, a traffic estimation function 24. These functions 18, 20, 22, 24 may detect anomalies in the performance and / or resource utilization of the monitored application 12 based on the internal metrics and historical data in the context of traditional resource management systems. The internal metrics are metrics detected within the computing system 10 and may include metrics such as CPU load, memory usage, number or timing of memory accesses, cache hit rate, number or rate of context switches, number or rate of interrupts processed, input / output volume and timing, power consumption, or other computing events or resource utilization within the computing system 10 that may be detected by the system monitoring function 18. At step 102, ongoing collection of internal metrics is shown in FIG.
[0022] In many applications, such as telecommunications application 12, more accurate prediction of traffic load is useful for predictive resource planning. Rather than reacting only to detected performance degradation due to increased traffic load, resources can be speculatively added when increased traffic load is predicted to avoid performance degradation that would otherwise occur. According to an embodiment of the invention, information is obtained from external system 16 (step 104) and processed (step 108) by information extraction and analysis function 26, along with historical data from data store 22, to generate external metrics (step 106) useful for anomaly detection.
[0023] The external system 16 may comprise many types of information sources that generate various types of information. For example, a crowd-sourced navigation application may generate near real-time road traffic congestion data, which may be supplemented by monitoring police, fire, and emergency medical services (EMS) communications, video from traffic cameras, and the like. The congestion data may be useful in predicting telecommunications traffic, because drivers and passengers stuck in traffic may call others to arrange meeting times, access a traffic routing app to find alternative routes, or otherwise access a telecommunications network. Similarly, weather forecasts may be monitored, because increased telecommunications traffic may correlate with bad or severe weather. Other examples include emergency broadcasts that may warn of severe weather or other natural disasters (e.g., fires, earthquakes, tsunamis, etc.), schedules of sports arenas, concert venues, etc., financial market data, news headlines, and the like.
[0024] In fact, wireless long-distance communications are so embedded in the character of modern life that network traffic is surprisingly correlated with a variety of seemingly unrelated factors. A recent paper by Rostami-Tabar et al., “Forecasting COVID-19 daily cases using phone call data,” published in Elsevier Applied Soft Computing in 2021, shows a correlation between daily calls to medical facilities and the number of daily COVID-19 cases, suggesting that COVID-19 case counts can be accurately predicted by monitoring the call traffic. The inverse of this correlation can be counted to optimize long-distance communications applications12, i.e., as the number of days with COVID-19 cases increases, increased call traffic to medical facilities can be predicted and appropriate resources allocated to the application12. This correlation is an example of the diversity of sources and types of information external to the cloud that can be exploited to detect or predict anomalies in applications such as long-distance communications applications.
[0025] Information from external systems 16 takes many forms and requires processing to extract useful external metrics from it. Information extraction and analysis function 26 processes the received external information together with historical data from data store 22 (step 106) to generate useful external metrics (step 108). The information extraction method applied depends on the type of external data. For example, for text, advanced text processing techniques such as summary generation, sentiment analysis, word2vec, etc. may be applied. For images and videos, deep learning techniques such as convolutional neural networks (CNN), transfer learning, large pre-trained networks (e.g., InceptionV3), or other image processing methods may be appropriate. Numerical data may be processed using statistical models, machine learning algorithms, or other numerical methods. In some cases, the external information may be partially or completely pre-processed by external systems 16, simplifying the interpretation task of information extraction and analysis function 26.
[0026] A feature merging function 28 merges the internal metrics generated by the system monitoring function 18 with the external metrics generated by the information extraction and analysis function 26 to generate a combined metric (step 110). The combined metric is stored in the data store 22 for later use during traffic inference and further external information extraction (step 112). The combined metric, along with historical data, is input to the anomaly detection function 20. The anomaly detection function 20 may operate similarly to known anomaly detection systems that utilize only internal metrics, but with the additional capability of utilizing components of external metrics or aspects of the combined metric. Based on the combined metric, the anomaly detection function 20 detects whether the performance of the application 12 or its resource utilization is outside of a predetermined expected range, and whether it is likely to do so in the short term (step 114).
[0027] A traffic estimation function 30 receives the anomaly indications from the anomaly detection function 20, as well as the associated composite metrics and historical data, and provides a long-term prediction regarding future traffic load dynamics (step 116). The traffic estimation function 30 may use machine learning methods, such as a recurrent neural network (e.g., a long short-term memory network, or LSTM), or statistical methods (e.g., an autoregressive integrated moving average, or ARIMA), to generate traffic estimations.
[0028] The short-term resource calculation function 32 receives traffic estimates from the traffic estimation function 30, the anomaly detection output, and the short-term optimization policy from the operator policy function 34. The short-term resource calculation function 32 uses the predicted future traffic to perform resource calculations for the predicted traffic segments (step 118). For example, the short-term resource calculation function 32 may receive traffic estimates for the next two hours and calculate resources every 10 minutes.
[0029] The results of the short-term resource calculation, together with the anomaly detection output from the operator policy function 34 and the long-term optimization policy, are used by a long-term resource optimization function 36 to calculate an optimal resource allocation for the total projected traffic (step 120). The long-term resource optimization function 36 may modify the calculated resources to satisfy the long-term optimization policy. If necessary (step 122), the resources allocated to the application 12 are updated (step 124) according to the results of the long-term optimization function 36.
[0030] In one embodiment, short - term and long - term resource calculations and optimizations are performed as follows. Traffic prediction is available for the next k time intervals (e.g., one - day prediction at 5 - minute intervals), horizontal resource scaling is applied, there is an approximately linear relationship between the traffic value and the resource usage (i.e., traffic 2 - 3 times larger results in approximately 2 - 3 times the resource usage), and assume there is a function f that can calculate the resource usage expected from the traffic value.
[0031] The short - term resource calculation is based on a threshold. For each predicted traffic volume v i , the resource usage can be calculated using the function f assumed as u i = f(v i ). The operator can define a threshold th (0 < th ≤ 1) used as an over - provisioning / cost - optimization target. th = x means setting the resources to use only (x×100)% of the resources. The other part needs to be reserved. For example, th = 0.5 is set for 50% over - provisioning. Depending on the threshold, the short - term resource usage can be calculated for each u i resource usage as follows: TIFF2024536046000002.tif2126 Here, s i indicates the number of optimal instances for each i - th interval.
[0032] The long - term resource optimization function 36 receives s i from the short - term resource calculation function 32. These define the short - term optimized resource usage, regarded as a proposal or starting point. The long - term resource optimization function 36 outputs a decision d i which is the final optimized resource allocation for each i - th interval. The following cost function is used for long - term resource optimization: TIFF2024536046000003.tif19130 Here, c ris a cost ratio describing the weighting of two cost components (described below), and d i is the final resource decision in the i-th time interval. During optimization, these are the variables whose optimal values are determined. s i is the recommended resource usage for the i-th interval (from the short-term resource calculation), and k is the number of intervals.
[0033] The cost function consists of two components. The first part, called the idle cost, defines the cost of running additional resources beyond the short-term optimal value. This also means that the following constraints hold for all i: s i ≦d i The second part of the cost function is called the adaptation cost, which reflects the cost of changing the resources allocated to application 12 during interval i. The adaptation cost is defined here as the square of the resource change during the subsequent time interval. For example, d i-1 5 CPU cores are allocated in d i If 3 CPU cores are allocated in then the resource change would be -2 CPU cores. The adaptation cost is squared so the sum for this particular pair of time intervals is 4. Note that because of the square function, the adaptation cost is the same whether additional resources are allocated to application 12 or excess resources are removed from application 12.
[0034] The long-term optimization process consists of two steps. First, the optimal solution is determined without constraints. Second, intervals are checked to see if corrective action is necessary.
[0035] To obtain the optimal decision, the gradient of the cost function ▽C is calculated, where the vector operator ▽ contains partial derivatives with respect to the decision.
[0036] TIFF2024536046000004.tifThe gradient of the cost function 6530 has the following form.
[0037] TIFF2024536046000005.tifThe goal is to minimize the cost function. When the gradient of the cost function is 0, there may be an extreme value for certain d1, d2, ..., d k An extreme value may exist for. The equation ▽C = 0 can be written as the determinant Ad 0 = b, and all variables d i can be separated and collected into the vector d 0 The structure of the matrix is as follows.
[0038] TIFF2024536046000006.tifThe matrix A is invertible, and thus there exists a solution for the vector d 0 which is the unconstrained optimal solution.
[0039] d 0 Having obtained, constraints are introduced. If the first decision d 0 i in the i-th interval is greater than the proposed value s i there are no conditions for the interval. However, if the decision d 0 i is less than the proposed value, the condition that the decision must be equal to the proposal is imposed.
[0040] The vector g ∈ R M is the constraint vector, where M ≤ k.
[0041] The indices of the intervals are collected, where the state is defined for the vector m = [m1, m2, ..., m M . For example, if d2 < s2 and d3 < s3 are true, then m = [2, 3] and TIFF2024536046000007.tif3897In this approach, inequalities are avoided and the conditions are reduced to simple equations. We applied the Lagrange multiplier method to solve this constrained extreme value problem. The state space is then scaled by a Lagrange multiplier λ ∈ R with the same dimension as the constraint vector g. M The new cost function is then: TIFF2024536046000008.tif1268The same approach as above applies. 1 The gradient of is calculated, which should be equal to 0 in the optimal solution, and the determinant is constructed based on the gradient. Note that the introduction of Lagrange multipliers expands the unknown states. The difference operator is changed TIFF2024536046000009.tif11137The gradient of the new cost function is TIFF2024536046000010.tif2952▽ 1 C 1 After correcting the terms from =0, the matrix equation becomes: The matrices A and b were defined previously. The vector b contains the unknown decisions for a given interval, and λ contains the unknown Lagrange multipliers. To take into account the constraints, b ∈ R M and σ ∈ R kxM will be introduced.
[0042] TIFF2024536046000012.tif54130, where m j are the elements of the m vector indicating the interval over which the states are defined. After solving the final matrix equation for the decision vector d, the optimal solution allowed by the constraints is obtained.
[0043] If horizontal scaling is assumed, the last element of the decision vector d should be rounded up to obtain the correct resource value.
[0044] In the paper “LSSO: Long Short-term Scaling Optimizer,” Balazs Fodor, Laszlo Toka, and Balazs Sonkoly of the MTA-BME Network Softwarization Research Group, Budapest University of Technology and Economics, a long-term resource scaling optimization applicable to telecommunication applications in cloud environments is presented. The long-term scaling optimization problem (LSSOP) considers long-term forecasts on the number of instances and considers a predefined cost model for global optimization. The optimization method to solve the LSSOP is based on a transformation into a shortest path problem, providing an optimal solution in polynomial time. We consider the impact of inaccurate forecasts using two forecasting methods: today we use yesterday's traffic and the other uses one with added noise, weakening the forecast accuracy. The maximum cost gain cannot be reached while the scaling cost is low. Also, the cost gain can be negative compared to the optimal allocation of terms, since short-term resource proposals are favored when the scaling cost is small, and optimization using inaccurate values may perform unnecessary scaling actions that increase the cost. As the scaling cost increases, the impact of inaccurate prediction becomes less noticeable because the optimized allocation uses more instances than recommended to prevent scaling behavior. Also, small inaccuracies in instance numbers are not effective. As a result, the cost gain is quite close to that of perfect prediction. Therefore, as the scaling cost increases, the prediction accuracy becomes less noticeable and nearly the maximum cost gain can be achieved.
[0045] FIG. 3 illustrates steps in a method 200 for managing computational (computing) resources in a computing system. An application is executed in the computing system and has a predetermined range of expected resource usage by the application and a predetermined range of expected performance of the application (block 202). The execution of the application is monitored and internal metrics are generated regarding resource usage by the application and performance of the application (block 204). In parallel, information about events external to the computing system is received (block 206) and external metrics are extracted from the received information (block 208). The external and internal metrics are merged to generate a composite metric (block 210). Based on the composite metric, an anomaly is detected or predicted, whereby the resource usage by the application falls outside the predetermined range of expected resource usage and / or the performance of the application falls outside the predetermined range of expected performance (block 212). Computing resources required by the application are determined based on the detected or predicted anomaly (block 214).
[0046] Embodiments of the present invention offer numerous advantages over the prior art: Anomaly detection / prediction is more accurate when external events impact application performance. By generating external metrics, events impacting application performance are detected sooner and application performance degradation can be proactively avoided. By performing both short-term calculations and long-term optimization of application resource allocations, resource allocation is more robust and cost-effective.
[0047] According to various embodiments of the present invention, the methods described herein are intended to operate as software programs executed on a computer processor or other suitable computing resources. Specialized hardware implementations, including but not limited to application specific integrated circuits, programmable logic arrays, and other hardware devices, may likewise be configured to implement the methods described herein. Furthermore, alternative software implementations, including but not limited to distributed or component / object distributed processing, parallel processing, or virtual machine processing, may also be configured to implement the methods described herein.
[0048] It should also be noted that the software implementation of the invention described herein is optionally stored on a non-transitory computer-readable tangible storage medium, such as a magnetic medium such as a disk or tape, an optical or magneto-optical medium such as a disk, or a solid-state medium such as a memory card or other package containing one or more read-only (non-volatile) memories, random access memories, or other re-writable (volatile) memories. A digital file attachment to an email or other self-contained information archive or set of archives is considered a distribution medium equivalent to a non-transitory computer-readable tangible storage medium. Thus, the embodiments of the invention described herein are considered to include non-transitory computer-readable tangible storage media or distribution media, including art-recognized equivalents and successor media, enumerated herein and on which the software implementation of the invention is stored.
[0049] In general, all terms used herein should be interpreted according to their ordinary meaning in the relevant technical field unless a different meaning is expressly given and / or implied from the context in which it is used. All references to a / an / element, apparatus, component, means, step, etc. should be openly interpreted as referring to at least one instance of the element, apparatus, component, means, step, etc., unless expressly stated otherwise. The steps of any method disclosed herein need not be performed in the exact order disclosed, unless a step is expressly described as following or preceding another step, and / or it is implicit that a step must follow or precede another step. Any feature of any of the embodiments disclosed herein may be applied to any other embodiment, whenever appropriate. Similarly, any advantage of any embodiment may be applied to any other embodiment, and vice versa. Other objects, features, and advantages of the accompanying embodiments will become apparent from the following description. As used herein, the term "configured" means configured, organized, adapted, or arranged to operate in a particular manner; it is synonymous with the term "designed." As used herein, the term "substantially" means approximately or to a value, but not necessarily completely. The term encompasses and accounts for mechanical or component tolerances, measurement errors, random variations, and similar sources of inaccuracy.
[0050] Of course, the present invention may be practiced otherwise than as specifically described herein without departing from essential characteristics thereof. The present embodiments are to be considered in all respects as illustrative and not restrictive, and all changes which come within the meaning and range of equivalency of the appended claims are intended to be embraced therein.
Claims
1. A method (200) for managing computational resources in a computing system, comprising: Executing an application on the computing system with a predetermined range of expected resource usage by the application and a predetermined range of expected performance of the application (202); monitoring (204) the execution of the application to generate internal metrics regarding resource usage and performance by the application; receiving (206) information regarding an event external to the computing system; Extracting extrinsic metrics from the received information (208); Merging the external and internal metrics to generate a composite metric (210); Detecting or predicting anomalies based on the composite metrics (212), where resource usage by the application is outside the predetermined range of expected resource usage and / or performance of the application is outside the predetermined range of expected performance; determining (214) computing resources required by the application based on the detected or predicted anomaly; and The method (200).
2. 2. The method of claim 1, further comprising storing the composite metric, wherein detecting or predicting anomalies is further based on historical values of the composite metric.
3. 3. The method of claim 2, wherein the application is a telecommunications application; inferring traffic based on the detected or predicted anomalies and current and / or historical values of the composite metric; The method (200), wherein determining the computational resources required by the application is further based on traffic estimation.
4. 4. The method of claim 3, wherein determining (214) computational resources required by the application based on the detected or predicted anomaly comprises: Calculating short-term resource requirements for the application; optimizing long-term resource requirements of the application based on the short-term resource calculation; and The method (200).
5. 5. The method of claim 4, wherein calculating short-term resources required by the application comprises calculating the short-term resources required based on inferred traffic, a short-term optimization policy provided by an operator of the computing system, and the detected or predicted anomaly (200).
6. 5. The method of claim 4, wherein optimizing long-term resources required by the application is further based on a long-term optimization policy provided by an operator of the computing system and on the detected or predicted anomaly (200).
7. The method of claim 6, further comprising allocating the optimized long-term resources to the application (200).
8. 7. The method of claim 6, wherein calculating the short-term resources required by the application comprises, for each of a plurality of time intervals i: Using the function f, we calculate the estimated traffic value v for the interval. i The resource usage for the interval i based on i , u i = f (v i ), and Defining a threshold th as an overprovisioning target, in the range 0<th≦1; The number of short-term instances of the resource for the interval i, s i of and calculating by The method (200).
9. 9. The method of claim 8, wherein optimizing the long-term resources required by the application based on the calculation of the short-term resources comprises: optimizing the short-term resource allocation s i For each time interval i for which θ is calculated, a decision d representing a final optimized allocation of resources for the interval i based on a cost function including an idle cost representing the cost of allocating additional resources beyond the short-term optimal value, and an adaptation cost reflecting the cost of modifying the resource allocation between intervals i. i The method (200), comprising:
10. 10. The method of claim 9, wherein the cost function is: and c r is a cost ratio describing the weight of idle and adaptive costs, d i is the final resource decision in the i-th interval, s i is the short-term resource allocation calculated for the i-th interval, The method (200), wherein k is the number of time intervals.
11. 11. The method of claim 10, further comprising the steps of: for each interval i, s i ≦d i The method (200).
12. 12. A method according to claim 11, for computing an optimal solution to the cost function without constraints, comprising: Calculating a gradient ▽C of the cost function, , and A vector of unconstrained and optimized resource allocation decisions d 0 Solving ▽C=0 to obtain To solve this problem, The method (200), further comprising:
13. 13. The method of claim 12, wherein the unconstrained optimal allocation d i 0 <s i If, for each interval i, d i 0 = s i The method (200), further comprising: enforcing the constraint that
14. An anomaly detection resource management system (14) executing on a computing system (10), the computing system (10) executing a telecommunications application and receiving information from an external system (16), the anomaly detection resource management system (14) comprising: A data store (22); A computing resource, a system monitoring facility (18) configured to monitor the application and generate internal metrics regarding performance and / or resource usage of the application; an information extraction and analysis function (26) configured to receive information from the external systems and historical data from the data store, and further configured to generate external metrics; a feature merging function (28) configured to receive the internal and external metrics and further configured to generate a composite metric; an anomaly detector (20) configured to receive the composite metrics and historical data from the data store (22) and further configured to detect or predict anomalies, where resource usage by the application is outside of a predetermined range of expected resource usage and / or performance of the application is outside of a predetermined range of expected performance; a traffic estimation function (30) configured to receive the composite metrics and historical data from the data store (22) and the detected or predicted anomalies, and further configured to estimate telecommunications traffic; A computing resource configured to implement the Equipped with the data store (22) is configured to store the composite metrics; the anomaly detection resource management system (14) is configured to determine computing resources required by the application based on the traffic inference and the detected or predicted anomalies. An anomaly detection resource management system (14).
15. 15. The system (14) of claim 14, wherein the computing resource comprises: a short-term resource calculation function (32) configured to receive traffic estimates and historical data from the data store (22) and a short-term optimization policy from an operator of the computing system, the short-term resource calculation function (32) further configured to calculate short-term resource allocations for the application; a long-term resource optimization function (36) configured to receive the calculated short-term resource allocations, historical data from the data store (22), and a long-term optimization policy from an operator of the computing system, the long-term resource optimization function (36) further configured to optimize long-term resource allocations for the application; The system (14), further configured to implement:
16. 16. The system (14) of claim 15, wherein the short-term resource calculation function (32) calculates short-term resource allocations for the application for each of a plurality of time intervals i by: Using the function f, we calculate the estimated traffic value v for the interval. i The resource usage u for the interval i based on i , u i = f (v i ), and Defining a threshold th as an overprovisioning target, in the range 0<th≦1; The number of short-term instances of the resource for the interval i, s i of and calculating by The system (14) is configured to calculate by:
17. 16. The method of claim 15, wherein the long-term resource optimization function (36) optimizes short-term resource allocations s i For each time interval i for which σ i was calculated, a decision d i based on a cost function including an idle cost, which represents the cost of allocating additional resources beyond the short-term optimization value, and an adaptation cost, which reflects the cost of modifying the resource allocation during the interval i.
18. 18. The system of claim 17, wherein the cost function is and c r is a cost ratio describing the weight of idle and adaptive costs, d i is the final resource decision in the i-th interval, s i is the short-term resource allocation calculated for the i-th interval, k is the number of time intervals in the system (14).
19. 19. The system of claim 18, wherein for each interval i, s i ≦d i This is the system (14).
20. 20. The system of claim 19, wherein the long-term resource optimization function (36) determines an optimal solution to the cost function without constraints by: Calculating a gradient ▽C of the cost function, , and A vector of unconstrained and optimized resource allocation decisions d 0 Solving ▽C=0 to obtain To solve this problem, The system (14), further configured to calculate by:
21. 21. The system of claim 20, wherein the long-term resource optimization function (36) is configured to determine whether the unconstrained optimal allocation is d i 0 <s i If, for each interval i, d i 0 = s i The system (14), further configured to enforce the constraint that
22. 1. A non-transitory computer-readable medium comprising instructions operable to cause a computing resource in a computing system (10) to implement an anomaly detection resource management system (14), the anomaly detection resource management system (14) causing the computing resource to: Executing an application in the computing system with a predetermined range of expected resource usage by the application and a predetermined range of expected performance of the application (202); monitoring (204) the execution of the application to generate internal metrics regarding resource usage and performance of the application; receiving (206) information regarding an event external to the computing system; Extracting extrinsic metrics from the received information (208); Merging the external and internal metrics to generate a composite metric (210); Detecting or predicting anomalies (212) based on the composite metrics, where resource usage by the application is outside the predetermined range of expected resource usage and / or the performance of the application is outside the predetermined range of expected performance; determining (214) computing resources required by the application based on the detected or predicted anomaly; and A non-transitory computer-readable medium for causing a program to be executed.
Citation Information
Patent Citations
Configuration method, apparatus, system and computer readable medium for determining new configuration of computing resources
JP2017530482A
Cloud application scaling framework
US20130254384A1
