[slurm-users] Re: Print Slurm Stats on Login
You can also check https://github.com/prod-feng/slurm_tools slurm_job_perf_show.py may be helpful. I used to try to use slurm_job_perf_show_email.py to send emails to users to summarize their usage, like monthly. While some users seemed to get confused, so stopped. Best, Feng On Fri, Aug 9, 2024 at 11:13 AM Paul Edmon via slurm-users 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] Invitation for Feedback on the Slurm-Lab Project
Hi Slurm User Group, I’m excited to share a project I’ve been working on: Slurm-Lab. It’s a containerised, easy-to-deploy environment designed for learning, testing, and experimenting with Slurm. This project has allowed me and some of my friends to explore various Slurm features directly on our laptops, and I hope it can be just as useful to some of you. Highlights: • Quick Deployment: Setting up a Slurm environment is a breeze—just clone the project and pull the image to get started. • User-Friendly Interface: Interact with your sandbox environment seamlessly through JupyterHub in your browser. • Educational Focus: Explore different Slurm features with provided examples and interactive notebooks, perfect for both new and experienced users. Why I Need Your Feedback: As members of the Slurm community, your insights and experience are incredibly valuable. I’m seeking your feedback on how Slurm-Lab can better serve our community. Whether it’s feature suggestions, bug reports, or general comments. Please take a look at the project and share your thoughts. You can contribute by opening issues or submitting merge requests directly on GitLab. GitLab Repo: https://gitlab.com/CSniper/slurm-lab GitHub Mirror: https://github.com/csniper-patrick/slurm-lab Thank you for your time and for helping make Slurm-Lab a valuable resource for the entire community! Cheers, Patrick -- slurm-users mailing list -- slurm-users@lists.schedmd.com To unsubscribe send an email to slurm-users-le...@lists.schedmd.com
[slurm-users] Re: Print Slurm Stats on Login
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
[slurm-users] ResumeAfterTime - Lacking Info
G'Day all, Can anyone shed light on the parameter "Resume AfterTime" returned from the command "scontrol show node XXX" Can it be used to automatically resume a "Down"ed node? Sid -- slurm-users mailing list -- slurm-users@lists.schedmd.com To unsubscribe send an email to slurm-users-le...@lists.schedmd.com