/ cc @aluzzardi @sfsmithcha
@cmingxu基于计算:
https://github.com/docker/docker/blob/v1.12.0-rc4/daemon/cluster/executor/container/container.go#L328 -L332
resources.CPUQuota = r.Limits.NanoCPUs * resources.CPUPeriod / 1e9
, NanoCPUs
定义为以CPU的1/1e9
(或10^-9
)为单位的CPU份额。
换句话说, NanoCPUs
是一个进程的nano (1/1e9) CPUs
。
这个问题应该被解决。 这应该记录在https://docs.docker.com/engine/reference/commandline/service_create/#options中(因此,此问题已由#30222取代)
最有用的评论
@cmingxu基于计算:
https://github.com/docker/docker/blob/v1.12.0-rc4/daemon/cluster/executor/container/container.go#L328 -L332
,
NanoCPUs
定义为以CPU的1/1e9
(或10^-9
)为单位的CPU份额。换句话说,
NanoCPUs
是一个进程的nano (1/1e9) CPUs
。