Thanks everybody once again and especially Paul: your job_summary script was exactly what I needed, served on a golden plate. I just had to modify/customize the date range and change the following line (I can make a PR if you want, but it's such a small change that it'd take more time to deal with the PR than just typing it)
- Timelimit = time_to_float(Timelimit.replace('UNLIMITED','365-00:00:00')) + Timelimit = time_to_float(Timelimit.replace('UNLIMITED','365-00:00:00').replace('Partition_Limit','365-00:00:00')) Cheers, Davide On Tue, Aug 27, 2024 at 1:40 PM Paul Edmon via slurm-users < slurm-users@lists.schedmd.com> wrote: > This thread when a bunch of different directions. However I ran with > Jeffrey's suggestion and wrote up a profile.d script along with other > supporting scripts to pull the data. The setup I put together is here > for the community to use as they see fit: > > https://github.com/fasrc/puppet-slurm_stats > > While this is written as a puppet module the scripts there in can be > used by anyone as its a pretty straightforward set up and the templates > have obvious places to do a find and replace. > > Naturally I'm happy to take additional merge requests. Thanks for all > the interesting conversation about this. Lots of great ideas. > > -Paul Edmon- > > On 8/9/24 12:04 PM, Jeffrey T Frey wrote: > > You'd have to do this within e.g. the system's bashrc infrastructure. > The simplest idea would be to add to e.g. /etc/profile.d/zzz-slurmstats.sh > and have some canned commands/scripts running. That does introduce load to > the system and Slurm on every login, though, and slows the startup of login > shells based on how responsive slurmctld/slurmdbd are at that moment. > > > > Another option would be to run the commands/scripts for all users on > some timed schedule — e.g. produce per-user stats every 30 minutes. So > long as the stats are publicly-visible anyway, put those summaries in a > shared file system with open read access. Name the files by uid number. > Now your /etc/profile.d script just cat's ${STATS_DIR}/$(id -u). > > > > > > > > > >> On Aug 9, 2024, at 11:11, Paul Edmon via slurm-users < > slurm-users@lists.schedmd.com> wrote: > >> > >> We are working to make our users more aware of their usage. One of the > ideas we came up with was to having some basic usage stats printed at login > (usage over past day, fairshare, job efficiency, etc). Does anyone have any > scripts or methods that they use to do this? Before baking my own I was > curious what other sites do and if they would be willing to share their > scripts and methodology. > >> > >> -Paul Edmon- > >> > >> > >> -- > >> slurm-users mailing list -- slurm-users@lists.schedmd.com > >> To unsubscribe send an email to slurm-users-le...@lists.schedmd.com > > -- > slurm-users mailing list -- slurm-users@lists.schedmd.com > To unsubscribe send an email to slurm-users-le...@lists.schedmd.com >
-- slurm-users mailing list -- slurm-users@lists.schedmd.com To unsubscribe send an email to slurm-users-le...@lists.schedmd.com