# US 2020/0396280 A1 · Resource Management Metrics For An Event Loop

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

- Number: US 2020/0396280 A1
- Document ID: US20200396280A1
- Status: Published application
- Kind: A1
- Application number: 16/440,401
- Filed: 2019-06-13
- Published: 2020-12-17
- Earliest claimed: 2019-06-13
- Assignees: NodeSource, Inc.
- Applicants: NodeSource, Inc.
- Inventors: Trevor Norris
- Web page: https://patentgrep.com/patent/US20200396280A1

## CPC

- H04L 67/1008: based on parameters of servers, e.g. available memory or workload (monitoring of computer activity G06F11/30)
- H04L 43/0852: Delays
- H04L 43/0876: Network utilisation, e.g. volume of load or congestion level
- H04L 43/16: Threshold monitoring
- H04L 43/20: the monitoring system or the monitored elements being virtualised, abstracted or software-defined entities, e.g. SDN or NFV
- H04L 67/101: based on network conditions
- H04L 43/10: Active monitoring, e.g. heartbeat, ping or trace-route
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Systems, methods, and devices for determining event loop responsiveness of a server. A method includes calculating provider delay for an event loop indicating a duration of time events waited. The provider delay is based on loop processing time indicating an aggregate time duration the events waited before being received by an event provider of the event loop, and a quantity of the events that waited to be received by the event provider. The method includes calculating processing delay for the event loop indicating a duration of time to fully process the events. The processing delay based on the loop processing time and a quantity of the events provided by the event provider to an event handler.

## Claims

### Claim 1

A system for measuring event loop responsiveness of a server, the system comprising:
means for calculating provider delay for an event loop indicating a duration of time events waited, the provider delay based on:
a loop processing time indicating an aggregate time duration the events waited before being received by an event provider of the event loop; and
a quantity of the events that waited to be received by the event provider; and
means for calculating processing delay for the event loop indicating a duration of time to fully process the events, the processing delay based on:
the loop processing time; and
a quantity of the events provided by the event provider to an event handler.

### Claim 2 (depends on 1)

The system of claim 1, further comprising means for calculating the event loop responsiveness based on the provider delay, the processing delay, and the loop processing time.

### Claim 3 (depends on 2)

The system of claim 2, further comprising means for triggering auto-scaling of an amount of processing capacity that is provided to the event handler based on the event loop responsiveness.

### Claim 4 (depends on 2)

The system of claim 2, further comprising means for scaling processing capacity that is provided to the event handler based on the event loop responsiveness to minimize processing usage of the server or to minimize latency on the server in accordance with user-specified threshold parameters.

### Claim 5 (depends on 2)

The system of claim 2, further comprising:
means for identifying whether the event loop responsiveness complies with a user-specified acceptable range for the event loop responsiveness; and
means for generating a notification indicating whether the server complies with the user-specified acceptable range for the event loop responsiveness.

### Claim 6 (depends on 1)

The system of claim 1, further comprising:
means for calculating the loop processing time by summing all individual time durations each of the events waited after being received by the event provider and before being dispatched to the event handler for one loop iteration of the event loop; and
means for calculating the quantity of the events that are dispatched to the event handler by summing all events provided by the event provider to the event handler for one loop iteration of the event loop.

### Claim 7 (depends on 6)

The system of claim 6, further comprising:
means for calculating an average provider delay over multiple iterations of the event loop;
means for calculating an average processing delay over multiple iterations of the event loop; and
means for calculating an average event loop responsiveness based on the average provider delay and the average processing delay.

### Claim 8 (depends on 7)

The system of claim 7, further comprising means for triggering auto-scaling of an amount of processing resources provided to the event handler based on the event loop responsiveness and not based on application specific metrics.

### Claim 9 (depends on 1)

The system of claim 1, wherein:
the means for calculating the provider delay comprises means for calculating the provider delay indirectly such that overhead is not added to a program associated with the event loop; and
the means for calculating the processing delay comprises means for calculating the processing delay indirectly such that overhead is not added to the program associated with the event loop.

### Claim 10

A method for measuring event loop responsiveness of a server, the method comprising:
calculating provider delay for an event loop indicating a duration of time events waited, the provider delay based on:
a loop processing time indicating an aggregate time duration the events waited before being received by an event provider of the event loop; and
a quantity of the events that waited to be received by the event provider; and
calculating processing delay for the event loop indicating a duration of time to fully process the events, the processing delay based on:
the loop processing time; and
a quantity of the events provided by the event provider to an event handler.

### Claim 11 (depends on 10)

The method of claim 10, further comprising calculating the event loop responsiveness based on the provider delay, the processing delay, and the loop processing time.

### Claim 12 (depends on 11)

The method of claim 11, further comprising triggering auto-scaling of an amount of processing capacity that is provided to the event handler based on the event loop responsiveness.

### Claim 13 (depends on 11)

The method of claim 11, further comprising scaling processing capacity that is provided to the event handler based on the event loop responsiveness to minimize processing usage of the server or to minimize latency on the server in accordance with user-specified threshold parameters.

### Claim 14 (depends on 11)

The method of claim 11, further comprising:
identifying whether the event loop responsiveness complies with a user-specified acceptable range for the event loop responsiveness; and
generating a notification indicating whether the server complies with the user-specified acceptable range for the event loop responsiveness.

### Claim 15 (depends on 10)

The method of claim 10, further comprising:
calculating the loop processing time by summing all individual time durations each of the events waited after being received by the event provider and before being dispatched to the event handler for one loop iteration of the event loop; and
calculating the quantity of the events that are dispatched to the event handler by summing all events provided by the event provider to the event handler for one loop iteration of the event loop.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
calculating an average provider delay over multiple iterations of the event loop;
calculating an average processing delay over multiple iterations of the event loop; and
calculating an average event loop responsiveness based on the average provider delay and the average processing delay.

### Claim 17 (depends on 16)

The method of claim 16, further comprising triggering auto-scaling of an amount of processing resources provided to the event handler based on the event loop responsiveness and not based on application specific metrics.

### Claim 18 (depends on 10)

The method of claim 10, wherein:
calculating the provider delay comprises calculating indirectly such that overhead is not added to a program associated with the event loop; and
calculating the processing delay comprises calculating indirectly such that overhead is not added to the program associated with the event loop.

### Claim 19

A processor that is programmable to execute instructions stored in non-transitory computer readable storage media, the instructions comprising:
calculating provider delay for an event loop indicating a duration of time events waited, the provider delay based on:
loop processing time indicating an aggregate time duration the events waited before being received by an event provider of the event loop; and
a quantity of the events that waited to be received by the event provider; and
calculating processing delay for the event loop indicating a duration of time to fully process the events, the processing delay based on:
the loop processing time; and
a quantity of the events provided by the event provider to an event handler.

### Claim 20 (depends on 19)

The processor of claim 19, wherein the instructions further comprise calculating the event loop responsiveness based on the provider delay, the processing delay, and the loop processing time and one or more of:
triggering auto-scaling of an amount of processing capacity that is provided to the event handler based on the event loop responsiveness;
scaling processing capacity that is provided to the event handler based on the event loop responsiveness to minimize processing usage of the server or to minimize latency on the server in accordance with user-specified threshold parameters;
identifying whether the event loop responsiveness complies with a user-specified acceptable range for the event loop responsiveness; or
generating a notification indicating whether the server complies with the user-specified acceptable range for the event loop responsiveness

### Claim 21 (depends on 19)

The processor of claim 19, wherein the instructions further comprise:
calculating the loop processing time by summing all individual time durations each of the events waited after being received by the event provider and before being dispatched to the event handler for one loop iteration of the event loop; and
calculating the quantity of the events that are dispatched to the event handler by summing all events provided by the event provider to the event handler for one loop iteration of the event loop.

### Claim 22 (depends on 21)

The processor of claim 21, wherein the instructions further comprise:
calculating an average provider delay over multiple iterations of the event loop;
calculating an average processing delay over multiple iterations of the event loop; and
calculating an average event loop responsiveness based on the average provider delay and the average processing delay.

### Claim 23 (depends on 22)

The processor of claim 22, wherein the instructions further comprise triggering auto-scaling of an amount of processing resources provided to the event handler based on the event loop responsiveness and not based on actual server metrics.
