# US 10,956,221 B2 · Estimating resource requests for workloads to offload to host systems in a computing environment

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

- Number: US 10,956,221 B2
- Document ID: US10956221B2
- Status: Granted
- Kind: B2
- Application number: 16/199,850
- Filed: 2018-11-26
- Published: 2020-05-28
- Granted: 2021-03-23
- Earliest claimed: 2018-11-26
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Lior Aronovich; Priya Unnikrishnan
- Web page: https://patentgrep.com/patent/US10956221B2

## CPC

- G06F 9/505: {considering the load}
- G06F 9/5038: {considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration (scheduling strategies G06F9/4881 and subgroups)}
- G06F 9/5072: {Grid computing}
- G06Q 10/06315: {Needs-based resource requirements planning or analysis}
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L 67/1031: Controlling of the operation of servers by a load balancer, e.g. adding or removing servers that serve requests
- H04L 67/1036: Load balancing of requests to servers for services different from user content provisioning, e.g. load balancing across domain name servers
- G06F 2209/5022: Workload threshold
- G06F 2209/505: Clust
- G06F 2209/509: Offload
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Provided are a computer program product, system, and method for estimating resource requests for workloads to offload to host systems in a computing environment. A calculation is made required resources of computational resources required to complete processing a plurality of unfinished workloads that have not completed. A determination is made of allocated resources that are not yet provisioned to workloads. The required resources are reduced by the allocated resources not yet provisioned to determine resources to provision. The resources to provision for the unfinished workloads are requested.

## Claims

### Claim 1

A computer program product for allocating computing resources to workloads, wherein the computer program product comprises a computer-readable storage medium having computer readable program instructions executed by a processor to perform operations, the operations comprising:
calculating required resources of computational resources required to complete processing a plurality of unfinished workloads comprising workloads having a status indicating not completed;
determining allocated resources that are not yet provisioned to workloads;
reducing the required resources by the allocated resources not yet provisioned to determine resources to provision; and
requesting the resources to provision for the unfinished workloads to offload the unfinished workloads to the requested resources to provision.

### Claim 2 (depends on 1)

The computer program product of claim 1, wherein the unfinished workloads execute in a cluster comprising a local computing system and an allocatable computing system accessible to the local computing system, wherein the requesting the resources to provision comprises:
submitting a request to a resource service, providing resources in the allocatable computing system, for the resources to provision in the allocatable computing system.

### Claim 3 (depends on 2)

The computer program product of claim 2, wherein the allocatable computing system and the resource service are accessible to the local computing system over a network.

### Claim 4 (depends on 2)

The computer program product of claim 2, wherein the operations further comprise:
determining unfinished workloads in the cluster that are eligible to execute with resources in the allocatable computing system, wherein the unfinished workloads for which required resources are calculated comprise the unfinished workloads in the cluster that are determined to be eligible to execute in the allocatable computing system.

### Claim 5 (depends on 4)

The computer program product of claim 4, wherein the operations further comprise:
determining workloads that have been waiting for more than a threshold duration, all waiting workloads, and all waiting and running workloads in a waiting state for more than a wait duration threshold, wherein the determined workloads are eligible to execute with resources in the allocatable computing system.

### Claim 6 (depends on 1)

The computer program product of claim 1, wherein the unfinished workloads for which required resources are calculated have at least one workload state of workload states comprising waiting for processing, running, and waiting for processing more than a specified amount of time.

### Claim 7 (depends on 1)

The computer program product of claim 1, wherein the calculating the required resources for a specific unfinished workload that is included in the calculated required resources for the unfinished workloads comprises:
determining a timing multiplier as a function of an average completion duration for completed workloads and a maximum bound on a processing duration for the specific unfinished workload; and
multiplying the timing multiplier by average consumed resources comprising average resources consumed by a workload to determine required resources for the specific unfinished workload.

### Claim 8 (depends on 7)

The computer program product of claim 7, wherein the average completion duration and the average consumed resources are maintained for each workload class of a plurality of workload classes assigned to a cluster, wherein each workload class has similar processing behaviors, wherein the calculated required resources are provisioned to the cluster to be available for all workload classes executing in the cluster.

### Claim 9 (depends on 7)

The computer program product of claim 7, wherein the function for determining the timing multiplier comprises dividing the average completion duration by a divisor comprising the maximum bound on the processing duration for the specific unfinished workload.

### Claim 10 (depends on 1)

The computer program product of claim 1, wherein the calculating the required resources for a specific unfinished workload that is waiting to be processed and that is included in the calculated required resources for the unfinished workloads comprises:
determining a timing multiplier by dividing an average completion duration for completed workloads by a divisor including a requested completion duration for the specific unfinished workload minus a wait duration the specific unfinished workload has been waiting to be processed since being submitted for processing; and
multiplying the timing multiplier by average consumed resources comprising average resources consumed by workloads to determine the required resources for the specific unfinished workload.

### Claim 11 (depends on 10)

The computer program product of claim 10, wherein the divisor is further reduced by an estimated provisioning duration to provision resources from a host system.

### Claim 12 (depends on 1)

The computer program product of claim 1, wherein the calculating the required resources for a specific unfinished workload that is currently running and that is included in the calculated required resources for the unfinished workloads comprises:
determining a timing multiplier by dividing an average completion duration for completed workloads by a divisor including a requested completion duration for the specific unfinished workload; and
multiplying the timing multiplier by average consumed resources comprising average resources consumed by workloads to determine the required resources for the specific unfinished workload.

### Claim 13 (depends on 12)

The computer program product of claim 12, wherein the divisor is further reduced by an estimated provisioning duration to provision resources to the unfinished workloads from the requested completion duration for the specific unfinished workload.

### Claim 14 (depends on 12)

The computer program product of claim 12, wherein the operations further comprise:
subtracting resources currently allocated to the specific unfinished workload from a result of the multiplying to determine the required resources for the specific unfinished workload.

### Claim 15

A system in communication with a service provider, comprising:
a processor; and
a computer-readable storage medium having computer readable program instructions executed by the processor to perform operations, the operations comprising:
calculating required resources of computational resources required to complete processing a plurality of unfinished workloads comprising workloads having a status indicating not completed;
determining allocated resources that are not yet provisioned to workloads;
reducing the required resources by the allocated resources not yet provisioned to determine resources to provision; and
requesting, from the service provider, the resources to provision for the unfinished workloads to offload the unfinished workloads to the requested resources to provision.

### Claim 16 (depends on 15)

The system of claim 15, further in communication with a cluster comprising a local computing system and an allocatable computing system, managed by the service provider, accessible to the local computing system, wherein the unfinished workloads execute in the cluster, and wherein the requesting the resources to provision comprises:
submitting a request to a resource service, providing resources in the allocatable computing system, for the resources to provision in the allocatable computing system.

### Claim 17 (depends on 16)

The system of claim 16, wherein the operations further comprise:
determining unfinished workloads in the cluster that are eligible to execute with resources in the allocatable computing system, wherein the unfinished workloads for which required resources are calculated comprise the unfinished workloads in the cluster that are determined to be eligible to execute in the allocatable computing system.

### Claim 18 (depends on 15)

The system of claim 15, wherein the unfinished workloads for which required resources are calculated have at least one workload state of workload states comprising waiting for processing, running, and waiting for processing more than a specified amount of time.

### Claim 19 (depends on 15)

The system of claim 15, wherein the calculating the required resources for a specific unfinished workload that is included in the calculated required resources for the unfinished workloads comprises:
determining a timing multiplier as a function of an average completion duration for completed workloads and a maximum bound on a processing duration for the specific unfinished workload; and
multiplying the timing multiplier by average consumed resources comprising average resources consumed by a workload to determine required resources for the specific unfinished workload.

### Claim 20 (depends on 19)

The system of claim 19, wherein the average completion duration and the average consumed resources are maintained for each workload class of a plurality of workload classes assigned to a cluster, wherein each workload class has similar processing behaviors, wherein the calculated required resources are provisioned to the cluster to be available for all workload classes executing in the cluster.

### Claim 21

A method for allocating computing resources to workloads, comprising:
calculating required resources of computational resources required to complete processing a plurality of unfinished workloads comprising workloads having a status indicating not completed;
determining allocated resources that are not yet provisioned to workloads;
reducing the required resources by the allocated resources not yet provisioned to determine resources to provision; and
requesting the resources to provision for the unfinished workloads to offload the unfinished workloads to the requested resources to provision.

### Claim 22 (depends on 21)

The method of claim 21, wherein the unfinished workloads execute in a cluster comprising a local computing system and an allocatable computing system accessible to the local computing system, wherein the requesting the resources to provision comprises:
submitting a request to a resource service, providing resources in the allocatable computing system, for the resources to provision in the allocatable computing system.

### Claim 23 (depends on 22)

The method of claim 22, further comprising:
determining unfinished workloads in the cluster that are eligible to execute with resources in the allocatable computing system, wherein the unfinished workloads for which required resources are calculated comprise the unfinished workloads in the cluster that are determined to be eligible to execute in the allocatable computing system.

### Claim 24 (depends on 21)

The method of claim 21, wherein the unfinished workloads for which required resources are calculated have at least one workload state of workload states comprising waiting for processing, running, and waiting for processing more than a specified amount of time.

### Claim 25 (depends on 21)

The method of claim 21, wherein the calculating the required resources for a specific unfinished workload that is included in the calculated required resources for the unfinished workloads comprises:
determining a timing multiplier as a function of an average completion duration for completed workloads and a maximum bound on a processing duration for the specific unfinished workload; and
multiplying the timing multiplier by average consumed resources comprising average resources consumed by a workload to determine required resources for the specific unfinished workload.

### Claim 26 (depends on 25)

The method of claim 25, wherein the average completion duration and the average consumed resources are maintained for each workload class of a plurality of workload classes assigned to a cluster, wherein each workload class has similar processing behaviors, wherein the calculated required resources are provisioned to the cluster to be available for all workload classes executing in the cluster.
