-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add timeout options to
summarize
(#4209)
> [!NOTE] > I did not spend much time thinking about the naming of these two options. This is bound to change with TQL2 in the Tenzir v5 release anyways, but it's better to have these capabilities now than to wait. This adds two new options to the `summarize` operator: - `timeout <duration>` specifies the maximum lifetime of a bucket from the time it was created at. - `update-timeout <duration>` specifies the maximum lifetime of a bucket from the time it was last updated. These options basically enable streaming aggregations. The `timeout` option is useful to guarantee that events are held back no more than the specified duration. The `update-timeout` is useful when operating on a stream of events where it's known that events that would be sorted into the same group arrive at near the same time.
- Loading branch information
Showing
3 changed files
with
105 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
The `summarize` operator gained two new options: `timeout` and `update-timeout`, | ||
which enable streaming aggregations. They specifiy the maximum time a bucket in | ||
the operator may exist, tracked from the arrival of the first and last event in | ||
the bucket, respectively. The `timeout` is useful to guarantee that events are | ||
held back no more than the specified duration, and the `update-timeout` is | ||
useful to finish aggregations earlier in cases where events that would be sorted | ||
into the same buckets arrive within the specified duration, allowing results to | ||
be seen earlier. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters