# US 2022/0291952 A1 · Optimal dispatching of function-as-a-service in heterogeneous accelerator environments

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

- Number: US 2022/0291952 A1
- Document ID: US20220291952A1
- Status: Published application
- Kind: A1
- Application number: 17/198,871
- Filed: 2021-03-11
- Published: 2022-09-15
- Earliest claimed: 2021-03-11
- Assignees: Hewlett Packard Enterprise Development LP
- Applicants: Hewlett Packard Enterprise Development LP
- Inventors: DEJAN S. MILOJICIC; Kimberly Keeton; Paolo Faraboschi; Cullen E. Bash
- Web page: https://patentgrep.com/patent/US20220291952A1

## CPC

- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/5033: {considering data affinity}
- G06F 9/5005: {to service a request}
- G06F 9/5044: {considering hardware capabilities}
- G06F 9/505: {considering the load}
- G06F 9/5055: {considering software capabilities, i.e. software resources associated or available to the machine}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods are provided for incorporating an optimized dispatcher with an FaaS infrastructure to permit and restrict access to resources. For example, the dispatcher may assign requests to “warm” resources and initiate a fault process if the resource is overloaded or a cache-miss is identified (e.g., by restarting or rebooting the resource). The warm instances or accelerators associated with the allocation size that are identified may be commensurate to the demand and help dynamically route requests to faster accelerators.

## Claims

### Claim 1

A computer-implemented method for function dispatching in a function-as-a-service (FaaS) computing environment, the method comprising:
receiving a request to execute a function, the request comprising a function identifier of the function; and
executing a dispatching algorithm to dispatch the function, wherein executing the dispatching algorithm comprises:
determining, based at least in part on the function identifier, whether the function was previously deployed on one or more local function executors associated with a local computing node;
responsive to determining that the function was previously deployed on the one or more local function executors, determining whether a particular local function executor is available; and
responsive to determining that the particular local function executor is available, dispatching the function for invocation and execution by the particular local function executor.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the one or more local function executors associated with the local computing node is an accelerator.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein executing the dispatching algorithm to dispatch the function uses a minimal number of hops to determine a second local function executor node to dispatch the function to.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein the minimal number of hops corresponds with a shortest path between infrastructure resources including the local function executor.

### Claim 5 (depends on 3)

The computer-implemented method of claim 3, wherein the minimal number of hops corresponds with a minimum latency between infrastructure resources including the local function executor.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising:
identifying that the one or more local function executors associated with the local computing node is overloaded; and
initiating a fault process in response to identifying that the one or more local function executors associated with the local computing node is overloaded.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, further comprising:
checking a cache of the particular local function executor for the function;
identifying a cache miss; and
initiating a fault process in response to identifying the cache miss.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, further comprising:
storing information associated with the function in a key-value store (KVS); and
searching the KVS for available local function executors associated with the local computing node.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein determining whether the particular local function executor is available comprises identifying that an available warmed copy of the function is available.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein determining whether the particular local function executor is available comprises identifying that an oldest previous deployment of the function is available.

### Claim 11

A non-transitory computer-readable storage medium storing a plurality of instructions executable by one or more processors, the plurality of instructions when executed by the one or more processors cause the one or more processors to:
receive a request to execute a function, the request comprising a function identifier of the function; and
execute a dispatching algorithm to dispatch the function, wherein executing the dispatching algorithm comprises:
determining, based at least in part on the function identifier, whether the function was previously deployed on one or more local function executors associated with a local computing node;
responsive to determining that the function was previously deployed on the one or more local function executors, determining whether a particular local function executor is available; and
responsive to determining that the particular local function executor is available, dispatching the function for invocation and execution by the particular local function executor.

### Claim 12 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the one or more local function executors associated with the local computing node is an accelerator.

### Claim 13 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein executing the dispatching algorithm to dispatch the function uses a minimal number of hops to determine a second local function executor node to dispatch the function to.

### Claim 14 (depends on 13)

The non-transitory computer-readable storage medium of claim 13, wherein the minimal number of hops corresponds with a shortest path between infrastructure resources including the local function executor.

### Claim 15 (depends on 13)

The non-transitory computer-readable storage medium of claim 13, wherein the minimal number of hops corresponds with a minimum latency between infrastructure resources including the local function executor.

### Claim 16

A function-as-a-service (FaaS) computing system, comprising:
a dispatcher device configured to:
receive a request to execute a function, the request comprising a function identifier of the function; and
execute a dispatching algorithm to dispatch the function, wherein executing the dispatching algorithm comprises:
determining, based at least in part on the function identifier, whether the function was previously deployed on one or more local function executors associated with a local computing node;
responsive to determining that the function was previously deployed on the one or more local function executors, determining whether a particular local function executor is available; and
responsive to determining that the particular local function executor is available, dispatching the function for invocation and execution by the particular local function executor; and
a scheduler device configured to:
receive a request to schedule a function for execution, the request comprising a function identifier of the function; and
schedule the function for execution, wherein the scheduling comprises:
determining a set of resource parameters for executing the function, the set of resource parameters comprising at least a resource type and a resource class;
identifying historical execution data indicative of one or more execution performance metrics associated with prior executions of the function; and
determining whether a resource adjustment should be made to the set of resource parameters based at least in part on the historical execution data.

### Claim 17 (depends on 16)

The FaaS computing system of claim 16, wherein the one or more local function executors associated with the local computing node is an accelerator.

### Claim 18 (depends on 16)

The FaaS computing system of claim 16, wherein executing the dispatching algorithm to dispatch the function uses a minimal number of hops to determine a second local function executor node to dispatch the function to.

### Claim 19 (depends on 18)

The FaaS computing system of claim 18, wherein the minimal number of hops corresponds with a shortest path between infrastructure resources including the local function executor.

### Claim 20 (depends on 18)

The FaaS computing system of claim 18, wherein the minimal number of hops corresponds with a minimum latency between infrastructure resources including the local function executor.
