[runners] Limit the number of CPUs exposed to jobs
It is recommended for runner users to compile their projects using make -j${FDO_CI_CONCURRENT:-4}
, so as to limit their load on the server.
While I am all for everyone wanting to share the runners fairly, I also think that there are many scenarios where this is error-prone as a lot of the build systems default to using all the CPU cores.
In order to prevent users from abusing the runner resources, I suggest setting some config options in the gitlab runner configuration:
-
cpus
: Number of CPUs (available in Docker 1.13 or later. A string. -
memory
: The memory limit. A string.