Refacto slurm configuration into compute/control

This commit is contained in:
Rodrigo Arias 2023-04-27 16:27:04 +02:00
parent 44fcb97ec7
commit 141d77e2b6
6 changed files with 13 additions and 22 deletions

View File

@ -6,6 +6,7 @@
./fs.nix
./hw.nix
./net.nix
./slurm.nix
./ssh.nix
./users.nix
];

View File

@ -1,10 +1,7 @@
{ config, pkgs, ... }:
{
imports = [
../common/main.nix
./slurm.nix
];
imports = [ ../common/main.nix ];
# Select the this using the ID to avoid mismatches
boot.loader.grub.device = "/dev/disk/by-id/wwn-0x55cd2e414d53566c";

View File

@ -7,7 +7,7 @@
./gitlab-runner.nix
./monitoring.nix
./nfs.nix
./slurm.nix
./slurm-daemon.nix
];
# Select the this using the ID to avoid mismatches

10
xeon07/slurm-daemon.nix Normal file
View File

@ -0,0 +1,10 @@
{ ... }:
{
services.slurm = {
server.enable = true;
partitionName = [
"xeon Nodes=xeon[01-02,07] Default=YES MaxTime=INFINITE State=UP"
];
};
}

View File

@ -1,17 +0,0 @@
{ ... }:
{
services.slurm = {
client.enable = true;
server.enable = true;
controlMachine = "xeon07";
clusterName = "owl";
nodeName = [
"xeon[01-02,07] Sockets=2 CoresPerSocket=14 ThreadsPerCore=2 Feature=xeon"
];
partitionName = [
"xeon Nodes=xeon[01-02,07] Default=YES MaxTime=INFINITE State=UP"
];
};
}