# US 2022/0284019 A1 · Programmable framework for distributed computation of statistical functions over time-based data

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

- Number: US 2022/0284019 A1
- Document ID: US20220284019A1
- Status: Published application
- Kind: A1
- Application number: 17/664,774
- Filed: 2022-05-24
- Published: 2022-09-08
- Earliest claimed: 2020-02-21
- Assignees: Rapid7, Inc.
- Applicants: Rapid7, Inc.
- Inventors: David C. Tracey; Miguel A. Casanova
- Web page: https://patentgrep.com/patent/US20220284019A1

## CPC

- G06F 16/2471: {Distributed queries}
- G06F 16/2477: {Temporal data queries}
- G06F 11/3006: {where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems (multiprogramming arrangements G06F9/46; allocation of resources G06F9/50)}
- G06F 16/1734: {Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs}
- G06F 16/182: Distributed file systems
- G06F 16/2322: {using timestamps}
- G06F 16/242: Query formulation
- G06F 16/24556: {Aggregation; Duplicate elimination}
- G06F 16/2462: {Approximate or statistical queries}
- G06F 11/3017: {where the computing system is implementing multitasking (multiprogramming arrangements G06F9/46; allocation of resources G06F9/50)}
- G06F 11/302: {where the computing system component is a software system}
- G06F 11/3409: {for performance assessment}
- 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 2201/80: Database-specific techniques
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods are disclosed to implement a distributed query execution system that performs statistical operations on specified time windows over time-based datasets. In embodiments, the query system splits a statistical function into a set of parallel accumulator tasks that correspond to different portions of the dataset and/or function time windows. The accumulator tasks are executed in parallel by individual accumulator nodes to generate individual statistical result structures. The structures are then combined by an aggregator node to produce an aggregate result structure that indicates the results of the statistical function over the time windows. In embodiments, the accumulator and aggregator tasks are implemented and executed using a programmable task execution framework that allows developers to define custom accumulator and aggregator tasks. Advantageously, the query system allows queries with time-windowed statistical functions to be parallelized across a group of worker nodes and scaled to very large datasets.

## Claims

### Claim at position 1

-20. (canceled)

### Claim 21

A method, comprising:
performing, by one or more hardware processors with associated memory that implement a distributed query execution system:
receiving, via a user interface, a query directed to a time-based dataset, wherein the query specifies a statistical function to be computed over groups of records in time windows;
executing the query using a plurality of compute nodes connected via a network, wherein the compute nodes include (a) a set of accumulator nodes that individual reads a respective portion of the time-based dataset and computes the statistic function over the respective portion, and (b) at least one aggregator node that aggregates result structures produced by the accumulator nodes;
responsive to user input received via the user interface, pausing the execution of the query; and
while the execution of the query is paused, updating the user interface to output partial results of the statistical function based on a subset of the accumulator nodes that have completed computation.

### Claim 22 (depends on 21)

The method of claim 21, further comprising the distributed query execution system:
responsive to additional user input received via the user interface, resuming the execution of the query; and
updating the user interface to output complete results of the statistical function after completion of the execution of the query.

### Claim 23 (depends on 1)

The method of claim 1, wherein the user interface is a graphical user interface.

### Claim 24 (depends on 23)

The method of claim 23, wherein the partial results of the statistical function are displayed on the graphical user interface as a time graph.

### Claim 25 (depends on 21)

The method of claim 21, wherein the computes nodes are virtual machine instances hosted on one or more virtual machine hosts.

### Claim 26 (depends on 21)

The method of claim 21, wherein:
the time-based dataset is stored across a plurality of different locations; and
individual ones of the accumulator nodes are selected that each accumulator node has local access to the respective portion timed-based dataset.

### Claim 27 (depends on 21)

The method of claim 21, further comprising the distributed query execution system updating the user interface to output a progress of the execution of the query including a number accumulator nodes that have completed computation.

### Claim 28 (depends on 27)

The method of claim 27, wherein the progress of the execution is updated dynamically during the execution of the query.

### Claim 29 (depends on 27)

The method of claim 27, wherein the progress of the execution is output as an execution progress graph that indicates respective progress meters for individual ones of the accumulator nodes.

### Claim 30 (depends on 21)

The method of claim 21, wherein the user interface includes one or more control elements to pause and resume computation on individual ones of the accumulator nodes.

### Claim 31 (depends on 21)

The method of claim 21, further comprising the distributed query execution system:
detecting that one of the accumulator nodes has failed prior to completion of computation; and
retrying the computation of the failed accumulator node using a different accumulator node.

### Claim 32 (depends on 21)

The method of claim 21, wherein the distributed query execution system is configured to compute a plurality of statistical functions on time-based datasets, including two or more of:
a count of matched records,
a byte size of matched records,
a total value of an attribute in matched records,
a minimum of an attribute in matched records,
a maximum of an attribute in matched records, and
an average of an attribute in matched records.

### Claim 33

A system comprising:
a distributed query execution system implemented by one or more hardware processors with associated memory, configure to:
receive, via a user interface, a query directed to a time-based dataset, wherein the query specifies a statistical function to be computed over groups of records in time windows;
execute the query using a plurality of compute nodes connected via a network, wherein the compute nodes include (a) a set of accumulator nodes that individual reads a respective portion of the time-based dataset and computes the statistic function over the respective portion, and (b) at least one aggregator node that aggregates result structures produced by the accumulator nodes;
responsive to user input received via the user interface, pause the execution of the query; and
while the execution of the query is paused, update the user interface to output partial results of the statistical function based on a subset of the accumulator nodes that have completed computation.

### Claim 34 (depends on 33)

The system of claim 33, wherein the distributed query execution system is configured to:
responsive to additional user input received via the user interface, resume the execution of the query; and
update the user interface to output complete results of the statistical function after completion of the execution of the query.

### Claim 35 (depends on 33)

The system of claim 33, wherein the user interface is a graphical user interface.

### Claim 36 (depends on 35)

The system of claim 35, wherein the partial results of the statistical function are displayed on the graphical user interface as a time graph.

### Claim 37 (depends on 33)

The system of claim 33, wherein the distributed query execution system is configured to update the user interface to output a progress of the execution of the query including a number accumulator nodes that have completed computation.

### Claim 38 (depends on 37)

The system of claim 37, wherein the progress of the execution is updated dynamically during the execution of the query.

### Claim 39 (depends on 37)

The system of claim 37, wherein the progress of the execution is output as an execution progress graph that indicates respective progress meters for individual ones of the accumulator nodes.

### Claim 40

One or more non-transitory computer-accessible storage media storing program instructions that when executed on or across one or more processors implement at least a portion of a distributed query execution system and cause the distributed query execution system to:
receive, via a user interface, a query directed to a time-based dataset, wherein the query specifies a statistical function to be computed over groups of records in time windows;
execute the query using a plurality of compute nodes connected via a network, wherein the compute nodes include (a) a set of accumulator nodes that individual reads a respective portion of the time-based dataset and computes the statistic function over the respective portion, and (b) at least one aggregator node that aggregates result structures produced by the accumulator nodes;
responsive to user input received via the user interface, pause the execution of the query; and
while the execution of the query is paused, update the user interface to output partial results of the statistical function based on a subset of the accumulator nodes that have completed computation.
