День добрый, имеется проблема (или фича) с докером, не могу разобраться самостоятельно.
Создаю несколько контейнеров из одного и того же образа, руководствуюсь документацией, в особенности этим абзацем:
For example, consider three containers, one has a cpu-share of 1024 and two others have a cpu-share setting of 512. When processes in all three containers attempt to use 100% of CPU, the first container would receive 50% of the total CPU time. If you add a fouth container with a cpu-share of 1024, the first container only gets 33% of the CPU. The remaining containers receive 16.5%, 16.5% and 33% of the CPU.
Произвожу запуск так:
docker run -ti -m 768m --cpu-shares=1024 centos:final /bin/bash
mpirun -np 4 --host root@172.17.0.24,root@172.17.0.25,root@172.17.0.26,root@172.17.0.27 /root/hpcc-1.4.3/hpcc