This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ClusterName=cinekCluster | |
ControlMachine=aws-com01 | |
SlurmUser=slurm | |
SlurmctldPort=6817 | |
SlurmdPort=6818 | |
AuthType=auth/munge | |
StateSaveLocation=/var/spool/slurm/ctld | |
SlurmdSpoolDir=/var/spool/slurm/d | |
SwitchType=switch/none | |
MpiDefault=none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export AWS_ACCESS_KEY_ID="XXXX" | |
export AWS_SECRET_ACCESS_KEY="XXXXXXXXX" | |
exec &> >( logger -t slurm_resume ) | |
TMPFILE=$(mktemp) | |
cat << END > $TMPFILE | |
#Start "user defined" user data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
startall() { | |
for prog in `$BINDIR/scontrol show daemons`; do | |
if [[ ${prog} == slurmd ]] | |
then | |
#configure ip in slurmctl | |
IPADDRESS=$(ip a s eth0 | grep "inet "| awk '{split($2,a,"/");print(a[1])}') | |
scontrol update nodename=$(hostname -s) nodeaddr=$IPADDRESS nodehostname=$(hostname -s) | |
fi |