-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SQLITE Contention: Add retries and enable WAL mode (#355)
* Using SQLITE's busy timeout didn't fix the issue with busy errors preventing sessions from being updated and learning from occuring. * Enabling WAL mode seems to have made a huge difference * WAL uses a separate file to log edits and allows concurrent reads and writes * Add logic at the application layer to retry the updates. * Use an atomic counter to track the number of concurrent updates to try to confirm we don't have multiple concurrent writes. * To better track issues with Analyzer lag start tracking the timestamp of the lag processed log message. * Add a Gauge metric to report Analyzer LAG
- Loading branch information
Showing
18 changed files
with
533 additions
and
1,265 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
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
Oops, something went wrong.