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

Re: [Condor-users] using submit node in RANK expression



Matt Hope wrote:
On 1/12/06, Anton Kucherov <anton-k@xxxxxxxxxx> wrote:

Hi,

There is a way. In part 3 of condor_config there is a part called Rank.
There you should remove the # and write Owner == "MachinesName".
You could also change it to rank other machines higher than certain
machines.
For example:
RANK                    = (Owner == "coltrane")
Or:
RANK = (Owner == "coltrane") + (Owner == "tyner") \
                + ((Owner == "garrison") * 10) + (Owner == "jones")
This means that garrison will have higher ranking then coltrane, tyner
and jones, and they will have higher ranking then the others(The example
is taken from the condor_config itself. It's actually very
clear-written).
After you do the change you need to run condor_reconfig.


This will only affect jobs from specific people (not from a specific
machine as requested) so unless you enforce this on the submission end
(submitssions on this machine all come from specific user who has no
access to the other schedd's in the pool).

The schedd machine name of the job in question is technically
available but I can't remember if it's use within the startd Rank
statement will work (this should be a feature request if it doesn't),
condor_q -l does not supply it directly as a name value pair on the
job (at least on 6.6 - not sure on 6.7).

If not in windows the NTDomain *is* included (do condor_q  <job id> -l
 to see all the attributes you have at your disposal, perhaps some
unix related attribute can be bent to your purpose) so you could be
tricky on this.

Matt

_______________________________________________
Condor-users mailing list
Condor-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/condor-users



Matt and Anton,

Thanks for the suggestions.  You reminded me of the subsystem expressions,

http://www.cs.wisc.edu/condor/manual/v6.7/3_3Configuration.html#param:SubsysExprs

including the one that's actually documented in the condor_config:


  ##  If you want condor_submit to automatically append expressions to
  ##  the job ClassAds it creates, you can uncomment and define the
  ##  SUBMIT_EXPRS setting.  It works just like the STARTD_EXPRS
  ##  described above with respect to ClassAd vs. config file syntax,
  ##  strings, etc.  One common use would be to have the full hostname
  ##  of the machine where a job was submitted placed in the job
  ##  ClassAd.  You would do this by uncommenting the following lines:
  #MACHINE = "$(FULL_HOSTNAME)"
  #SUBMIT_EXPRS = MACHINE

This should meet my needs, as it's apparently intended for just such uses.

- dave