CLIP-HPC / SlurmCommander

Slurm TUI
MIT License
60 stars 6 forks source link

RFE: allow filtering per partition in Cluster tab #8

Closed kcgthb closed 1 year ago

kcgthb commented 1 year ago

A useful addition to the "Cluster" view would be the possibility to filter by partition.

pja237 commented 1 year ago

Ok, that's a "tricky" one. The way filtering is done is by concatenating strings from selected columns and then running one regexp across this big string. That way we get away with some nice gimmicks using very little code, like: ability to write multi-column filters like jobname_re.*username_re.*(PEND|RUN)

The challenge with partitions filtering, at least on our site, and that's the reason they're not included in the filter string is that we have single letter partition names (c,g,m), which doesn't work that well with the logic above (but we do have partition letter in the node naming schema, e.g. clip-[gmc], so we get away with partition filtering) :laughing: I'll have to think a bit about how to tackle this, any ideas/proposals how to solve the partition filtering to the user in this situation?

pja237 commented 1 year ago

Done. Single letter partitions can be filtered out with the following form: \.m\..