[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Directing jobs to certain nodes.



Really to be safe you should do a two-way thing and that is what I told Paul to do
(and it's working)

On the execution nodes:
ISDesNODE=TRUE
STARTD_ATTRS=ISDesNODE, $(STARTD_ATTRS)
START= (JOBCLASS=="DES" && $START)

On the job submit file--this is a grid universe condor-c type submit

+JOBCLASS="DES"
+RemoteRequirements="ISDESNODE=="TRUE"

This is a two-way match.. the job will only run on the node that it wants
and the node will only run jobs that have the field in their classad.
If you want to be more tricky you can get a flag from the GID of the job
in question rather than just letting anyone claim to be JOBCLASS=DES.

Steve Timm


________________________________________
From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of Brian Candler <b.candler@xxxxxxxxx>
Sent: Tuesday, December 22, 2015 3:30 AM
To: Paul E Tader; HTCondor-Users Mail List
Subject: Re: [HTCondor-users] Directing jobs to certain nodes.

On 21/12/2015 21:55, Paul E Tader wrote:
> Using your input and co-worker Steve T., we pieced together a configuration that we believe will work. We’re waiting for the single reconfigured node to drain first before knowing for sure.
Here's the config we have which works:

(1) On the execution nodes in condor_config.local

sm_pool = "dar"
STARTD_ATTRS = SM_POOL, $(STARTD_EXPRS)

(2) In the job submit file

Requirements = ( sm_pool == "dar" )

That's it. The job only runs on those hosts.

Regards,

Brian.


_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/