#
# Example slurm.conf file. Please run configurator.html
# (in doc/html) to build a configuration file customized
# for your environment.
#
#
# slurm.conf file generated by configurator.html.
#
# See the slurm.conf man page for more information.
#
ClusterName=Beastie
# Short hostname of the head node
ControlMachine=head
#ControlAddr=
#BackupController=
#BackupAddr=
#
SlurmUser=slurm
#SlurmdUser=root
SlurmctldPort=6817
SlurmdPort=6818
AuthType=auth/munge
#JobCredentialPrivateKey=
#JobCredentialPublicCertificate=
StateSaveLocation=/var/run/slurm
SlurmdSpoolDir=/var/spool/slurmd
SwitchType=switch/none
MpiDefault=none
SlurmctldPidFile=/var/run/slurm/slurmctld.pid
SlurmdPidFile=/var/run/slurm/slurmd.pid
ProctrackType=proctrack/pgid
#PluginDir=
#FirstJobId=
ReturnToService=0
#MaxJobCount=
#PlugStackConfig=
#PropagatePrioProcess=
PropagateResourceLimits=NONE
#PropagateResourceLimitsExcept=
#Prolog=
#Epilog=
#SrunProlog=
#SrunEpilog=
#TaskProlog=
#TaskEpilog=
TaskPlugin=task/affinity
TaskPluginParam=cores
# For debugging: TaskPluginParam=cores,verbose
#TrackWCKey=no
#TreeWidth=50
#TmpFS=
#UsePAM=
#
# TIMERS
SlurmctldTimeout=300
SlurmdTimeout=300
InactiveLimit=0
MinJobAge=300
KillWait=30
Waittime=0
#
# SCHEDULING
DefMemPerCPU=256
SchedulerType=sched/backfill
#SchedulerAuth=
SelectType=select/cons_tres
SelectTypeParameters=CR_Core_Memory
#PriorityType=priority/multifactor
#PriorityDecayHalfLife=14-0
#PriorityUsageResetPeriod=14-0
#PriorityWeightFairshare=100000
#PriorityWeightAge=1000
#PriorityWeightPartition=10000
#PriorityWeightJobSize=1000
#PriorityMaxAge=1-0
#
# LOGGING
SlurmctldDebug=info
SlurmctldLogFile=/var/log/slurm/slurmctld
SlurmdDebug=info
SlurmdLogFile=/var/log/slurm/slurmd
JobCompType=jobcomp/none
#JobCompLoc=
#
# ACCOUNTING
JobAcctGatherType=jobacct_gather/none
#JobAcctGatherFrequency=30
#
AccountingStorageType=accounting_storage/filetxt
AccountingStorageLoc=/home/slurm/Accounting
AccountingStoreJobComment=YES
#AccountingStorageHost=
#AccountingStorageLoc=
#AccountingStoragePass=
#AccountingStorageUser=

############################################################################
# Enable power saving if remote IPMI power-on is available on compute nodes.
# If unavailable on some nodes, list them in SuspendExcNodes.
# SlurmUser must be a member of operator and wheel and have a valid
# login shell in order to execute shutdown on compute nodes.
# If you prefer to control power manually, see the following scripts
# from the SPCM port:
#
#       auto-ipmi-remote-power
#       cluster-power-saver
#       cluster-power-waster
#       cluster-ipmi-power-on
############################################################################

# SuspendProgram=/usr/local/etc/spcm/slurm-node-suspend
# SuspendTime should be >= SuspendTimeout + ResumeTimeout.
# SuspendTime=600
# SuspendTimeout=60
#
# ResumeProgram=/usr/local/etc/spcm/slurm-node-resume
# ResumeTimeout=300
# BatchStartTimeout=300
#
# Exempt compute nodes that double as file servers or don't have IPMI
# remote power-on enabled.
#
# SuspendExcNodes=compute-001

#
# COMPUTE NODES
# Set RealMemory < avail memory in /var/run/dmesg.boot
# Note that it may change slightly following freebsd-update
NodeName=compute-[001-002] Sockets=2 CoresPerSocket=6 RealMemory=30000 State=UNKNOWN
# NodeName=compute-256g-[001-002] Sockets=2 CoresPerSocket=6 RealMemory=250000 State=UNKNOWN
# PartitionName=debug Nodes=ALL Default=NO MaxTime=INFINITE State=UP
PartitionName=batch Nodes=compute-[001-002] Default=YES MaxTime=INFINITE State=UP
# PartitionName=256g Nodes=compute-256g-[001-002] Default=NO MaxTime=INFINITE State=UP
