55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
YAML
devices:
|
|
eth0:
|
|
name: eth0
|
|
network: lxdbr0
|
|
type: nic
|
|
root:
|
|
path: /
|
|
pool: virtual
|
|
type: disk
|
|
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 ]
|