config.py.sample 1.28 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#! /usr/bin/env python3

# DEBUGGING
#############################
DEBUG = False

# INFLUXDB
#############################
# interval of measurements in seconds
METRIC_INTERVAL = 10

# names
measurements = {
    "proc": 'pfit-uprocstat',
    "jobs": 'pfit-jobinfo',
    "node": 'pfit-nodeinfo',
    "sys": 'system',
    "cpu": 'cpu',
    "infiniband": 'infiniband',
    "beegfs": 'beegfs_clients',
    "gpu_node": 'nvidia_gpu',
    "gpu_proc": 'nvidia_proc',
}

# Security
#############################
SLURM_BIN = "" # FULL path to Slurm binaries
LSF_BIN = ""
SECUSER = True # use setuid binary and check users before fetching data
job_uid_comm = {
    "lsf": "bjobs -noheader {jobid:s} -o \"user\" | id",
    "slurm": SLURM_BIN + "sacct -j {jobid:s} -X -P -n -o \"uid\"",
}

# DB
#############################

job_info = {
    "fetch_job_info_lsf": "bjobs -o \"{:s}\" {:s}",
akhuziy's avatar
akhuziy committed
40
    "fetch_job_info_slurm": SLURM_BIN + "sacct --format=\"{:s}\" -X -P -j {:s}",
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
    "measurement_name": "pfit-jobinfo",
}

# Batch system
BATCH_SYSTEM = "SLURM"  # LSF, SLURM
MIN_DUR = 50 # minimal duration of the job for generating report in minutes

# Network
INFINIBAND = True # aggregate infiniband data

# Filesystems
BEEGFS = True # aggregate beegfs data

# GPU
GPU = True # aggregat gpu data

# PDF report
SEQ_MAX_POINTS = 500