I am trying to create Dockerfile
for MongoDB in memory based on the official repo at https://hub.docker.com/_/mongo/ .
In dockerfile-entrypoint.sh
I came across:
numa='numactl --interleave=all'
if $numa true &> /dev/null; then
set -- $numa "$@"
fi
This basically adds numactl --interleave=all
to the original docker command when it numactl
exists.
But I really do not understand this NUMA policy. Could you explain what NUMA means and what it means --interleave=all
?
And why should we use it to instantiate MongoDB?
source
share