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

Compaction/RangeScan/Other Task concurrency improvements

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • master
    • couchbase-bucket
    • None
    • 1

    Description

      Compaction uses LimitedConcurrencyTask to ensure that no more than 'n' compaction tasks can concurrently execute, more than 'n' tasks can exist and they quickly yield if 'n' are running.

      RangeScan code also limits concurrency to 'n', but takes a different approach, only 'n' tasks exist.

      Clearly there's a shared functional goal here to ensure these potentially long running tasks limit concurrency (so that there are spare threads available) - but each takes a different approach due to different perceived pros/cons/legacy.

      Clearly we can make both work in the same way and share some infrastructure and/or simplify.

      Attachments

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

        Activity

          People

            jwalker Jim Walker
            jwalker Jim Walker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty