Details

    • Technical task
    • Resolution: Fixed
    • Major
    • 6.5.0
    • 6.5.0
    • couchbase-bucket
    • None
    • KV-Engine Mad-Hatter GA

    Description

      Summary

      The number of vBuckets which can be written to (flushed) concurrently is limited to the minimum of (num_writer_threads, num_shards). We should increase the defaults so larger capacity systems can better utilise the available disk resources.

      Details

      The out-of-the-box defaults for those config parameters are num_writer_threads:4 and num_shards:4, so only 4 vBuckets can be flushed at once.

      Experiments (see MB-36657) suggest that increasing the number of concurrent vBuckets which can be flushed has a significant increase in SyncWrite throughput - as we can better utilise the available disk bandwidth (note X axis is log scale):

      To address this, we should change the default values for num_writer_threads and num_shards to scale based on capacity of the environment. The proposed new default values are:

      • num_writer_threads - Equal to the number of available CPU cores.
      • num_shards - Equals to the closest power-of-2 less than or equal to the number of available CPU cores.

      Attachments

        1. Screen Shot 2019-10-31 at 14.31.08.png
          43 kB
          Dave Rigby
        2. Screen Shot 2019-11-04 at 13.41.01.png
          60 kB
          Dave Rigby
        3. Screen Shot 2019-11-05 at 14.29.02.png
          72 kB
          Dave Rigby
        4. Screen Shot 2019-11-05 at 14.34.33.png
          64 kB
          Dave Rigby
        5. Screen Shot 2019-11-05 at 14.41.26.png
          157 kB
          Dave Rigby
        6. Screen Shot 2019-11-05 at 14.41.47.png
          175 kB
          Dave Rigby

        Issue Links

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

          Activity

            People

              drigby Dave Rigby (Inactive)
              drigby Dave Rigby (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty