Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-22758

In-memory Raft stores logs on heap for too long

    XMLWordPrintableJSON

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.

      1. 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).
      2. We could refuse accepting writes if 'too much memory' is used
      3. We could truncate logs more often (especially, given that even an idle partition actually constantly receives safe time sync commands)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rpuch Roman Puchkovskiy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: