Fine tuning of creation of cluster

This commit is contained in:
Arif Ali 2023-12-11 15:40:01 +00:00
parent 8ab2d2219b
commit 47f5d0a129
Signed by: arif
GPG Key ID: 369608FBA1353A70
2 changed files with 45 additions and 5 deletions

View File

@ -40,15 +40,10 @@ do
${lxc} launch ubuntu:jammy ${node}
sleep 5
${lxc_exec} ${node} -- add-apt-repository -y ${ppa}
${lxc_exec} ${node} -- apt -y install slurmd
${lxc} file push munge.key ${node}/etc/munge/
${lxc_exec} ${node} -- systemctl restart munge
${lxc_exec} ${node} -- systemctl enable munge
${lxc} file push slurm.conf ${node}/etc/slurm/
${lxc_exec} ${node} -- systemctl start slurmd
${lxc_exec} ${node} -- systemctl enable slurmd
done
tmp_hosts=$(mktemp)

View File

@ -7,3 +7,48 @@ devices:
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 ]