# US 2021/0286647 A1 · Embedded persistent queue

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

- Number: US 2021/0286647 A1
- Document ID: US20210286647A1
- Status: Published application
- Kind: A1
- Application number: 16/819,115
- Filed: 2020-03-15
- Published: 2021-09-16
- Earliest claimed: 2020-03-15
- Assignees: VMware, Inc.
- Applicants: VMware, Inc.
- Inventors: Srinivas Neginhal; Medhavi Dhawan; Gaurav Sharma; Rajneesh Bajpai
- Web page: https://patentgrep.com/patent/US20210286647A1

## CPC

- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 11/3433: {for load management (allocation of a server based on load conditions G06F9/505; load rebalancing G06F9/5083; redistributing the load in a network by a load balancer H04L67/1029)}
- G06F 9/505: {considering the load}
- G06F 9/5083: {Techniques for rebalancing the load in a distributed system}
- G06F 11/302: {where the computing system component is a software system}
- G06F 11/3495: {for systems}
- G06F 11/3442: {for planning or managing the needed capacity}
- G06F 2201/815: Virtual
- G06F 2209/485: Resource constraint
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Various aspects are disclosed for distributed application management using an embedded persistent queue framework. In some aspects, task execution data is monitored from a plurality of task execution engines. A task request is identified. The task request can include a task and a Boolean predicate for task assignment. The task is assigned to a task execution engine embedded in a distributed application process if the Boolean predicate is true, and a capacity of the task execution engine is sufficient to execute the task. The task is enqueued in a persistent queue. The task is retrieved from the persistent queue and executed.

## Claims

### Claim 1

A system comprising:
at least one computing device comprising at least one processor;
a memory comprising executable instructions, wherein the instructions, when executed by the at least one processor, cause the at least one computing device to at least:
monitor task execution data from a plurality of task execution engines, the task execution data comprising reported capacities for the plurality of task execution engines;
identify a task request comprising a task and a Boolean predicate for task assignment;
assign the task to a task execution engine embedded in a distributed application process executed by a node, the task being assigned based on an analysis of the task execution data that indicates: the Boolean predicate is true, and a capacity of the task execution engine is sufficient to execute the task;
enqueue the task in a persistent queue; and
execute the task in the distributed application process, wherein the task is retrieved from the persistent queue.

### Claim 2 (depends on 1)

The system of claim 1, wherein the task is retrieved from the persistent queue by at least one of: the task execution engine, and a local monitor for the node.

### Claim 3 (depends on 1)

The system of claim 1, wherein the instructions, when executed by the at least one processor, cause the at least one computing device to at least:
receive, from a local monitor executed on the node, an actual resource usage of the node.

### Claim 4 (depends on 3)

The system of claim 3, wherein the instructions, when executed by the at least one processor, cause the at least one computing device to at least:
perform a comparison of the actual resource usage to a target resource usage for the node; and
determine a recognized capacity based on a reported capacity for the task execution engine, and a result of the comparison of the actual resource usage to the target resource usage for the node.

### Claim 5 (depends on 4)

The system of claim 4, wherein the recognized capacity is reduced to a fraction of the reported capacity, and the fraction is determined based on a number of time periods that the actual resource usage exceeds the target resource usage.

### Claim 6 (depends on 4)

The system of claim 4, wherein the capacity is the recognized capacity.

### Claim 7 (depends on 1)

The system of claim 1, wherein the persistent queue is unique to the task execution engine or a local monitor that reports resource usage for the node.

### Claim 8

A non-transitory computer-readable medium, comprising executable instructions, wherein the instructions, when executed by at least one processor, cause at least one computing device to at least:
monitor task execution data from a plurality of task execution engines, the task execution data comprising reported capacities for the plurality of task execution engines;
identify a task request comprising a task and a Boolean predicate for task assignment;
assign the task to a task execution engine embedded in a distributed application process executed by a node, the task being assigned based on an analysis of the task execution data that indicates: the Boolean predicate is true, and a capacity of the task execution engine is sufficient to execute the task;
enqueue the task in a persistent queue; and
execute the task in the distributed application process, wherein the task is retrieved from the persistent queue.

### Claim 9 (depends on 8)

The non-transitory computer-readable medium of claim 8, wherein the task is retrieved from the persistent queue by at least one of: the task execution engine, and a local monitor for the node.

### Claim 10 (depends on 8)

The non-transitory computer-readable medium of claim 8, wherein the instructions, when executed by the at least one processor, cause the at least one computing device to at least:
receive, from a local monitor executed on the node, an actual resource usage of the node.

### Claim 11 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein the instructions, when executed by the at least one processor, cause the at least one computing device to at least:
perform a comparison of the actual resource usage to a target resource usage for the node; and
determine a recognized capacity based on a reported capacity for the task execution engine, and a result of the comparison of the actual resource usage to the target resource usage for the node.

### Claim 12 (depends on 11)

The non-transitory computer-readable medium of claim 11, wherein the recognized capacity is reduced to a fraction of the reported capacity, and the fraction is determined based on a number of time periods that the actual resource usage exceeds the target resource usage.

### Claim 13 (depends on 11)

The non-transitory computer-readable medium of claim 11, wherein the capacity is the recognized capacity.

### Claim 14 (depends on 8)

The non-transitory computer-readable medium of claim 8, wherein the persistent queue is unique to the task execution engine or a local monitor that reports resource usage for the node.

### Claim 15

A method implemented by instructions executed by at least one computing device, the method comprising:
monitoring task execution data from a plurality of task execution engines, the task execution data comprising reported capacities for the plurality of task execution engines;
identifying a task request comprising a task and a Boolean predicate for task assignment;
assigning the task to a task execution engine embedded in a distributed application process executed by a node, the task being assigned based on an analysis of the task execution data that indicates: the Boolean predicate is true, and a capacity of the task execution engine is sufficient to execute the task;
enqueueing the task in a persistent queue; and
executing the task in the distributed application process, wherein the task is retrieved from the persistent queue.

### Claim 16 (depends on 15)

The method of claim 15, wherein the task is retrieved from the persistent queue by at least one of: the task execution engine, and a local monitor for the node.

### Claim 17 (depends on 15)

The method of claim 15, further comprising:
receiving, from a local monitor executed on the node, an actual resource usage of the node.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
performing a comparison of the actual resource usage to a target resource usage for the node; and
determining a recognized capacity based on a reported capacity for the task execution engine, and a result of the comparison of the actual resource usage to the target resource usage for the node.

### Claim 19 (depends on 18)

The method of claim 18, wherein the recognized capacity is reduced to a fraction of the reported capacity, and the fraction is determined based on a number of time periods that the actual resource usage exceeds the target resource usage.

### Claim 20 (depends on 15)

The method of claim 15, wherein the persistent queue is unique to the task execution engine or a local monitor that reports resource usage for the node.
