Facts¶
Three questions every front to nomad asks, answered once, as data:
| What it answers | Who may ask, in the Console | |
|---|---|---|
| sites | every site now (freshness, nodes, CPU, memory and GPUs in use, jobs running and waiting, storage, alerts, workstations) and its jobs over a window | anyone signed in: aggregates only |
| me | one person's work: their jobs over a window, running and waiting now, score and advice | that person |
| lab | the labs a person leads: members, their jobs taken together, the lab's workstations, storage and condo nodes | the lab's PI; staff for any lab |
| share | the share of each cluster of the labs a person leads: core-hours on the lab's own condo, the shared nodes and other labs' condos, against everyone else's and what the nodes could run; how full it kept its own condo; who waited for room while the lab ran there (1.30.0) | the lab's PI and its research assistants (others' figures resting on fewer than 3 people left out, the window to the last midnight); staff for any lab |
| course | the courses a person teaches, this term: the class together, each student as a row, when the class works | the course's instructors; staff for any course |
| busy | when each cluster, interactive server and group of workstations is busiest: the most in use at once and when, a typical week, the busiest and quietest hours (1.14.7) | anyone signed in; each workstation by name for staff only |
| node | one node over a window: its cores, load, memory, GPUs, temperatures, clock and local disk, and what happened on it (drained or down, gaps in the readings, jobs started and ended, out-of-memory kills, power events, alerts, maintenance) (1.41.0) | anyone signed in: their own jobs on it, the others counted; staff every job and whose, Slurm's reasons and nomad's alerts |
The Console serves them at /api/v1/sites, /api/v1/me and /api/v1/lab;
a dashboard widget elsewhere (an Open OnDemand page, say) or an assistant
answering questions reads the same answers, so no two of them can disagree.
On the command line:
nomad facts sites # every site, jobs over the last 30 days
nomad facts me NETID --days 90 # one person
nomad facts lab NETID # the labs NETID leads
nomad facts lab NETID --each # each member too, by NetID, and what needs attention
nomad facts sites --json # the data itself
nomad facts lab NETID --mask # no NetID, lab, machine or storage names, for sharing
nomad facts share NETID --days 90 # those labs' share of each cluster
nomad facts share --group G # one lab by its group (staff)
nomad facts course --instructor NETID # the courses NETID teaches (needs [console.courses])
nomad facts course GROUP # one course
nomad facts busy --days 90 --each # when each machine is busiest, each workstation too
nomad facts node hpc1 # hpc1's nodes, by name
nomad facts node hpc1 n012 # one node, the last 24 hours (--hours, or --from and --to)
nomad facts node hpc1 n012 --as NETID # as that person would see it
They read the hub's combined.db when there is one, else this host's own
database (--db to choose). Nothing is written.
What every answer carries¶
{
"api": "nomad.facts/1",
"kind": "sites",
"generated_at": "2026-10-11T07:00:00",
"window": {"days": 30, "since": "2026-09-11T07:00:00", "until": "2026-10-11T07:00:00"},
"notes": ["..."]
}
api changes only when a field changes meaning or goes away; new fields
can appear at any time.
Two rules hold throughout:
- Nothing measured, no number. A share that rests on no measurement is
null; "CPU used" is over the jobs whose CPU use nomad measured, and says how many those were (jobs_measured). Nothing is shown as 0 for lack of data. - Each site against its own latest reading. A site that has not reported
for two hours is
stale: its figures are what it last said, never averaged in as if current, and it is never dropped. Its nodes, GPUs and queue are judged by the node collector's own latest reading; jobs "running now" at a site that stopped reporting are listed, marked stale, and left out of the totals. - No figure that is one person's in disguise. Where the caller says so
(the Console does, for anyone but staff), a site's job figures resting on
3 people or fewer, and a lab's totals (and how many members ran jobs)
resting on fewer than 3 members besides the one asking, are left out
(
"suppressed": trueand why). The Console also gives anyone but staff fixed windows (7, 30, 90 or 365 days), so answers a day apart can't be subtracted. That stops reading one person off one answer, not combining several: two windows, two labs, or a site's total and a lab's can still come down to one person. These figures are not anonymised; what a PI may see of each student is the institution's decision.
Jobs, wherever they appear¶
The same calculation for a site, a person and a lab, over the jobs that ended in the window:
| Field | Meaning |
|---|---|
finished |
jobs that ended in the window |
outcomes |
completed, failed, timeout, out_of_memory, node_fail, cancelled, preempted, other |
ran_to_an_end |
finished, less cancelled, preempted and other |
failed_pct |
failed, timed out or out of memory, of those that ran to an end; node failures are the machine's and in neither count (the Console's Dashboard counts them as failures, of every job that ended, until it reads these facts) |
people |
how many people's jobs these are (a count, never names) |
core_hours.requested |
cores × run time asked for, all jobs |
core_hours.used_pct |
core-hours used over core-hours requested, over the jobs measured |
memory.used_pct |
memory at peak over memory requested, by memory-hours, over the jobs measured |
memory.set_aside |
peaks larger than any node at the job's site: not measurements (Slurm's jobacct_gather/linux counts shared memory once per process) |
gpus.jobs, gpus.gpu_hours_requested |
GPUs asked for; their use per job is not measured here |
wait_minutes.median, .p90 |
time from when the job could start (its eligible time, else its submission) to its start; a job array counts once, by its first task (1.53.3) |
sites¶
For each site (the hub's sync_sites, so a site whose sync fails is still
listed):
note: what the site is, when[console.machines]says (1.17.7).status:ok,staleorno_data;last_dataandage_minutes, from its newest reading in any table;sync.failingandsync.last_successon a hub (the reason stays in the hub's sync log).- For a Slurm site:
nodes(up, drained, down, not reporting, and the unavailable ones; Slurm'sreasonfor each only when asked for, since an admin's free text can name people: the Console gives it to staff),cpuandmemory(allocated_pct: what Slurm has handed out, not what jobs use),gpus(busy_pctfrom DCGM, over the GPUs it measured: nvidia-smi's "utilization" is any kernel running at all, and is not used),queue(running and waiting now) andjobsover the window. workstations: how many it collects and how many are online now.storage: each filesystem read in the last week: size, use, how fast it is filling over 30 days (least squares over daily averages of the fall in free space, which also catches a shared pool filling while this filesystem's own use stays flat) and days until full at that rate;same_aswhen another site or path reports the same size and use.alerts: conditions holding now, by severity (counts only: an alert's message can name things a viewer should not see).
me¶
person.username, jobs (as above), jobs_by_site, now (running and
waiting, by site, with whether that site is stale), and score and advice:
the same as nomad edu me and the Console's My Activity, from the same code.
lab¶
For each lab the person leads, by nomad.toml's rules ([console.labs],
[console.storage]; the same labs as nomad console roles NETID and the
Console's My Lab):
members: current members (seen in the groups collector's latest run, with an account), how many ran jobs in the window, how many the group lists without an account or no longer lists.jobsandnow: the members' jobs taken together (since 1.30.0, each member's from the day the groups collector first saw them in the group; a membership seen before nomad 1.11: all of them).workstations: the lab's machines, online or not, last seen, when they last answered (last_online), and what each is (note, from[console.machines], 1.17.7).storage: each server or export the lab has, with its size and use, and what it is (note);shares_free_withfor exports of one pool (their free space is one).-
condos(when report.toml's condo settings are given, asnomad facts laband the Console do, 1.17.9): the lab's own condos. Only confirmed ones; when a condo'smembersname groups ("group:NAME"), it is those labs' only; otherwise its owner's: the labgroup_patternnames for the owner, or the one lab they lead (an owner leading several, none named for them, needsmembersto say which). Each has the cluster, the partition, its nodes (report.toml's, else the partition's) as the cluster's latest reading has them (up, drained or down;gonewhen that reading no longer lists the node; cores, cores allocated, memory, GPUs), the totals, and of the cores on nodes that are up (cores_up) how many are allocated to jobs now (cores_allocated, guests' jobs included) and that share.stalewhen the cluster's latest reading is over 2 hours old: then the nodes are as it last reported them, and no share is given. On a hub, report.toml's clusters are its sites. -
each(withnames=True,--eachon the command line): a row per member by NetID: jobs finished in the window, core-hours held and the share used, memory used of what was asked, GPU-hours, the median wait, and jobs running and waiting now. Most core-hours first. attention(with names too, 1.17.6): what needs the PI's attention now, most pressing first, each item with who (user, or none for a machine), how many, up to three of the jobs it is about (job_id,site,submit_time), and a sentence saying it (says);attention_daysis the window it looks at. From the last 7 days, what is waiting now, and the latest storage readings:
kind |
When |
|---|---|
waiting |
a member's jobs waiting more than 24 hours (and under 60 days) for something that won't change by itself: a job it depends on that can never run, a hold (also REQUEUE_HOLD and the like), a request beyond a partition's or a per-job limit, an account or QOS that won't take it. Not limits that lift as jobs end (per user or per group), nor the cluster's own reasons (its turn, free nodes, nodes down, drained or reserved, a partition down), nor at a site that stopped reporting. One item a member, the longest wait first |
out_of_memory |
a member's jobs that ran out of memory |
timeout |
a member's jobs that hit their time limit or their --deadline |
failing |
3 or more failed jobs, at least half of a member's jobs that ran to an end (node failures aside) |
quota |
a member at 90% or more of a quota, where there are quotas |
storage |
a lab storage server or export 90% full or more (a current reading) |
data |
the lab's 3 biggest holders of data (100 GB or more each), and anyone whose data grew by 100 GB or more in the last 7 days: how much, where (server and path, with the note [console.storage] gives the server, and "the lab's" on its own storage), how much it changed, and how much the latest scans (of the last 8 days) found unchanged for a year (modified, not read). From the servers the storage_use collector reads; copies (backups, replicas) and owners the server can only number are left out. A reading more than 2 days old is said with its date, and no change is said from it, nor from readings much further apart than the window |
over_cpu |
a member whose measured jobs held 100 core-hours or more and used under 25% of them |
over_memory |
a member whose jobs used under 20% of the memory they asked for, over 3 measured jobs or more, where Slurm holds the memory a job asks for |
workstation |
a lab workstation that hasn't answered for 2 hours |
Every limit is nomad.toml's to change, [console.labs.attention] (see
configuration). Nothing else is listed, and nothing says
"all fine": an empty list is a lab where none of these checks found
anything, which may be because nothing was measured; attention_unchecked
names a check that couldn't be made (storage: the readings couldn't be
read just then). The one asking is
left out (their own jobs and data are on their Home and in
nomad facts me), and a research assistant isn't told about the lab's
leaders, as in each; staff, naming the lab, see every member.
Lab-wide figures unless names are asked for. How much a PI sees of each student is the institution's decision: the Console gives each member's row to staff and to the lab's own PI, for that lab. Without names, no row is about one member. A member's jobs count wholly toward the lab, and someone in two labs counts in both: group membership is all there is to go on.
share¶
For each lab the person leads (or is a research assistant of; --group for
one lab by its group), each cluster with node readings in the window (1.30.0):
rows: where the lab ran,own_condo(its own condos: the confirmed oneslabgives it),shared(nodes in no condo) andother_condos: the nodes, cores and GPUs there (a node no longer read: as it last said); their capacity (cores and GPUs times the hours in service, as the condo reports count them: down, drained with no job left and in maintenance are out, hours not read count as in service); the lab's core-hours and GPU-hours, its jobs and the people who ran them; everyone else's, and how many people; each a share of the capacity, and what was left idle. On a condo two labs share, the other lab's part there (partners_core_hours) and the guests' (guests_core_hours), to the lab's PI.own_condo_pct: how busy the lab kept its own condo: its core-hours there, of what the condo could run.condo_notes(on the lab, 1.30.1): where its own condo was under 25% busy while 5 or more of its jobs that could have run there (no more cores than the condo has, no GPUs where it has none) waited a median of an hour or more on another cluster or partition: the condo, how busy, and where they waited. The lab's own figures only.total: the same over every node, and the lab's share of everyone's use (lab_of_used_pct, and of GPU-hours).waits: jobs that waited 15 minutes or more for room on the cluster (Slurm's reason Resources or Priority, or none recorded; not the job's own limits, a dependency, a hold, nodes down) and stopped waiting (started, or were cancelled) in the window: each counts on the day it stopped, and its wait is measured the same in every window (its last 30 days at most); a job still waiting counts the day it stops. A later task of a job array (one whose array had a task start before it) waited for room only from when nomad saw its array wait for room, if it did: every task carries the array's submission, so an array sent five weeks ago would have counted five weeks for each task that starts today (1.53.3).others: other people's, how many and the average wait.behind_lab: those that waited while the lab's jobs ran on the nodes they could use, off the lab's own condo (its own nodes are its own): how many, their hours of waiting while the lab ran there (added up over the jobs), the cores the lab held there then on average, of how many (off its condo), and its share of the cores in use there.lab: the lab's own jobs that waited, the share of the cores in use others held then, and for how much of the waiting others held any. Times and cores are counted exactly, from the jobs' starts and ends. At the same time is not because of: Slurm's priorities and the jobs' sizes decide who starts when.trend: a day at a time up to 31 days, a week up to 120, four weeks beyond (days: the step's length; the last one may be shorter): the cluster's capacity, the lab's core-hours and everyone else's; with a condo of its own, its condo's capacity and the lab's core-hours there too. Above the condo's capacity, the lab ran more than its condo could hold.own_condos,stale(the cluster hasn't reported for 2 hours), andcoverage: what the figures couldn't count.
Nodes are as each cluster's latest reading has them (a partition that moved
during the window counts as it is now). The window starts at the midnight
days before its end. The lab's jobs are those of whoever was a member the
day the job ran (the groups collector's first sight of them in the group to
its last, or on while their cluster's latest groups run lists them; a
membership seen before nomad 1.11, always), so a student joining or leaving
moves no day already given (the lab answer counts members' jobs from the day
they joined too, since 1.30.0); and, on its own condo,
those in the condo's partition or under its Slurm account too (a job not
started yet: in its condo's partitions), as the condo reports count them.
With min_others (the Console: 3 for anyone but staff), every figure about
people outside the lab is a sum of days, and a day resting on some but fewer
than that many of them is left out of it and counted (others_left_out_days,
others_gpu_left_out_days, left_out_days, busy_left_out_days): their
core-hours on each kind of node, their GPU-hours (among those who used GPUs),
the waits that ended that day (the people who waited, those behind the lab and
those not), and the share of the cores others held while the lab's jobs
waited or ran (the people who held them). The people counted are those who
used cores, whom no lab in the answer claims, and who were never one of its
labs' people (a lab's people are named in its lab answer); counted on pieces
of the nodes every lab in the answer has in common, and the waits by which of
its labs they waited behind, so two labs' figures can't be subtracted either.
Idle is given only where no day is
left out (it would give the days left out away), and the lab's share of
everyone's use, with days left out, is at most what it says. A sum of days each
resting on none or at least min_others people rests on none or at least that
many however answers are combined: two windows, two days, a row and the trend,
two labs. (Counts of people are not sums: two windows' can differ by one, which
says someone ran in one and not the other, never what they ran.)
Guests and a partner lab on the lab's own condo are as its condo report gives
them to its owners, every day; to a research assistant, who sees the lab
without its PI's own jobs, they are like any other, and no partner and guest
split is given. The window then ends at the last midnight 2 hours have passed
since (by then the day's last jobs and readings have reached the hub; a
cluster whose readings are behind ends at the last midnight they settled,
until): an answer is the same all day. What this can't stop: job records
that reach the hub long after their day while its node readings don't (an
import of old jobs), and a membership seen again after a gap, which starts
anew. nomad facts share gives every figure up to now; --min-others
3 gives the Console's. A year on a cluster of 30 nodes takes some seconds
(its node readings of the year are read).
course¶
For each course the person teaches this term, by nomad.toml's
[console.courses] (see docs/config.md, Courses):
students: the course's people who are not faculty (listed: its group's members, and whoever used its environments this term, on two days or more); this term's (this_term: joined since the term began, or used an interactive server or a cluster since; for a course whose environment's users are mostly not in its group,by_environment: joined, or used the environment); those left out, as from earlier terms (nomad saw them join before) or not known (in the group since before nomad 1.11 recorded join dates, and not active: earlier students, or some who haven't started);used_a_server,not_yet, andopen_never_computing(had sessions open while computing was measured, and never computed: possibly stuck).interactive: hours open and computing for the class, week by week, and from when each was recorded.each_student: one row per student, busiest first: hours open in a typical week (the median over the term's complete weeks) and the range of their weeks (10th to 90th percentile), the same for hours computing over the weeks it was measured, CPU-hours, peak memory, memory kills, weeks active. This is what a caterpillar plot draws: one row per student, a dot for the typical week, a bar for the range.nomad facts courseprints it. Rows are "student 1", "student 2"... unless[console.courses] namesis true (the institution's decision).when: students on, and computing, on average at each hour of each weekday (from nomad 1.11.1's hourly totals).oom: the students' sessions the kernel killed for lack of memory.jobs: their cluster jobs, taken together.
Each course says who teaches it and why (instructors_why: added by
name, confirmed (they said so this term), only faculty member among its
people, joined its group this term, environment: used its environment
this term, active this term where its students work, those sites in
active_on; see Courses in config.md), and how many of its faculty members
were left out or said no. environments lists the environments whose users
this term are among its people (nomad 1.12.5). Asked for every course, one
nobody teaches this term is left out and listed in not_shown with the
reason. answers (from nomad.config.course_answers.load) is what faculty
members said this term.
For the Console's questions: facts.courses.questions(conn, config, netid,
answers) lists the courses that have netid as a faculty member, in its
group or a user of the environment named for it (with students this term, or already
answered): their answer and whether nomad takes them as teaching it;
facts.courses.may_answer(conn, config, netid, group) says whether they may
answer for a course. facts.teaches(conn, config, netid, answers) names the
courses a person teaches without their figures (a menu), and
facts.every_course(conn, config) every course this term, for staff to
choose from.
For whoever sets courses up: facts.courses.discover(conn, config) (what
nomad course discover prints) lists the environments people had a session
in this term (people, faculty members among them, the courses each counts
for, whether it is named like a course, the group most of its other users
are in) and the groups that are not courses with a faculty member and people
active this term (whose own group each is, the environment most of them
used), with how many courses there are and how many nobody teaches. It
names NetIDs, groups and environments.
A week before a figure was recorded is left out of it, never counted as
zero: hours open from nomad 1.11 (earlier weeks once nomad interactive
backfill has rebuilt them), computing from 1.11, hours of the week from
1.11.1. With min_students set, a course with fewer students this term shows
counts only. Unnamed rows are not anonymous to an instructor who knows the
class: in a course of three, the rows are three people.
busy¶
For each cluster, interactive server and group of workstations over the
window: the most in use at once and when, the average, a typical week (each
weekday's hour averaged over the window) and the three busiest and quietest
hours. Machines only, never a person. Workstations go by lab: a machine
[console.labs.resources] lists for a lab, or its collector tags with the
lab's group (its latest department, as for My Lab), is the lab's, in every
lab that lists or tags it; machines in no lab go by the site that collects
them. A machine read by two sites counts once. Anything nomad.toml lists as
storage (a lab's storage, [console.storage] servers and their names, the
storage collector's devices) is left out, even when the workstation
collector reads it too; names match in any case and without their domain
(a NAS another site collects needs its [console.storage] entry on the
hub). Machines and labs are listed by
name (each, label), and both can be named for people, so the Console
shows a lab to staff and to its own PI only, and --mask numbers them.
CPUs are as each system counts them: Slurm's CPUs on the clusters, and a
hardware thread on servers and workstations (two per core with
hyperthreading).
- Clusters (node_state): cores allocated (CPUAlloc) of the cores of the
nodes in service. A node down, not responding, failing, in maintenance, or
drained with nothing running is out of service: left out of the totals and
counted apart (
nodes_out: on average and at most). - Load (CPULoad): each node's counts up to its cores, for the most at
once as for the average. Load counts threads ready to run as well as
running, and processes waiting on storage, so a node whose storage stalls
can read far above its cores;
over_cores_pctandover_cores_readingssay how often a node read above its cores. Where jobs are held to their cores (task/cgroup), that means jobs started more threads than cores they asked for, or were waiting on storage. Load is not cores in use. - Memory allocated (AllocMem), or
"tracked": falsewhere Slurm doesn't count memory (SelectTypeParameters without_Memory), never 0%. - Memory held: on the nodes running jobs, each node's memory less what
Slurm reports free, as a share of the memory of all the nodes in service.
Slurm's free memory is the kernel's free memory (MemFree), which counts
the file cache as used, so this is the most the jobs could have used: jobs
used this much or less. Nodes running nothing count as none (whatever they
hold is cache, or left behind, not a job's). A free figure of 0 (Slurm's
FreeMem=N/A, from a node that hasn't reported) is not counted. - A cluster whose every reading in the window had every node out of
service has no figures; it is listed in
clusters_all_outinstead. - Readings that aren't numbers (text in a number column) are not counted.
- Interactive servers (interactive_hourly): people with a session open (the most in an hour, and the hour's average), people computing, the memory their sessions held, and the machine's own busy cores (mpstat_summary) where the collector runs on it (one server at the site).
- Workstations: the cores people's sessions kept busy, from each person's CPU counters (workstation_user_snapshot, accounts from uid 1000): everything in their user slice, logins, terminals and cron jobs; the machine's own services are not included. Memory in use is the machine's, cache left out (workstation_state). A machine is busy with a core or more in use. The group's figures add each machine's ten-minute averages (machines aren't read at the same instant). The workstation collector's own CPU percentages were never measured, and are not used. A machine whose per-person probe read only its own accounts (the collector's root login, the login screen: uid below 1000) reads 0, nobody used it; one with no per-person readings at all says its CPU is not measured.
An hour of the week is ranked busiest or quietest only with readings on two
different days or more, and nothing is ranked when every hour is the same.
A site whose last reading is more than two hours old is marked stopped. Times
are as the collectors wrote them: each site's local time.
node¶
One node over a window (the last 24 hours, or --hours, or --from and
--to; 92 days at most): the question Grafana answers with a query ("what
was this node doing on Tuesday afternoon?"), answered once, so the Console's
node timeline (Nodes, a node, Timeline; /nodes/timeline?site=&node=), a
link someone shares, nomad facts node and, later, a local AI model's tool
all say the same.
- Readings (
series): each a list of[time, value]at onestep(5 minutes up to a day, so that no more than 400 points): cores allocated and the load as shares of the node's cores; memory allocated (left out where Slurm doesn't allocate memory) and memory held, the node's memory less what Slurm reports free (the file cache counts as held); GPUs busy as DCGM measures it (nvidia-smi's "utilization" is not used), GPU memory in use and the hottest GPU; the hottest CPU or board sensor (hw_temps, else its hourly figures), with the sensors' critical temperature; the CPU clock as a share of its top speed (cpu_clock: throttling shows here); the fullest local disk (node_disks). Averaged within a step; temperatures and disks: the highest. While the node is drained (with nothing running) or down there are no figures for it: the time shows as out of service, not as an idle node. - What happened (
events, eachat, anduntilfor a span):state(drained, draining, down, back in service; Slurm's reason for staff),gap(no node reading for three usual intervals, 20 minutes at least),job(started, ended and how),oom(the kernel ended a process for want of memory),power(a power supply's IPMI event),alert(nomad's alerts about the node, staff only: their text can name people),maintenance(a declared window for its site; who declared it, staff only). - Who sees whose jobs: staff every job on the node, with whose; anyone
else their own, the others counted (
jobs.others), and how a job ended (failed, ran out of time or memory) only for their own. An out-of-memory kill names the process only to staff and to its owner. summary: the same in sentences, as the command prints them.
Using the functions¶
from nomad import facts
conn = facts.open_readonly("~/.local/share/nomad/combined.db")
facts.sites(conn, days=30, config=config)
facts.person(conn, "jdoe", days=30, config=config, db_path=path) # db_path: score and advice
facts.labs(conn, config, "pi1", days=30, min_others=3) # what a PI is given
facts.labs(conn, config, groups=["pi1$"]) # staff, by group
facts.sites(conn, reasons=True) # staff: node reasons
facts.node(conn, "hpc1", "n012", since, until, staff=True) # one node over a window
facts.node(conn, "hpc1", "n012", since, until, user="jdoe") # as jdoe would see it
facts.busy(conn, days=30, names=False) # machines numbered, not named
The functions decide nothing about who may ask: the caller does.