Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Raft groups for volatile partitions store Raft logs in memory. Currently, it's stored on heap. They are kept until log gets truncated, which does not seem to happen too often. We need to do something to reclaim the memory.
- We could restrict in-memory budget and make logs spill on disk when the budget is exceeded. To do this, we could switch from the default 'unlimited budget, no spilling' to a different strategy. Maybe, a strategy looking at an overall size of entries kept in memory could be used (needs to be implemented).
- We could refuse accepting writes if 'too much memory' is used
- We could truncate logs more often (especially, given that even an idle partition actually constantly receives safe time sync commands)
Attachments
Issue Links
- is related to
-
IGNITE-22331 Storage aimem throws "Failed to commit the transaction." on creation of 1000 tables
- Resolved