Details
-
Bug
-
Resolution: Fixed
-
Major
-
7.1.0
-
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
For Gerrit Dashboard: MB-49632 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
165727,37 | MB-49632: Add functionality to get limits from linux cgroup | master | platform | Status: MERGED | +2 | +1 |
166407,3 | MB-49632: get_available_cpu_count should obey cpu quota | master | platform | Status: ABANDONED | -2 | +1 |
173861,2 | MB-49632: get_available_cpu_count should obey cpu quota | neo | platform | Status: MERGED | +2 | +1 |
174459,1 | Merge remote-tracking branch 'couchbase/neo' into trunk | master | platform | Status: MERGED | +2 | +1 |