summaryrefslogtreecommitdiff
path: root/abbenay/hpc.nix
blob: c29d65c89fcd0fc611d03730ce815f1616b2c269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{ config, lib, pkgs, ... }:

{
  services.munge = {
    enable = true;
    password = "/tmp/munge/key";
  };

  services.slurm = {
    server.enable = true;
    client.enable = true;

    clusterName = "abbenay";


    extraConfig = ''
# slurm.conf file generated by configurator.html.
# Put this file on all nodes of your cluster.
# See the slurm.conf man page for more information.
#
SlurmctldHost=abbenay
MpiDefault=none
ReturnToService=1
# SlurmctldPidFile=/var/run/slurmctld.pid
# SlurmctldPort=6817
# SlurmdPidFile=/var/run/slurmd.pid
# SlurmdPort=6818
# SlurmdSpoolDir=/var/spool/slurmd
SwitchType=switch/none
TaskPlugin=task/affinity

# TIMERS
InactiveLimit=0
KillWait=30
MinJobAge=300
SlurmctldTimeout=120
SlurmdTimeout=300
Waittime=0

# SCHEDULING
SchedulerType=sched/backfill
SelectType=select/cons_tres

# LOGGING AND ACCOUNTING
JobAcctGatherFrequency=30
JobAcctGatherType=jobacct_gather/none
SlurmctldDebug=info
SlurmctldLogFile=/var/log/slurmctld.log
SlurmdDebug=info
SlurmdLogFile=/var/log/slurmd.log

# COMPUTE NODES
NodeName=abbenay CPUs=2 State=UNKNOWN
PartitionName=debug Nodes=ALL Default=YES MaxTime=INFINITE State=UP
'';
  };
}