Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] Run on a specific hours and machines
- Date: Fri, 27 Dec 2013 12:53:09 -0600
- From: Todd Tannenbaum <tannenba@xxxxxxxxxxx>
- Subject: Re: [HTCondor-users] Run on a specific hours and machines
On 12/27/2013 11:33 AM, Ben Cotton wrote:
On Fri, Dec 27, 2013 at 12:29 AM, Dennis Zheleznyak
<dennis@xxxxxxxxxxxxx> wrote:
1. Run the jobs on the listed machines by order.
If you want ordering, a DAG is probably the way to go. You can define
each job as a child of the previous, and each job would have the
requirements set to a particular machine.
If you need strict ordering, i.e. job B must not start running until job
A has completed, then indeed you want to use condor_submit_dag as Ben
suggests.
However, if you just want to tell HTCondor an order in which to start
running your jobs as machines become available (note that the order in
which HTCondor starts jobs is not the same as only starting a job after
a given job completes), you can simply specify a job priority in your
submit file like so
executable = foo
priority = 5
queue
Job priority can also be adjusted after the job is submitted via the
condor_prio command line tool.
Job priority can be any integer, with 0 being the default. Jobs with
higher numerical priority will run before jobs with lower numerical
priority. Note that this priority is on a per user basis. One user with
many jobs may use this command to order his/her own jobs, and this
will have no effect on whether or not these jobs will run ahead of
another user's jobs. If you want to prioritize jobs submitted by
different users, you'll want to use the condor_userprio command.
2. While all the computes nodes don't have the permission to submit jobs,
what do I edit and what do I write to allow the jobs to run only after 9 pm
and on the weekends.
If you want *all* jobs to only run during those periods (and assuming
jobs should stop at 8am), you could define something like this on your
compute nodes:
IsWeekend = (ClockDay == 0 || ClockDay == 6)
AfterHours = (ClockMin < 480 || ClockMin >= 1260)
START = $(IsWeekend) || $(AfterHours)
See http://research.cs.wisc.edu/htcondor/manual/latest/3_5Policy_Configuration.html
for more information.
Specifically, see HTCondor Manual section 3.5.9.3 "Time of Day Policies" at
http://goo.gl/6zBQ68
regards,
Todd