Nomad 1.5.6 can not share cpu cores

Hi Everyone,
I have three nomad client nodes. Each node has 8 cores cpu, I allocate 3 docker containers on one node.
Host Resource Utilization: 1cpu
1st container: 1 cpu
{ “CPU”: 1000,
“Cores”: 0,}
2nd container: 2 cpu
{ “CPU”: 2000,
“Cores”: 0,}
3rd container: 4 cpu
{ “CPU”: 4000,
“Cores”: 0,}
I use CPU instead of Cores, but I enlarge 1st container cpu from 1 cpu to 2 cpu, It show error message as following:

  • Class dev filtered 3 nodes
  • Constraint ${attr.unique.network.ip-address} = 10.X.X.X filtered 3 nodes
  • Resources exhausted on 1 node
  • Class dev exhausted on 1 node
  • Dimension cpu exhausted on 1 node

Thanks~

Hi @lizzyliao can you post the output of

nomad node status -verbose <nodeid>

Also, when you say,

I use CPU instead of Cores, but I enlarge 1st container cpu from 1 cpu to 2 cpu, It show error message as following:

do you mean you are setting the cores value or the cpu value?

(1)






(2) yes, I use ‘cpu’ values.
image