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

memcached should dynamically adjust the number of worker threads

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 3.0
    • Component/s: couchbase-bucket
    • Security Level: Public
    • Labels:

      Description

      4 threads is probably not ideal for a 24 core system

      # Subject Project Status CR V
      For Gerrit Dashboard: &For+MB-7643=message:MB-7643

        Activity

        Hide
        chiyoung Chiyoung Seo added a comment -

        both memcached and ep-engine changes were merged into the master branch.

        Show
        chiyoung Chiyoung Seo added a comment - both memcached and ep-engine changes were merged into the master branch.
        Hide
        maria Maria McDuff (Inactive) added a comment -

        assigning to Pavel to assist with functional validation in addition to performance validation.

        Show
        maria Maria McDuff (Inactive) added a comment - assigning to Pavel to assist with functional validation in addition to performance validation.
        Hide
        pavelpaulau Pavel Paulau added a comment -

        Please notice that MB-10307 (mentioned above by Anil) has nothing to do with number of memcached threads.

        Show
        pavelpaulau Pavel Paulau added a comment - Please notice that MB-10307 (mentioned above by Anil) has nothing to do with number of memcached threads.
        Hide
        pavelpaulau Pavel Paulau added a comment -

        And btw, MEMCACHED_NUM_CPUS is pretty confusing variable for number of threads.

        Show
        pavelpaulau Pavel Paulau added a comment - And btw, MEMCACHED_NUM_CPUS is pretty confusing variable for number of threads .
        Hide
        trond Trond Norbye added a comment -

        The "correct" way to tune this parameter for the 3.0 series is through the configuration file passed to memcached with the -C argument, and through the "threads" setting as described in https://github.com/membase/memcached/blob/master/man/man4/memcached.json.4.txt#L17 . According to Alks comment on https://www.couchbase.com/issues/browse/MB-10330 there is a way to set this through /diag/eval (but he hasn't answerred my question if this is a public and documented interface as I've asked about in the bug report (which would invalidate the bug report)).

        Show
        trond Trond Norbye added a comment - The "correct" way to tune this parameter for the 3.0 series is through the configuration file passed to memcached with the -C argument, and through the "threads" setting as described in https://github.com/membase/memcached/blob/master/man/man4/memcached.json.4.txt#L17 . According to Alks comment on https://www.couchbase.com/issues/browse/MB-10330 there is a way to set this through /diag/eval (but he hasn't answerred my question if this is a public and documented interface as I've asked about in the bug report (which would invalidate the bug report)).

          People

          • Assignee:
            pavelpaulau Pavel Paulau
            Reporter:
            trond Trond Norbye
          • Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes