Hi, You can use a wrapper to qlogin like this:
qlogin -sc SGE_QLOGIN=1 $@ and then check for that variable in JSV like this: var=$(jsv_get_param ac) if [[ $var =~ "SGE_QLOGIN=1" ]]; then ## this is a QLOGIN session ## force h_rt to 2h for example jsv_sub_add_param "l_hard" "h_rt" "02:00:00" else jsv_log_info "This is a normal job" fi; Best, On Fri, Jun 23, 2017 at 5:24 PM, Ilya <[email protected]> wrote: > Hello, > > I am running 6.2u5 with ssh transport for qlogin (not tight integration) > and users are abusing this service: run jobs for days, abandon their > sessions that stay opened forever, etc. So I want to implement mandatory > time limits for all interactive jobs and, perhaps, limit the number of > interactive sessions available to any user. > > I was thinking about limiting time one of the two ways: either set h_rt > via JSV (server side) or by forcing all interactive jobs to a dedicated > queue with time limit. However, there seem to be issues with both > approaches. > > There seems to be no way to reliably identify interactive job in JSV: > - The only telling attribute is jobname, i.e., QLOGIN or QRLOGIN. However > some users rename their interactive jobs, so this method will fails. > > _______________________________________________ > users mailing list > [email protected] > https://gridengine.org/mailman/listinfo/users >
_______________________________________________ users mailing list [email protected] https://gridengine.org/mailman/listinfo/users
