# US 2023/0266746 A1 · PID Controller For Event Ingestion Throttling

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

- Number: US 2023/0266746 A1
- Document ID: US20230266746A1
- Status: Published application
- Kind: A1
- Application number: 18/310,835
- Filed: 2023-05-02
- Published: 2023-08-24
- Earliest claimed: 2021-07-30
- Assignees: PagerDuty, Inc.
- Applicants: PagerDuty, Inc.
- Inventors: Taavi Andrew Burns
- Web page: https://patentgrep.com/patent/US20230266746A1

## CPC

- G05B 19/4155: characterised by program execution, i.e. part program or machine function execution, e.g. selection of a program
- H04L 41/0622: {based on time}
- G05B 2219/42033: Kind of servo controller
- H04L 43/0817: by checking functioning
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Accepted events are processed. Each accepted event is associated with a respective ingested timestamp, a respective processing-start timestamp, and a respective processing-complete timestamp. Events are accepted at a rate of a target rate limit. A current error value is obtained as a difference between a target lag time and a second value. The target lag time indicates a configured maximum time within which an accepted event is to be processed. The second value is an average of differences between the respective processing-complete timestamps and the respective ingested timestamps. A base throttle is obtained based on previous error values and the current error value. The base throttle is smaller than the target rate limit and indicates a maximum number of events per a unit of time to be accepted for processing. Subsequent events are accepted at a new rate obtained from the base throttle.

## Claims

### Claim 1

A method, comprising:
processing accepted events, wherein each accepted event is associated with a respective ingested timestamp, a respective processing-start timestamp, and a respective processing-complete timestamp, and wherein events are accepted at a rate of a target rate limit;
obtaining a current error value as a difference between a target lag time and a second value, the target lag time indicating a configured maximum time within which an accepted event is to be processed, and the second value being an average of differences between the respective processing-complete timestamps and the respective ingested timestamps;
obtaining a base throttle based on previous error values and the current error value, wherein the base throttle is smaller than the target rate limit and indicates a maximum number of events per a unit of time to be accepted for processing; and
accepting subsequent events at a new rate obtained from the base throttle.

### Claim 2 (depends on 1)

The method of claim 1, wherein obtaining the base throttle based on the previous error values and the current error value comprises:
using a proportional-integral-derivative (PID) controller that uses the current error value as an input and outputs a PID value that is a sum of a proportional part, an integral part, and a derivative part.

### Claim 3 (depends on 2)

The method of claim 2, wherein the base throttle is a sum of the PID value and the target rate limit.

### Claim 4 (depends on 2)

The method of claim 2, wherein the integral part is a sum of accumulated errors multiplied by an integral control constant.

### Claim 5 (depends on 4)

The method of claim 4, wherein only negative error values are accumulated in the sum of accumulated errors.

### Claim 6 (depends on 2)

The method of claim 2, wherein the derivative part is obtained as a current accumulated error value minus a previous accumulated error value, divided by a run interval, and multiplied by derivative control constant.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
obtaining a control value as an active processing time divided by a sum of the active processing time with an average active processing time; and
scaling, using the control value, the base throttle to obtain the new rate.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
responsive to determining that an accumulated pending processing time of in process events is greater than a maximum accumulated processing time, stopping acceptance of events.

### Claim 9

A device, comprising:
a memory; and
a processor, the processor configured to execute instructions stored in the memory to:
process accepted events, wherein each accepted event is associated with a respective ingested timestamp, a respective processing-start timestamp, and a respective processing-complete timestamp, and wherein events are accepted at a rate of a target rate limit;
obtain a current error value as a difference between a target lag time and a second value, the target lag time indicating a configured maximum time within which an accepted event is to be processed, and the second value being an average of differences between the respective processing-complete timestamps and the respective ingested timestamps;
obtain a base throttle based on previous error values and the current error value, wherein the base throttle is smaller than the target rate limit and indicates a maximum number of events per a unit of time to be accepted for processing; and
accept subsequent events at a new rate obtained from the base throttle.

### Claim 10 (depends on 9)

The device of claim 9, wherein the instructions to obtain the base throttle based on the previous error values and the current error value comprise instructions to:
use a proportional-integral-derivative (PID) controller that uses the current error value as an input and outputs a PID value that is a sum of a proportional part, an integral part, and a derivative part.

### Claim 11 (depends on 10)

The device of claim 10, wherein the base throttle is a sum of the PID value and the target rate limit.

### Claim 12 (depends on 10)

The device of claim 10, wherein the integral part is a sum of accumulated errors multiplied by an integral control constant.

### Claim 13 (depends on 12)

The device of claim 12, wherein only negative error values are accumulated in the sum of accumulated errors.

### Claim 14 (depends on 10)

The device of claim 10, wherein the derivative part is obtained as a current accumulated error value minus a previous accumulated error value, divided by a run interval, and multiplied by derivative control constant.

### Claim 15 (depends on 9)

The device of claim 9, wherein the processor is further configured to execute instructions stored in the memory to:
obtain a control value as an active processing time divided by a sum of the active processing time with an average active processing time; and
scale, using the control value, the base throttle to obtain the new rate.

### Claim 16 (depends on 9)

The device of claim 9, wherein the processor is further configured to execute instructions stored in the memory to:
responsive to determining that an accumulated pending processing time of in process events is greater than a maximum accumulated processing time, stop acceptance of events.

### Claim 17

A non-transitory computer-readable storage medium, comprising executable instructions that, when executed by a processor, facilitate performance of operations, comprising:
processing accepted events, wherein each accepted event is associated with a respective ingested timestamp, a respective processing-start timestamp, and a respective processing-complete timestamp, and wherein events are accepted at a rate of a target rate limit;
obtaining a current error value as a difference between a target lag time and a second value, the target lag time indicating a configured maximum time within which an accepted event is to be processed, and the second value being an average of differences between the respective processing-complete timestamps and the respective ingested timestamps;
obtaining a base throttle based on previous error values and the current error value, wherein the base throttle is smaller than the target rate limit and indicates a maximum number of events per a unit of time to be accepted for processing;
obtaining a control value as an active processing time divided by a sum of the active processing time with an average active processing time;
scaling, using the control value, the base throttle to obtain a new rate; and
accepting subsequent events at the new rate obtained from the base throttle.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein obtaining the base throttle based on the previous error values and the current error value comprises:
using a proportional-integral-derivative (PID) controller that uses the current error value as an input and outputs a PID value that is a sum of a proportional part, an integral part, and a derivative part.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium of claim 18, wherein the base throttle is a sum of the PID value and the target rate limit.

### Claim 20 (depends on 18)

The non-transitory computer-readable storage medium of claim 18,
wherein the integral part is a sum of accumulated errors multiplied by an integral control constant,
wherein only negative error values are accumulated in the sum of accumulated errors, and
wherein the derivative part is obtained as a current accumulated error value minus a previous accumulated error value, divided by a run interval, and multiplied by derivative control constant.
