[slurm-users] [External] Re: Filter slurm e-mail notification

Florian Zillner fzillner at lenovo.com
Tue Nov 26 10:46:27 UTC 2019


Hi,

I guess you could use a lua script to filter out flags you don't want. I haven't tried it with mail flags, but I'm using a script like the one referenced to enforce accounts/time limits, etc.

https://funinit.wordpress.com/2018/06/07/how-to-use-job_submit_lua-with-slurm/

Cheers,
Florian


-----Original Message-----
From: slurm-users <slurm-users-bounces at lists.schedmd.com> On Behalf Of ichebotar at univ.haifa.ac.il
Sent: Dienstag, 26. November 2019 07:56
To: Slurm User Community List <slurm-users at lists.schedmd.com>
Subject: [External] Re: [slurm-users] Filter slurm e-mail notification

I meant on the admin level, to prevent users spamming and overloading the mail server with wrong use of —mail flag. 

========================
Best Wishes,
Igor

> On 25 Nov 2019, at 19:13, Brian Andrus <toomuchit at gmail.com> wrote:
> 
> Set --mail-type appropriately.
> 
> If you want only 1 email for the array, remove the "ARRAY_TASKS" from that.
> If you don't want emails at all, set it to "NONE"
> 
> 
> --mail-type=<type>
> Notify user by email when certain event types occur. Valid type values are NONE, BEGIN, END, FAIL, REQUEUE, ALL (equivalent to BEGIN, END, FAIL, REQUEUE, and STAGE_OUT), STAGE_OUT (burst buffer stage out and teardown completed), TIME_LIMIT, TIME_LIMIT_90 (reached 90 percent of time limit), TIME_LIMIT_80 (reached 80 percent of time limit), TIME_LIMIT_50 (reached 50 percent of time limit) and ARRAY_TASKS (send emails for each array task). Multiple type values may be specified in a comma separated list. The user to be notified is indicated with --mail-user. Unless the ARRAY_TASKS option is specified, mail notifications on job BEGIN, END and FAIL apply to a job array as a whole rather than generating individual email messages for each task in the job array.
> 
> Brian Andrus
> 
> 
> 
> On 11/25/2019 1:48 AM, ichebotar at univ.haifa.ac.il wrote:
>> Hi,
>> 
>> I would like to ask if there is some options to configure the e-mail notification of slurm jobs? 
>> 
>> For example, how can i filter or not allow sending notifications of an array jobs? Our relay servers is getting overloaded because of thousands of notifications regarding array jobs. 
>> 
>> I would like to allow this flag only on regular jobs.
>> 
>> ========================
>> Best Wishes,
>> Igor
>> 
>> 
>> 



More information about the slurm-users mailing list