Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-48414

Aggressive file count compaction in seqIndex for sequential write workload results in higher write amplification

    XMLWordPrintable

Details

    • 1
    • Yes
    • Magma May 2022

    Description

      At the very high load of 10TB, the total number of files are already quire large in number. We try to maintain the files count per level and per kvstore to 300. In order to do that we end up compacting the sstables into larger ones and during this process we get an opportunity to deduplicate the data which is essentially actual compaction process although the overall fragmentation is much below the configured value.

      Here is a load of 5B create -> 5B upsert -> 5B create -> 5B upsert

      As we can see in the image fragmentation never hit 50% throughout. there was a stage when fragmentation is at 20% which is much below 50% configured value. And as soon as we started upserting the data(last 5B items) the fragmentation started reducing which means aggressive compaction has started kicking in.

      Attach the magma stats for better analysis of this test.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rohan.suri Rohan Suri
            ritesh.agarwal Ritesh Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty