/ 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に文書化する必要があり
最も参考になるコメント
@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
の数です。