No known key found for this signature in database
GPG Key ID: B4C3BF012D9B26BE
3 changed files with
21 additions and
3 deletions
-
docs/content/first_steps.md
-
machines/manager/ldap.nix
-
shared/slurm.nix
|
|
@ -35,10 +35,10 @@ Um sich mit der Nutzung des Clusters vertraut zu machen, können Sie einen einfa |
|
|
|
* Erstellen Sie eine Textdatei namens testjob.sh auf Ihrem Computer. |
|
|
|
* Öffnen Sie die Datei in einem Texteditor und fügen Sie den folgenden Inhalt ein: |
|
|
|
```bash |
|
|
|
#!/bin/bash |
|
|
|
#!/usr/bin/env bash |
|
|
|
#SBATCH --job-name=testjob |
|
|
|
#SBATCH --output=testjob.out |
|
|
|
#SBATCH --partition=standard |
|
|
|
#SBATCH --partition=all |
|
|
|
#SBATCH --ntasks=1 |
|
|
|
#SBATCH --time=00:10:00 |
|
|
|
|
|
|
|
|
|
@ -149,6 +149,12 @@ in |
|
|
|
systemd.services."ldap-sync" = { |
|
|
|
script = "${ldap-sync}/bin/ldap-sync"; |
|
|
|
startAt = "hourly"; |
|
|
|
|
|
|
|
# Flush caches |
|
|
|
postStop = '' |
|
|
|
${config.services.nscd.package}/bin/nscd --invalidate=group |
|
|
|
${config.services.nscd.package}/bin/nscd --invalidate=passwd |
|
|
|
''; |
|
|
|
}; |
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ |
|
|
|
|
|
@ -2,6 +2,18 @@ |
|
|
|
|
|
|
|
with lib; |
|
|
|
|
|
|
|
let |
|
|
|
nodeConfig = concatStringsSep " " (mapAttrsToList |
|
|
|
(key: value: "${key}=${toString value}") |
|
|
|
{ |
|
|
|
CPUs = 64; |
|
|
|
Boards = 1; |
|
|
|
SocketsPerBoard = 4; |
|
|
|
CoresPerSocket = 16; |
|
|
|
ThreadsPerCore = 1; |
|
|
|
}); |
|
|
|
|
|
|
|
in |
|
|
|
{ |
|
|
|
services.slurm = { |
|
|
|
clusterName = "mogli"; |
|
|
@ -9,7 +21,7 @@ with lib; |
|
|
|
controlMachine = "manager"; |
|
|
|
|
|
|
|
nodeName = map |
|
|
|
(node: "${node.config.networking.hostName} CPUs=32") |
|
|
|
(node: "${node.config.networking.hostName} ${nodeConfig}") |
|
|
|
(filter # Filter all nodes that have a tag "node" being a compute node |
|
|
|
(node: node.config.hpc.node.enable) |
|
|
|
(attrValues nodes)); |
|
|
|