[slurm-users] Accounting core-hours usages
Sushil Mishra
sushilbioinfo at gmail.com
Mon Oct 10 15:08:21 UTC 2022
Many thanks! I added " AccountingStorageEnforce=limits" in slurm.conf. See
below that configuration:
##################### slurm.conf ########################3
ClusterName=localcluster
SlurmctldHost=gag
MpiDefault=none
#ProctrackType=proctrack/linuxproc
ProctrackType=proctrack/cgroup
ReturnToService=2
SlurmctldPidFile=/var/run/slurmctld.pid
SlurmctldPort=6817
SlurmdPidFile=/var/run/slurmd.pid
SlurmdPort=6818
SlurmdSpoolDir=/var/lib/slurm-llnl/slurmd
SlurmUser=slurm
StateSaveLocation=/var/lib/slurm-llnl/slurmctld
SwitchType=switch/none
#TaskPlugin=task/none
TaskPlugin=task/cgroup
#
GresTypes=gpu
#SlurmdDebug=debug2
# TIMERS
InactiveLimit=0
KillWait=30
MinJobAge=300
SlurmctldTimeout=120
SlurmdTimeout=300
Waittime=0
# SCHEDULING
SchedulerType=sched/backfill
SelectType=select/cons_tres
SelectTypeParameters=CR_Core
#AccountingStorageTRES=gres/gpu
#
## added by SM for enabling DBD ##
AccountingStorageEnforce=limits
#AccountingStoragePort=
AccountingStorageType=accounting_storage/none
JobCompType=jobcomp/none
JobAcctGatherFrequency=30
JobAcctGatherType=jobacct_gather/none
SlurmctldDebug=info
SlurmctldLogFile=/var/log/slurm-llnl/slurmctld.log
SlurmdDebug=info
SlurmdLogFile=/var/log/slurm-llnl/slurmd.log
#
# COMPUTE NODES
NodeName=gag Procs=96 CoresPerSocket=24 Sockets=2 ThreadsPerCore=2
Gres=gpu:8
#NodeName=mannose NodeAddr=130.74.2.86 CPUs=1 State=UNKNOWN
# Partitions list
PartitionName=LocalQ Nodes=ALL Default=YES State=UP
#PartitionName=gpu_short MaxCPUsPerNode=32 DefMemPerNode=65556
DefCpuPerGPU=8 DefMemPerGPU=65556 MaxMemPerNode=532000 MaxTime=01-00:00:00
State=UP Nodes=localhost Default=YES
#################### /etc/slurm-llnl/slurmdbd.conf ###########
#
# Example slurmdbd.conf file.
#
# See the slurmdbd.conf man page for more information.
#
# Archive info
#ArchiveJobs=yes
#ArchiveDir="/tmp"
#ArchiveSteps=yes
#ArchiveScript=
#JobPurge=12
#StepPurge=1
#
# Authentication info
AuthType=auth/munge
#AuthInfo=/var/run/munge/munge.socket.2
#
# slurmDBD info
DbdAddr=localhost
DbdHost=localhost
#DbdPort=7031
SlurmUser=slurm
#MessageTimeout=300
DebugLevel=verbose
#DefaultQOS=normal,standby
LogFile=/var/log/slurm/slurmdbd.log
PidFile=/var/run/slurmdbd.pid
#PluginDir=/usr/lib/slurm
#PrivateData=accounts,users,usage,jobs
#TrackWCKey=yes
#
# Database info
StorageType=accounting_storage/mysql
#StorageHost=localhost
#StoragePort=1234
StoragePass=password
StorageUser=slurm
#StorageLoc=slurm_acct_db
On Mon, Oct 10, 2022 at 10:03 AM Sudeep Narayan Banerjee <
snbanerjee at iitgn.ac.in> wrote:
> Dear Sushil: please share the slurm.conf, if possible.
>
> Thanks & Regards,
> Sudeep Narayan Banerjee
> System Analyst | Scientist B
> Supercomputing Facility & Information System and Technology Facility
> Academic Block 5, Room 110A
> Indian Institute of Technology Gandhinagar [https://iitgn.ac.in/]
> Palaj, Gujarat 382055, INDIA
> *IITGN: Celebrating 10 years of educational excellence
> <http://sites.iitgn.ac.in/10/>*
>
>
> On Mon, Oct 10, 2022 at 8:27 PM Jörg Striewski <striewski at ismll.de> wrote:
>
>> did you enter the information slurm needs for the database in
>> slurmdbd,conf and slurm.conf ?
>>
>>
>> Mit freundlichen Grüßen / kind regards
>>
>> --
>> Jörg Striewski
>>
>> Information Systems and Machine Learning Lab (ISMLL)
>> Institute of Computer Science
>> University of Hildesheim Germany
>> post address: Universitätsplatz 1, D-31141Hildesheim, Germany
>> visitor address: Samelsonplatz 1, D-31141 Hildesheim,Germany
>> Tel.(+49) 05121 / 883-40392
>> http://www.ismll.uni-hildesheim.de
>>
>> On 10.10.22 16:38, Sushil Mishra wrote:
>> > Dear all,
>> >
>> > I am pretty new to system administration and looking for some help
>> > setup slumdb or maridb in a GPU cluster. We bought a machine but the
>> > vendor simply installed slurm and did not install any database for
>> > accounting. I tried installing MariaDB and then slurmdb as described
>> > in the manual but looks like I am missing something. I wonder if
>> > someone can help us with this off the list? I only need to keep an
>> > account of the core hours used by each user only. Is there any
>> > alternate way of keeping an account of core hour usages per user
>> > without installing DB?
>> >
>> > Best,
>> > Sushil
>> >
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20221010/706e4101/attachment-0001.htm>
More information about the slurm-users
mailing list