Hello everyone,
We installed NoMachine on clusters we use remotely. These clusters are handled with a scheduler called slurm. Every time a user allocate a node with slurm, its session enters a cgroup which bounds the resources the user can use. Slurm allows for example one user to use a specific number of cores, memory ,etc..
For now, unfortunately, I do not know how to tell NoMachine that it should start its processes within that cgroup that has been created for the user.
Currently, the unsatisfactory implementation we have is that we allow the user to open a NoMachine session with a
/usr/NX/bin/nxserver —userenable $SLURM_JOB_USER
as soon as it requested a session. Then the user can start the NoMachine graphical session. But, within the NoMachine session, the user can bypass the cgroup restriction that have been allocated to that user which is unfortunate.
Do you know if there is any mechanism through we could say that any processes run within the NoMachine graphical session must be placed within the cgroup of the user ?
Thank you for your help;
Jeremy.