Discussion:
Storing the job submission script in the accounting database
Antony Cleave
2014-08-21 17:19:35 UTC
Permalink
Is it possible to store the job submission script and the environment
variables passed to it in the account database or log this data
automatically to /path/to/spylog/<SLURM_JOB_ID>.log files in SLURM?

I'm interested in analysing what the cluster is used for over time and
this would be a good start in working out what is really being submitted.

Thanks

Antony
Marcin Stolarek
2014-08-21 18:18:34 UTC
Permalink
Post by Antony Cleave
Is it possible to store the job submission script and the environment
variables passed to it in the account database or log this data
automatically to /path/to/spylog/<SLURM_JOB_ID>.log files in SLURM?
I'm interested in analysing what the cluster is used for over time and
this would be a good start in working out what is really being submitted.
You can slurmctld prologue, we use this and put every job script into mysql.
Cheers,
Marcin
Post by Antony Cleave
Thanks
Antony
Antony Cleave
2014-08-22 08:38:32 UTC
Permalink
This is great news, the final part of the puzzle is how do you access
the text of the job script? I'd assume that there is an environment
variable with the script in it but I can't find it in the prolog guide.
Getting it into mysql won't be a problem

Cheers

Antony
Re: [slurm-dev] Storing the job submission script in the accounting
database
W dniu czwartek, 21 sierpnia 2014 Antony Cleave
Is it possible to store the job submission script and the
environment variables passed to it in the account database or log
this data automatically to /path/to/spylog/<SLURM_JOB_ID>.log
files in SLURM?
I'm interested in analysing what the cluster is used for over time
and this would be a good start in working out what is really being
submitted.
You can slurmctld prologue, we use this and put every job script into mysql.
Cheers,
Marcin
Thanks
Antony
Marcin Stolarek
2014-08-22 08:46:29 UTC
Permalink
This is great news, the final part of the puzzle is how do you access the
text of the job script? I'd assume that there is an environment variable
with the script in it but I can't find it in the prolog guide. Getting it
into mysql won't be a problem
Cheers
Antony
this
SCRIPT=$(base64 -w0 /var/spool/slurm/job.$JOBID/script)
ENVIRONMENT=$(base64 -w0 /var/spool/slurm/job.$JOBID/environment)
is part of our script:

the exec location may depend on your configuration - check
StateSaveLocation in your slurm.conf.


You may be also interested in using slurmmon whitespace's, you can find
slurmmon project on github.

cheers,
marcin
Post by Antony Cleave
Is it possible to store the job submission script and the environment
variables passed to it in the account database or log this data
automatically to /path/to/spylog/<SLURM_JOB_ID>.log files in SLURM?
I'm interested in analysing what the cluster is used for over time and
this would be a good start in working out what is really being submitted.
You can slurmctld prologue, we use this and put every job script into mysql.
Cheers,
Marcin
Post by Antony Cleave
Thanks
Antony
Antony Cleave
2014-08-22 08:51:37 UTC
Permalink
Thanks Marcin that is perfect

I'll look into slurmmon too!

Antony
Re: [slurm-dev] Re: Storing the job submission script in the
accounting database
This is great news, the final part of the puzzle is how do you
access the text of the job script? I'd assume that there is an
environment variable with the script in it but I can't find it in
the prolog guide. Getting it into mysql won't be a problem
Cheers
Antony
this
SCRIPT=$(base64 -w0 /var/spool/slurm/job.$JOBID/script)
ENVIRONMENT=$(base64 -w0 /var/spool/slurm/job.$JOBID/environment)
the exec location may depend on your configuration - check
StateSaveLocation in your slurm.conf.
You may be also interested in using slurmmon whitespace's, you can
find slurmmon project on github.
cheers,
marcin
W dniu czwartek, 21 sierpnia 2014 Antony Cleave
Is it possible to store the job submission script and the
environment variables passed to it in the account database
or log this data automatically to
/path/to/spylog/<SLURM_JOB_ID>.log files in SLURM?
I'm interested in analysing what the cluster is used for over
time and this would be a good start in working out what is
really being submitted.
You can slurmctld prologue, we use this and put every job script into mysql.
Cheers,
Marcin
Thanks
Antony
Continue reading on narkive:
Search results for 'Storing the job submission script in the accounting database' (Questions and Answers)
5
replies
Fast access Internet company?
started 2006-12-01 14:48:52 UTC
internet
Loading...