Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-3411

Pre-allocated, Recycled Commitlog Segment Files

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.1.0
    • None

    Description

      An approach for improving commitlog performance is to pre-allocate the full 128MB segment files and reuse them once all the mutations have been flushed. Pre-allocation allows writes to be performed without modifying the file size metadata, and should (in theory) allow the filesystem to allocate a contiguous block of space for the file. Recycling the segment files prevents the overhead of pre-allocation from impacting overall performance.

      Attachments

        1. 001-pre-allocated-recycled-commitlog-segment-files-CASSANDRA-3411.patch
          33 kB
          Rick Branson
        2. 3411-cleaned.txt
          29 kB
          Jonathan Ellis
        3. 003-pre-allocated-recycled-commitlog-segment-files-CASSANDRA-3411.patch
          34 kB
          Rick Branson
        4. 004-pre-allocated-recycled-commitlog-segment-files-CASSANDRA-3411.patch
          34 kB
          Rick Branson
        5. 3411-v5.txt
          35 kB
          Jonathan Ellis
        6. 006-pre-allocated-recycled-commitlog-segment-files-CASSANDRA-3411.patch
          40 kB
          Rick Branson
        7. 3411-v6-retry.txt
          49 kB
          Rick Branson
        8. 3411-v7.txt
          56 kB
          Jonathan Ellis
        9. 3411-v8.txt
          58 kB
          Jonathan Ellis

        Activity

          People

            rbranson Rick Branson
            rbranson Rick Branson
            Rick Branson
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: