# US 2019/0317817 A1 · Methods and systems to proactively manage usage of computational resources of a distributed computing system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0317817 A1
- Document ID: US20190317817A1
- Status: Published application
- Kind: A1
- Application number: 15/951,523
- Filed: 2018-04-12
- Published: 2019-10-17
- Earliest claimed: 2018-04-12
- Assignees: VMware, Inc.
- Applicants: VMware, Inc.
- Inventors: Darren Brown; Junyuan Lin; Paul Pedersen; Keshav Mathur; Leah Nutman; Peng Gao; Xing Wang
- Web page: https://patentgrep.com/patent/US20190317817A1

## CPC

- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 9/5077: {Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455)}
- G06F 9/4856: {resumption being on a different machine, e.g. task migration, virtual machine migration (G06F9/5088 takes precedence)}
- G06F 9/5088: {involving task migration}
- G06N 7/00: Computing arrangements based on specific mathematical models
- G06F 2209/5019: Workload prediction
- G06F 2209/5022: Workload threshold
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Computational methods and systems that proactively manage usage of computational resources of a distributed computing system are described. A sequence of metric data representing usage of a resource is detrended to obtain a sequence of non-trendy metric data. Stochastic process models, a pulse wave model and a seasonal model of the sequence of non-trendy metric data are computed. When a forecast request is received, a sequence of forecasted metric data is computed over a forecast interval based on the estimated trend and one of the pulse wave or seasonal model that matches the periodicity of the sequence of non-trendy metric data. Alternatively, the sequence of forecasted metric data is computed based on the estimated trend and the stochastic process model with a smallest accumulated residual error. Usage of the resource by virtual objects of the distributed computing system may be adjusted based on the sequence of forecasted metric data.

## Claims

### Claim 1

A process stored in one or more data-storage devices and executed using one or more processors of a computer system to proactively manage resources in a distributed computing system, the process comprising:
estimating a trend in a sequence of metric data, the sequence of metric data representing latest usage of a resource in the distributed computing system;
detrending the sequence of metric data to obtain a sequence of non-trendy metric data;
computing two or more stochastic process models of the sequence of non-trendy metric data and corresponding accumulated residual errors;
computing pulse wave and seasonal models of the sequence of non-trendy metric data;
when a forecast request is received,
computing a sequence of forecasted metric data over a forecast interval based on the estimated trend and one of the pulse wave model or seasonal model that matches periodicity of the sequence of non-trendy metric data, or
when neither pulse wave nor seasonal model matches the periodicity of the sequence of non-trendy metric data, computing the sequence of forecasted metric data over the forecast interval based on the estimated trend and the stochastic process model with a smallest corresponding accumulated residual error, and
adjusting usage of the resource by virtual objects of the distributed computing system based on the sequence of forecasted metric data.

### Claim 2 (depends on 1)

The process of claim 1 wherein estimating the trend in the sequence of metric data comprises:
applying linear regression to the sequence of metric data to generate least squares parameters; and
computing a trend estimate for each time stamp of the sequence of metric data based on the least squares parameters.

### Claim 3 (depends on 1)

The process of claim 1 wherein detrending the sequence of metric data to obtain the sequence of non-trendy metric data comprises:
computing a goodness-of-fit parameter based the sequence of metric data and a trend estimate at each time stamp of the sequence of metric data; and
when the goodness-of-fit parameter is greater than a user-defined trend threshold, subtracting the trend estimate from corresponding metric data values in the sequence of metric data to generate the sequence of non-trendy metric data.

### Claim 4 (depends on 1)

The process of claim 1 wherein computing the two or more stochastic process models comprises:
fitting weight parameters of each of the two or more stochastic process models to a different number of most recent subsequence of metric data in the sequence of non-trendy metric data;
when a new metric data value is received, detrending new metric data value to obtain a non-trendy metric data value and computing two or more estimated non-trendy metric data values from the two or more stochastic process models;
for each of the two or more stochastic process models, computing a residual error between the estimated non-trendy metric data value and the new non-trendy metric data value; and
for each of the two or more stochastic process models, summing the residual errors to generate the corresponding accumulated residual error.

### Claim 5 (depends on 1)

The process of claim 1 wherein computing the two periodic models comprises:
computing an exponentially weighted moving average of absolute differences between consecutive pairs of the sequence of non-trendy metric data;
computing an absolute difference between a new non-trendy metric data value and a most recent metric data value in the sequence of non-trendy metric data;
when the absolute difference between the new non-trendy metric data value and the most recent metric data value is greater than a spike threshold, applying edge detection to determine if the sequence of non-trendy metric data is a pulse wave;
if the sequence of non-trendy metric data is a pulse wave, determining a pulse width and a period that matches a pulse width and a period of the sequence of non-trendy metric data; and
if the sequence of non-trendy metric data is not a pulse wave, determining a seasonal period that matches a periodicity of the sequence of non-trendy metric data.

### Claim 6 (depends on 5)

The process of claim 5 wherein determining the pulse width and the period comprises:
applying a smoothing filter to the sequence of non-trendy metric data;
computing gradients at each time stamp of the sequence of non-trendy metric data;
applying non-maximum edge suppression to the gradients at each time stamp to identify pulse edges and suppress local non-maximum gradients;
identifying upward and downward pulse edges at time stamps of pulse edges;
determining each pulse width as a difference between different pairs of consecutive upward and downward edges;
determining each period as a difference between different pairs of consecutive upward edges;
recording counts of the pulse widths and periods in bins of corresponding back-sliding pulse width and period histograms; and
identifying the most recent pulse width and most recent period with counts in corresponding bins of the pulse width and period histograms that are greater than corresponding histogram thresholds.

### Claim 7 (depends on 5)

The process of claim 5 wherein determining the seasonal period comprises:
for each sampling rate applied to the sequence of non-trendy metric data,
sampling the sequence of non-trendy metric data at the sampling rate to obtain a subsequence of the non-trendy metric data,
computing a periodogram of the subsequence,
identifying each frequency of the periodogram that is greater than a principle frequency threshold as a candidate principle frequency,
computing autocorrelation function values in a neighborhood of a candidate period, the candidate period corresponding to a largest of the principle candidate frequencies, estimating curvature of the autocorrelation function in the neighborhood of the candidate period, and
when the estimated curvature of the autocorrelation function is concave down, determining a principle period that corresponds to a maximum of the autocorrelation function value in the neighborhood, otherwise, identifying the subsequence as not having a principle period;
recording counts of principle periods in bins of a back-sliding seasonal period histogram, principle period corresponding to a smallest of the sampling rates applied to the sequence of non-trendy metric data with a principle period; and
identifying the seasonal period for the sequence of non-trendy metric data as a most recent principle period in a bin of the histogram with a count that is greater than a histogram threshold.

### Claim 8 (depends on 1)

The process of claim 1 wherein computing the sequence of forecasted metric data over the forecast interval based on the estimated trend and one of the pulse wave model or seasonal model comprises:
computing the sequence of forecasted metric data over the forecast interval as a combination of the estimated trend and the pulse wave model, when the sequence of metric data is a pulse wave sequence of metric data; and
computing the sequence of forecasted metric data over the forecast interval as a combination of the estimated trend and the seasonal model, when the sequence of metric data is a seasonal sequence of metric data.

### Claim 9 (depends on 1)

The process of claim 1 wherein adjusting usage of the resource by virtual objects comprises one or more of
adjusting use of the resource by the virtual objects when the sequence of forecasted metric data approaches a resource threshold limit over the forecast interval;
increasing resource allocation to the virtual objects when the sequence of forecasted metric data approaches a resource threshold limit over the forecast interval; and
migrating virtual objects to a different server computer within the distributed computing system when the sequence of forecasted metric data approaches a resource threshold limit over the forecast interval.

### Claim 10

A computer system to proactively manage resources in a distributed computing system, the system comprising:
one or more processors;
one or more data-storage devices; and
machine-readable instructions stored in the one or more data-storage devices that when executed using the one or more processors controls the system to carry out
estimating a trend in a sequence of metric data, the sequence of metric data representing latest usage of a resource in the distributed computing system;
detrending the sequence of metric data to obtain a sequence of non-trendy metric data;
computing two or more stochastic process models of the sequence of non-trendy metric data and corresponding accumulated residual errors;
computing pulse wave and seasonal models of the sequence of non-trendy metric data;
when a forecast request is received,
computing a sequence of forecasted metric data over a forecast interval based on the estimated trend and one of the pulse wave model or seasonal model that matches periodicity of the sequence of non-trendy metric data, or
when neither pulse wave nor seasonal model matches the periodicity of the sequence of non-trendy metric data, computing the sequence of forecasted metric data over the forecast interval based on the estimated trend and the stochastic process model with a smallest corresponding accumulated residual error, and
adjusting usage of the resource by virtual objects of the distributed computing system based on the sequence of forecasted metric data.

### Claim 11 (depends on 10)

The system of claim 10 wherein estimating the trend in the sequence of metric data comprises:
applying linear regression to the sequence of metric data to generate least squares parameters; and
computing a trend estimate for each time stamp of the sequence of metric data based on the least squares parameters.

### Claim 12 (depends on 10)

The system of claim 10 wherein detrending the sequence of metric data to obtain the sequence of non-trendy metric data comprises:
computing a goodness-of-fit parameter based the sequence of metric data and a trend estimate at each time stamp of the sequence of metric data; and
when the goodness-of-fit parameter is greater than a user-defined trend threshold, subtracting the trend estimate from corresponding metric data values in the sequence of metric data to generate the sequence of non-trendy metric data.

### Claim 13 (depends on 10)

The system of claim 10 wherein computing the two or more stochastic process models comprises:
fitting weight parameters of each of the two or more stochastic process models to a different number of most recent subsequence of metric data in the sequence of non-trendy metric data;
when a new metric data value is received, detrending new metric data value to obtain a non-trendy metric data value and computing two or more estimated non-trendy metric data values from the two or more stochastic process models;
for each of the two or more stochastic process models, computing a residual error between the estimated non-trendy metric data value and the new non-trendy metric data value; and
for each of the two or more stochastic process models, summing the residual errors to generate the corresponding accumulated residual error.

### Claim 14 (depends on 10)

The system of claim 10 wherein computing the two periodic models comprises:
computing an exponentially weighted moving average of absolute differences between consecutive pairs of the sequence of non-trendy metric data;
computing an absolute difference between a new non-trendy metric data value and a most recent metric data value in the sequence of non-trendy metric data;
when the absolute difference between the new non-trendy metric data value and the most recent metric data value is greater than a spike threshold, applying edge detection to determine if the sequence of non-trendy metric data is a pulse wave;
if the sequence of non-trendy metric data is a pulse wave, determining a pulse width and a period that matches a pulse width and a period of the sequence of non-trendy metric data; and
if the sequence of non-trendy metric data is not a pulse wave, determining a seasonal period that matches a periodicity of the sequence of non-trendy metric data.

### Claim 15 (depends on 14)

The system of claim 14 wherein determining the pulse width and the period comprises:
applying a smoothing filter to the sequence of non-trendy metric data;
computing gradients at each time stamp of the sequence of non-trendy metric data;
applying non-maximum edge suppression to the gradients at each time stamp to identify pulse edges and suppress local non-maximum gradients;
identifying upward and downward pulse edges at time stamps of pulse edges;
determining each pulse width as a difference between different pairs of consecutive upward and downward edges;
determining each period as a difference between different pairs of consecutive upward edges;
recording counts of the pulse widths and periods in bins of corresponding back-sliding pulse width and period histograms; and
identifying the most recent pulse width and most recent period with counts in corresponding bins of the pulse width and period histograms that are greater than corresponding histogram thresholds.

### Claim 16 (depends on 14)

The system of claim 14 wherein determining the seasonal period comprises:
for each sampling rate applied to the sequence of non-trendy metric data,
sampling the sequence of non-trendy metric data at the sampling rate to obtain a subsequence of the non-trendy metric data,
computing a periodogram of the subsequence,
identifying each frequency of the periodogram that is greater than a principle frequency threshold as a candidate principle frequency,
computing autocorrelation function values in a neighborhood of a candidate period, the candidate period corresponding to a largest of the principle candidate frequencies, estimating curvature of the autocorrelation function in the neighborhood of the candidate period, and
when the estimated curvature of the autocorrelation function is concave down, determining a principle period that corresponds to a maximum of the autocorrelation function value in the neighborhood, otherwise, identifying the subsequence as not having a principle period;
recording counts of principle periods in bins of a back-sliding seasonal period histogram, principle period corresponding to a smallest of the sampling rates applied to the sequence of non-trendy metric data with a principle period; and
identifying the seasonal period for the sequence of non-trendy metric data as a most recent principle period in a bin of the histogram with a count that is greater than a histogram threshold.

### Claim 17 (depends on 10)

The system of claim 10 wherein computing the sequence of forecasted metric data over the forecast interval based on the estimated trend and one of the pulse wave model or seasonal model comprises:
computing the sequence of forecasted metric data over the forecast interval as a combination of the estimated trend and the pulse wave model, when the sequence of metric data is a pulse wave sequence of metric data; and
computing the sequence of forecasted metric data over the forecast interval as a combination of the estimated trend and the seasonal model, when the sequence of metric data is a seasonal sequence of metric data.

### Claim 18 (depends on 10)

The system of claim 10 wherein adjusting usage of the resource by virtual objects comprises one or more of
adjusting use of the resource by the virtual objects when the sequence of forecasted metric data approaches a resource threshold limit over the forecast interval;
increasing resource allocation to the virtual objects when the sequence of forecasted metric data approaches a resource threshold limit over the forecast interval; and
migrating virtual objects to a different server computer within the distributed computing system when the sequence of forecasted metric data approaches a resource threshold limit over the forecast interval.

### Claim 19

A non-transitory computer-readable medium encoded with machine-readable instructions that implement a method carried out by one or more processors of a computer system to perform the operations of
estimating a trend in a sequence of metric data, the sequence of metric data representing latest usage of a resource in the distributed computing system;
detrending the sequence of metric data to obtain a sequence of non-trendy metric data;
computing two or more stochastic process models of the sequence of non-trendy metric data and corresponding accumulated residual errors;
computing pulse wave and seasonal models of the sequence of non-trendy metric data;
when a forecast request is received,
computing a sequence of forecasted metric data over a forecast interval based on the estimated trend and one of the pulse wave model or seasonal model that matches periodicity of the sequence of non-trendy metric data, or
when neither pulse wave nor seasonal model matches the periodicity of the sequence of non-trendy metric data, computing the sequence of forecasted metric data over the forecast interval based on the estimated trend and the stochastic process model with a smallest corresponding accumulated residual error, and
adjusting usage of the resource by virtual objects of the distributed computing system based on the sequence of forecasted metric data.

### Claim 20 (depends on 19)

The medium of claim 19 wherein estimating the trend in the sequence of metric data comprises:
applying linear regression to the sequence of metric data to generate least squares parameters; and
computing a trend estimate for each time stamp of the sequence of metric data based on the least squares parameters.

### Claim 21 (depends on 19)

The medium of claim 19 wherein detrending the sequence of metric data to obtain the sequence of non-trendy metric data comprises:
computing a goodness-of-fit parameter based the sequence of metric data and a trend estimate at each time stamp of the sequence of metric data; and
when the goodness-of-fit parameter is greater than a user-defined trend threshold, subtracting the trend estimate from corresponding metric data values in the sequence of metric data to generate the sequence of non-trendy metric data.

### Claim 22 (depends on 19)

The medium of claim 19 wherein computing the two or more stochastic process models comprises:
fitting weight parameters of each of the two or more stochastic process models to a different number of most recent subsequence of metric data in the sequence of non-trendy metric data;
when a new metric data value is received, detrending new metric data value to obtain a non-trendy metric data value and computing two or more estimated non-trendy metric data values from the two or more stochastic process models;
for each of the two or more stochastic process models, computing a residual error between the estimated non-trendy metric data value and the new non-trendy metric data value; and
for each of the two or more stochastic process models, summing the residual errors to generate the corresponding accumulated residual error.

### Claim 23 (depends on 19)

The medium of claim 19 wherein computing the two periodic models comprises:
computing an exponentially weighted moving average of absolute differences between consecutive pairs of the sequence of non-trendy metric data;
computing an absolute difference between a new non-trendy metric data value and a most recent metric data value in the sequence of non-trendy metric data;
when the absolute difference between the new non-trendy metric data value and the most recent metric data value is greater than a spike threshold, applying edge detection to determine if the sequence of non-trendy metric data is a pulse wave;
if the sequence of non-trendy metric data is a pulse wave, determining a pulse width and a period that matches a pulse width and a period of the sequence of non-trendy metric data; and
if the sequence of non-trendy metric data is not a pulse wave, determining a seasonal period that matches a periodicity of the sequence of non-trendy metric data.

### Claim 24 (depends on 23)

The medium of claim 23 wherein determining the pulse width and the period comprises:
applying a smoothing filter to the sequence of non-trendy metric data;
computing gradients at each time stamp of the sequence of non-trendy metric data;
applying non-maximum edge suppression to the gradients at each time stamp to identify pulse edges and suppress local non-maximum gradients;
identifying upward and downward pulse edges at time stamps of pulse edges;
determining each pulse width as a difference between different pairs of consecutive upward and downward edges;
determining each period as a difference between different pairs of consecutive upward edges;
recording counts of the pulse widths and periods in bins of corresponding back-sliding pulse width and period histograms; and
identifying the most recent pulse width and most recent period with counts in corresponding bins of the pulse width and period histograms that are greater than corresponding histogram thresholds.

### Claim 25 (depends on 23)

The medium of claim 23 wherein determining the seasonal period comprises:
for each sampling rate applied to the sequence of non-trendy metric data,
sampling the sequence of non-trendy metric data at the sampling rate to obtain a subsequence of the non-trendy metric data,
computing a periodogram of the subsequence,
identifying each frequency of the periodogram that is greater than a principle frequency threshold as a candidate principle frequency,
computing autocorrelation function values in a neighborhood of a candidate period, the candidate period corresponding to a largest of the principle candidate frequencies, estimating curvature of the autocorrelation function in the neighborhood of the candidate period, and
when the estimated curvature of the autocorrelation function is concave down, determining a principle period that corresponds to a maximum of the autocorrelation function value in the neighborhood, otherwise, identifying the subsequence as not having a principle period;
recording counts of principle periods in bins of a back-sliding seasonal period histogram, principle period corresponding to a smallest of the sampling rates applied to the sequence of non-trendy metric data with a principle period; and
identifying the seasonal period for the sequence of non-trendy metric data as a most recent principle period in a bin of the histogram with a count that is greater than a histogram threshold.

### Claim 26 (depends on 19)

The medium of claim 19 wherein computing the sequence of forecasted metric data over the forecast interval based on the estimated trend and one of the pulse wave model or seasonal model comprises:
computing the sequence of forecasted metric data over the forecast interval as a combination of the estimated trend and the pulse wave model, when the sequence of metric data is a pulse wave sequence of metric data; and
computing the sequence of forecasted metric data over the forecast interval as a combination of the estimated trend and the seasonal model, when the sequence of metric data is a seasonal sequence of metric data.

### Claim 27 (depends on 19)

The medium of claim 19 wherein adjusting usage of the resource by virtual objects comprises one or more of
adjusting use of the resource by the virtual objects when the sequence of forecasted metric data approaches a resource threshold limit over the forecast interval;
increasing resource allocation to the virtual objects when the sequence of forecasted metric data approaches a resource threshold limit over the forecast interval; and
migrating virtual objects to a different server computer within the distributed computing system when the sequence of forecasted metric data approaches a resource threshold limit over the forecast interval.
