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

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



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