Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adapter: Limit the number of stored queries in QSC
This is a temporary measure in order to limit the memory usage of the query status cache by changing the persistent handle (which still isn't actually persistent yet, but will be) to use an LRUCache as its underlying store with a limit of 100_000. The id_to_status map is able to "remember" the query status for more than this number of queries, but we will only keep the full query for 100_000 queries. The main goal of this is to remove this as a variable in our locust testing before the fully persistent refactor can be finished. Change-Id: I9d39590c3e797db4c0ad40244ad47fce32cb0e51 Reviewed-on: https://gerrit.readyset.name/c/readyset/+/6178 Reviewed-by: Jason Brown <jason.b@readyset.io> Tested-by: Buildkite CI
- Loading branch information
1 parent
2a565b3
commit 456eb17
Showing
3 changed files
with
89 additions
and
91 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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