Provides scripts for building and populating a database for easy storage of Slurm job resource usage data.
- Python 3.5+
- Slurm toolkit
- MySQL/MariaDB
- jobstats
- Clone and enter repository
git clone https://github.com/nauhpc/jobstats-db.git && cd jobstats-db - Create
config.iniand fill in the corresponding values - Create database
jobstats, with tablejobs, or runBuildDatabase - Populate the database with pas slurm database with
FillDatabase
| Field | Type | Null | Key | Default | Extra |
|---|---|---|---|---|---|
| username | varchar(10) | NO | PRI | NULL | |
| account | varchar(20) | NO | PRI | NULL | |
| date | date | NO | PRI | NULL | |
| idealcpu | float | YES | NULL | ||
| memoryreq | int(11) | YES | NULL | ||
| tlimitreq | int(11) | YES | NULL | ||
| cputime | float | YES | NULL | ||
| tlimituse | int(11) | YES | NULL | ||
| memoryuse | int(11) | YES | NULL | ||
| jobsum | int(11) | NO | NULL |