User interface for managing distributed query execution
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.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 72 · Forward citations: 1.
Claims (10 — 3 Independent, 7 Dependent)
- Claim 1Independent Claim
A method, comprising: performing, by one or more hardware processors with associated memory that implement a distributed query execution system: storing a time-based dataset on one or more storage devices, wherein the time-based dataset is stored as a plurality of files on a plurality of servers; receiving, via a user interface, a query directed to the time-based dataset, wherein the query specifies (a) a user-specified statistical function to be computed over groups of records in the time-based dataset and (b) a user-specified number and size of a plurality of time windows over which to compute the statistical function; executing the query using a plurality of compute nodes connected via a network, including: executing a set of accumulator nodes in parallel to read respective portions of the time-based dataset in individual ones of the files and compute the statistic function over the respective portion, wherein individual ones of the accumulator nodes are launched on respective servers that have local access to different ones of the files so that each respective portion is locally read and processed by a respective group of one or more accumulator nodes at a respective server so as to reduce data traffic over the network; executing at least one aggregator node to aggregate result structures produced by the accumulator nodes; 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; responsive to user input received via the user interface, pausing the execution of the query by the compute nodes; while the execution of the query is paused, dynamically updating the user interface to output partial results of the statistical function based on a subset of the accumulator nodes that have completed computation; responsive to additional user input received via the user interface after the pausing of the query, resuming the execution of the query; and dynamically updating the user interface to output complete results of the statistical function after completion of the execution of the query.
- Claim 2Depends on #1
The method of claim 1, wherein the user interface is a graphical user interface.
- Claim 3Depends on #2
The method of claim 2, wherein the partial results of the statistical function are displayed on the graphical user interface as a time graph.
- Claim 4Depends on #1
The method of claim 1, wherein the compute nodes are virtual machine instances hosted on one or more virtual machine hosts.
- Claim 5Depends on #1
The method of claim 1, wherein the accumulator nodes include two or more accumulator nodes that share a common cache or file lock when reading the files.
- Claim 6Depends on #1
The method of claim 1, 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 7Independent Claim
A system comprising: a distributed query execution system implemented by one or more hardware processors with associated memory, configure to: store a time-based dataset on one or more storage devices, wherein the time-based dataset is stored as a plurality of files on a plurality of servers; receive, via a user interface, a query directed to the time-based dataset, wherein the query specifies (a) a user-specified statistical function to be computed over groups of records in the time-based dataset and (b) a user-specified number and size of a plurality of time windows over which to compute the statistical function; execute the query using a plurality of compute nodes connected via a network, including to: execute a set of accumulator nodes in parallel to read respective portions of the time-based dataset in individual ones of the files and compute the statistic function over the respective portion, wherein individual ones of the accumulator nodes are launched on respective servers that have local access to different ones of the files so that each respective portion is locally read and processed by a respective group of one or more accumulator nodes at a respective server so as to reduce data traffic over the network; execute at least one aggregator node to aggregate result structures produced by the accumulator nodes; detect that one of the accumulator nodes has failed prior to completion of computation; and retry the computation of the failed accumulator node using a different accumulator node; responsive to user input received via the user interface, pause the execution of the query by the compute nodes; while the execution of the query is paused, dynamically update the user interface to output partial results of the statistical function based on a subset of the accumulator nodes that have completed computation; responsive to additional user input received via the user interface after the pause of the query, resume the execution of the query; and dynamically update the user interface to output complete results of the statistical function after completion of the execution of the query.
- Claim 8Depends on #7
The system of claim 7, wherein the user interface is a graphical user interface.
- Claim 9Depends on #8
The system of claim 8, wherein the partial results of the statistical function are displayed on the graphical user interface as a time graph.
- Claim 10Independent Claim
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: store a time-based dataset on one or more storage devices, wherein the time-based dataset is stored as a plurality of files on a plurality of servers; receive, via a user interface, a query directed to the time-based dataset, wherein the query specifies (a) a user-specified statistical function to be computed over groups of records in the time-based dataset and (b) a user-specified number and size of a plurality of time windows over which to compute the statistical function; execute the query using a plurality of compute nodes connected via a network, including to: execute a set of accumulator nodes in parallel to read respective portions of the time-based dataset in individual ones of the files and compute the statistic function over the respective portion, wherein individual ones of the accumulator nodes are launched on respective servers that have local access to different ones of the files so that each respective portion is locally read and processed by a respective group of one or more accumulator nodes at a respective server so as to reduce data traffic over the network; execute at least one aggregator node to aggregate result structures produced by the accumulator nodes; detect that one of the accumulator nodes has failed prior to completion of computation; and retry the computation of the failed accumulator node using a different accumulator node; responsive to user input received via the user interface, pause the execution of the query by the compute nodes; while the execution of the query is paused, dynamically update the user interface to output partial results of the statistical function based on a subset of the accumulator nodes that have completed computation; responsive to additional user input received via the user interface after the pause of the query, resume the execution of the query; and dynamically update the user interface to output complete results of the statistical function after completion of the execution of the query.
Technical Overview & Description
This application is a continuation of U.S. patent application Ser. No. 16/798,222, filed Feb. 21, 2020, which is hereby incorporated by reference herein in its entirety. BACKGROUND Many modern computer applications require statistical functions to be computed on time-based data. For example, some enterprise security management systems monitor a company's network by collecting and analyzing timestamped event data from the network. The events may be collected in event logs, but not necessarily in a time-sequenced order. Security management systems may implement various assessment processes to analyze the event logs and provide query interfaces that allow users to search the event logs. Event log analysis and searching may require computation of a statistical function (e.g., the count, maximum, or minimum of an event attribute) on the log records for a specific set of time windows (e.g., for each of the past seven days). These types of computations can be extremely time-consuming and notorious difficult to manage due to the large size of the event logs, in some cases requiring hours to complete. Moreover, because the log data may be stored in heterogenous ways (e.g. distributed over a number of different storage locations) and not necessarily in a time-sequenced order, tracking and managing the progress of the statistical function computations can become a significant challenge. There is a need in the field for better solutions to compute statistical functions over time-based datasets that are more scalable, manageable, and flexible. SUMMARY OF EMBODIMENTS The systems and methods as described herein may be employed in various combinations and in embodiments to implement a distributed query execution system that performs statistical operations on specified time windows over time-based datasets. In some embodiments, when a query is received specifying a statistical function to be computed over a number of time windows, the distributed query execution system automatically
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 12,792,372 B2 | Collaborative mixed-media tutorial creation | 2026 | 0 |
References Cited — Backward Prior Art (72)
Non-Patent Literature (10)
- Wenhuchen et al.,
- “
- ADatasetforAnswering Time-SensitiveQuestions
- ”
- , 35thConferenceonNeuralInformationProcessingSystems(NeurIPS2021)TrackonDatasetsandBenchmarks, Oct. 2021, pp. 1-17.
- Umar Albalawi,
- “
- Countermeasure of Statistical Inference in Database Security
- ”
- , 2018 IEEE International Conference on Big Data (Big Data), Dec. 2018, pp. 2044-2047.