-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wal: reduce in-use bytes in scenarios with many (and possibly large) …
…writes (#562) * wal: remove reference to logRequest when popping from slice This allows the GC to collect logRequests that are not in use. * wal: size batches according to segment size and track WAL queue Previously, we weren't controlling the total size of WAL entries written at once to the WAL. The underlying WAL does not rotate a file until after a batch is written, so could allocate a lot (we've seen >GB in production) for the commit buffer. This commit should alleviate in-use bytes for cases where lots of [large] entries are written.
- Loading branch information
Showing
1 changed file
with
34 additions
and
4 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