Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Read mode: sincedb write for XXL files only happens at the end of the file. #195

Closed
guyboertje opened this issue Jun 6, 2018 · 0 comments
Assignees
Labels

Comments

@guyboertje
Copy link
Contributor

As the sincedb write is only triggered at the end of a large file, if LS is forced to restart, reading begins at the beginning of the file because there is no recorded position for the file.

@guyboertje guyboertje added the bug label Jun 6, 2018
@guyboertje guyboertje self-assigned this Jun 6, 2018
guyboertje pushed a commit that referenced this issue Jun 12, 2018
…#196)

* In read mode, request sincedb disk flush on each read loop iteration.
The actual write occurs at the `sincedb_write interval`.
Note: the chunk size vs the events-per-second affect how often a request
is made.
e.g. a large chunk size (1MB), lines of say 128 bytes and 256 events/s
means each iteration takes 32 seconds, and an eps of 32768 takes 250 ms.

* changelog and version bump

* make spec a tad more reliable.

* add a reference to watch so we can react to quit in the read loop

* remove immediate write and add a call to write in the discover/stat loop

Fix #195
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant