Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] ep custom configuration
- Date: Fri, 25 Apr 2025 09:55:44 -0500 (CDT)
- From: Todd L Miller <tlmiller@xxxxxxxxxxx>
- Subject: Re: [HTCondor-users] ep custom configuration
also the START expression won't affect any jobs that are _already
running_...
If you do something like:
MY_BUSY_EXPRESSION = <my-busy-expression>
START = <my-normal-start-expression> && (! ($(MY_BUSY_EXPRESSION))
You can then do something like (test this first, seriously):
WANT_SUSPEND = FALSE
WANT_HOLD = FALSE
KILL = TRUE
PREEMPT = $(MY_BUSY_EXPRESSION)
MAXJOBRETIREMENTTIME = 0
to kill jobs immediately after the startd notices that the node is busy.
If you use a startd cron to change the value MY_BUSY_EXPRESSION,
you can use
STARTD_CRON_<jobname>_MODE = WaitForExit
to minimize the delay between the <jobname> cron noticing that the system
is busy and the startd noticing that it's time to start kill all the jobs.
I'm pretty sure there's a knob to control how often the startd
evaluates PREEMPT, but I can't find it right now.
-- ToddM