Skip to content

Commit 09295ad

Browse files
committed
slurmd nodes add themselves with appropriate config on startup
1 parent 9cde995 commit 09295ad

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

image/docker-entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ then
7777
done
7878
echo "-- slurmctld is now active ..."
7979

80+
echo "---> Adding myself to node definitions ..."
81+
SLURMD_CONFIG=$(slurmd -C | head --lines 1)
82+
echo ${SLURMD_CONFIG}
83+
scontrol create ${SLURMD_CONFIG} State=FUTURE
84+
8085
echo "---> Starting the Slurm Node Daemon (slurmd) ..."
8186
exec /usr/sbin/slurmd -D "${@:2}"
8287

slurm-cluster-chart/files/slurm.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ CommunicationParameters=NoAddrCache
5252

5353
# NODES
5454
MaxNodeCount=10
55-
NodeName=slurmd-[0-9] State=FUTURE CPUs=4
5655

5756
# PARTITIONS
5857
PartitionName=all Default=yes Nodes=ALL

0 commit comments

Comments
 (0)