generated from honeycombio/.github
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Separate stream flush and close timeouts (#162)
## Which problem is this PR solving? We currently use the same timeout for both flushing and closing streams. This is inefficient because we should flush stream regularlary to clear stock packets but not close stream prematurely. ## Short description of the changes - Separate stream timeouts into flush and close config options; flush defaults to 10 seconds and close to 90 seconds - Update assembler to use both config options when calling `FlushAndCloseStreams` func - Update ticker to run more frequently by using flush ticker / 4 ## How to verify that this has the expected result Better stream memory management by flushing stream more regularly and allowing streams to stay open longer. --------- Co-authored-by: Jamie Danielson <jamieedanielson@gmail.com>
- Loading branch information
1 parent
0d49360
commit bdf0563
Showing
2 changed files
with
16 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
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