Currently the number of CPUs is taking from the Nomad cpuShares in resources block, which is defined as: "Specifies the CPU required to run this task in MHz", it doesn't translate well to vCPUs and, because cores and cpus can't both be set at the same time, disables the possibility of using specific reserved cores. This PR makes the cores calculation based on the cores field.
Currently the number of CPUs is taking from the Nomad
cpuShares
inresources
block, which is defined as: "Specifies the CPU required to run this task in MHz", it doesn't translate well to vCPUs and, because cores and cpus can't both be set at the same time, disables the possibility of using specific reserved cores. This PR makes the cores calculation based on thecores
field.