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).