Ubuntu部署slurm单节点

2023-06-06
1分钟阅读时长

安装slurm

先自行切到root用户方便配置

apt install slurm slurm-wlm -y

配置slurm

进入/etc/slurm

创建slurm.conf文件

ClusterName=cool
ControlMachine=orange
SlurmUser=root
SlurmctldPort=6817
SlurmdPort=6818
AuthType=auth/munge
StateSaveLocation=/var/spool/slurmctld
SlurmdSpoolDir=/var/spool/slurmd
SwitchType=switch/none
MpiDefault=none
SlurmctldPidFile=/var/run/slurmctld.pid
SlurmdPidFile=/var/run/slurmd.pid
ProctrackType=proctrack/pgid
SelectType=select/cons_tres
SelectTypeParameters=CR_Core_Memory
ReturnToService=0
SlurmctldTimeout=300
SlurmdTimeout=300
InactiveLimit=0
MinJobAge=300
KillWait=30
Waittime=0
SlurmctldDebug=info
SlurmctldLogFile=/var/log/slurm/slurmctld.log
SlurmdDebug=info
SlurmdLogFile=/var/log/slurm/slurmd.log
JobCompType=jobcomp/none

PartitionName=orange Nodes=orange Default=YES MaxTime=INFINITE State=UP
NodeName=orange RealMemory=1837 Sockets=2 CoresPerSocket=4  ThreadsPerCore=1 State=UNKNOWN

启动服务

systemctl start slurmctld
systemctl start slurmd

开机自启

systemctl enable slurmctld slurmd