[gridengine users] SIGKILL as last resort terminate_method

Anton Löfgren anton.lofgren at ericsson.com
Tue Jan 31 10:56:36 UTC 2012


Yes, the admin user - it's called gridmgr in our installation. 

I want to terminate the jobs in a special/controlled way if possible. As far as I've been able to deduce, the terminate method has been run under the admin user account while the actual job has been run under the submitting user's account. I'll try to verify that. 

/Anton

-----Original Message-----
From: Reuti [mailto:reuti at staff.uni-marburg.de] 
Sent: den 31 januari 2012 11:09
To: Anton Löfgren
Cc: users at gridengine.org
Subject: Re: [gridengine users] SIGKILL as last resort terminate_method

Hi,

Am 31.01.2012 um 09:09 schrieb Anton Löfgren:

> I've been working on a terminate_method script to do nice takedown of jobs for a queue.

You want to drain the queue, or only terminate them in a special way? The terminate method is run under the user account, and hence he can kill his own job.


> However, I now want to send SIGKILL to the job PID if none of my attempts at gracefully terminating the job have succeeded. Much like the default setting for terminate_method.
>  
> What I can't figure out is how I would go about to allow the "Grid Engine user"

You mean the admin user(s) of SGE? Some create a special account like "sgeadmin" and group "gridware".

-- Reuti


> (what do you call this kind of user, anyway?) send signals to my jobs. To clarify, I'm the owner of the job but this GE user is executing the script defined in terminate_method.
>  
> I'm on Sun Grid Engine 6.2.
>  
> Any hints or insight on how this works by default would be much appreciated.
>  
> Regards,
> Anton
>  
> _______________________________________________
> users mailing list
> users at gridengine.org
> https://gridengine.org/mailman/listinfo/users




More information about the users mailing list