[LU-17512] add conditional operator for 'jobid_name' Created: 07/Feb/24  Updated: 07/Feb/24

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Andreas Dilger Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: easy

Issue Links:
Related
is related to LU-14339 Add a option %H to avoid the jobid to... Resolved
is related to LU-16376 lprocfs_job_stats_log() Invalid jobid... Resolved
is related to LU-10698 Specify complex JobIDs for Lustre Resolved
is related to LU-12330 Support per-session JOBID without usi... Resolved
is related to LU-16766 Combine some kernel process names for... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

It would be useful to add a conditional operator like jobid_name=%j?%H:%e:%u to allow using jobid_var if it is set, otherwise use the short hostname.

This allows adding the hostname for interactive jobs that don't have the jobid_var environment variable set (e.g. on login nodes or commands that are run on compute nodes outside of the configured job scheduler), while also not splitting up the job stats for a single 5000-node job into 5000x separate JobIDs to track on the servers for cases where jobid_var is set.



 Comments   
Comment by Andreas Dilger [ 07/Feb/24 ]

This also has the benefit of shortening the JobID string so that more useful information can fit into the current size limits.

Generated at Sat Feb 10 03:36:02 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.