I think this needs to be set
in k8s itself. My reading is that if you have a 64 core machine,
multiprocessing.cpu_count()
is going to give you "64" all the time. If you allocate half of those cores in k8s,
psutil.cpu_count()
will now give you "32" but they'll be split across all containers in the node, and pods can dive in as they choose