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

cb::get_available_cpu_count ignores CPU quota

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown
    • KV 2021-Dec

    Description

      cb::get_available_cpu_count() works correctly if you assign a CPU set where the process may be scheduled on, but ignores a CPU quota (for instance if you create a docker instance with --cpu 2 it'll return the number of cores on the host).

      cb::get_available_cpu_count should also check the cpu quota (you would typically create n different docker instances without thinking about which core they should be allowed to run on).

      Attachments

        Issue Links

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

          Activity

            People

              trond Trond Norbye
              trond Trond Norbye
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty