File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,9 @@ The key word `permanent` allows will spin up clusters but not delete them untill
185185After a modification of the ` /opt/oci-hpc/conf/queues.conf ` , you need to run
186186` /opt/oci-hpc/bin/slurm_config.sh `
187187
188+ If you have some state that is messing with Slurm, you can make sure it is put back in the initial state with
189+ ` /opt/oci-hpc/bin/slurm_config.sh --initial `
190+
188191To turn on autoscaling:
189192Uncomment the line in ` crontab -e ` :
190193```
Original file line number Diff line number Diff line change 22#
33# Regenerate Slurm Config
44#
5+ # Add --initial as argument if you need to restart slurm from scratch (Removes the current topology file)
56
67
78scripts=` realpath $0 `
@@ -12,7 +13,12 @@ playbooks_path=$folder/../playbooks/
1213
1314if [[ ` cat $conf_folder /queues.conf | grep instance_keyword | uniq -c -d | wc -l ` == 0 ]];
1415then
16+ if [ ${@: -1} == " --INITIAL" or ${@: -1} == " --initial" or ${@: -1} == " -INITIAL" or ${@: -1} == " -initial" ]
17+ then
18+ sudo rm /etc/slurm/topology.conf
19+ sudo /usr/sbin/slurmctld -c
20+ fi
1521 ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook $playbooks_path /slurm_config.yml
16- else
22+ else
1723 echo " There are some duplicates instance_keyword lines, please make them unique"
1824fi
You can’t perform that action at this time.
0 commit comments