New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/slurm: add slurmdbd, run daemons as user #49348
Conversation
@GrahamcOfBorg test slurm |
Success on x86_64-linux (full log) Attempted: tests.slurm Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: tests.slurm Partial log (click to expand)
|
Did you consider making use of systemd's
By using |
I am note sure if |
Uh, that's a quite ugly design-decision on behalf of |
29f0b68
to
3a5481a
Compare
* run as user 'slurm' per default instead of root * add user/group slurm to ids.nix * fix default location for the state dir of slurmctld: (/var/spool -> /var/spool/slurmctld) * Update release notes with the above changes
* New options "services.slurm.dbdserver.[enable,config]" * Add slurmdbd to test slurm.nix
Make the node and partitionname options lists. There can be more than paratition or set of nodes. Add changes to release notes
3a5481a
to
b388bee
Compare
@GrahamcOfBorg test slurm |
Success on x86_64-linux (full log) Attempted: tests.slurm Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: tests.slurm Partial log (click to expand)
|
Motivation for this change
One more step to bring Slurm to its full potential on NixOS. The major changes in this PR are to run the slurm controller as normal user (instead of root) and an extension of the module for the database daemon.
The options
nodeName
andpartitionName
are now sets of strings instead of string, which reflects that there can be more than one entry for those options.The
slurmctld
dump all its files directly/var/spool
. This has been fixed by setting the defaultStateSaveLocation
to/var/spool/slurmctld
.CC @veprbl @lsix
Things done
slurmctld
andslurmdbd
as user 'slurm' by default (new optionservices.slurm.user
).slurmdbd
(new optionsservices.slurm.dbdserver.[enable,dbdHost,extraConfig]
)slurmdbd
tonixos/tests/slurm.nix
StateSaveLocation
(new optionservices.slurm.stateSaveLocation
)nodeName
andpartitionName
sets of stringssandbox
innix.conf
on non-NixOS)nixos/tests/slurm.nix
succeedsnix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)