2023-08-08 20:22:09 +00:00
|
|
|
devices:
|
|
|
|
eth0:
|
|
|
|
name: eth0
|
|
|
|
network: lxdbr0
|
|
|
|
type: nic
|
|
|
|
root:
|
|
|
|
path: /
|
|
|
|
pool: virtual
|
|
|
|
type: disk
|
2023-12-11 15:40:01 +00:00
|
|
|
config:
|
|
|
|
cloud-init.user-data: |
|
|
|
|
#cloud-config
|
|
|
|
sources:
|
|
|
|
source: "ppa:ubuntu-hpc/slurm-wlm-23.02"
|
|
|
|
packages:
|
|
|
|
- slurmd
|
|
|
|
write_files:
|
|
|
|
- name: /etc/slurm/slurm.conf
|
|
|
|
permission: '0644'
|
|
|
|
owner: root:root
|
|
|
|
contents: |
|
|
|
|
ClusterName=cluster
|
|
|
|
SlurmctldHost=slurm-master
|
|
|
|
ProctrackType=proctrack/cgroup
|
|
|
|
ReturnToService=1
|
|
|
|
SlurmctldPidFile=/var/run/slurmctld.pid
|
|
|
|
SlurmctldPort=6817
|
|
|
|
SlurmdPidFile=/var/run/slurmd.pid
|
|
|
|
SlurmdPort=6818
|
|
|
|
SlurmdSpoolDir=/var/spool/slurmd
|
|
|
|
SlurmUser=slurm
|
|
|
|
StateSaveLocation=/var/spool/slurmctld
|
|
|
|
SwitchType=switch/none
|
|
|
|
TaskPlugin=task/affinity,task/cgroup
|
|
|
|
InactiveLimit=0
|
|
|
|
KillWait=30
|
|
|
|
MinJobAge=300
|
|
|
|
SlurmctldTimeout=120
|
|
|
|
SlurmdTimeout=300
|
|
|
|
Waittime=0
|
|
|
|
SchedulerType=sched/backfill
|
|
|
|
SelectType=select/cons_tres
|
|
|
|
JobAcctGatherFrequency=30
|
|
|
|
JobAcctGatherType=jobacct_gather/none
|
|
|
|
SlurmctldDebug=info
|
|
|
|
SlurmctldLogFile=/var/log/slurmctld.log
|
|
|
|
SlurmdDebug=info
|
|
|
|
SlurmdLogFile=/var/log/slurmd.log
|
|
|
|
NodeName=slurm-master,slurm-comp0[1-5] CPUs=1 State=UNKNOWN
|
|
|
|
PartitionName=debug Nodes=slurm-comp0[1-5] Default=YES MaxTime=INFINITE State=UP
|
|
|
|
|
|
|
|
runcmd:
|
|
|
|
- [ systemctl, enable, slurmd ]
|
|
|
|
- [ systemctl, start, slurmd ]
|