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

Re: [Condor-users] Is this Rank statement correct




Your expressions look good to me, so long as LEADER, MAJOR_GROUP, and MINOR_GROUP are added to STARTD_EXPRS. The alternative is to substitute them directly into the RANK expression by using the macro expansion syntax (e.g. $(LEADER)).


--Dan

Daniel Loughlin wrote:

-------- begin snip --------
LEADER = Owner == "bob"
MAJOR_GROUP = Owner == "bobby" || Owner == "rob"
MINOR_GROUP = Owner == "mod" || Owner == "dob"

SUSPEND = Scheduler =!= $(DedicatedScheduler) && ($(SUSPEND))
PREEMPT = Scheduler =!= $(DedicatedScheduler) && ($(PREEMPT))
RANK_FACTOR = 1000000
RANK = (LEADER * 30) + (MAJOR_GROUP * 20) + (MINOR_GROUP * 10)
RANK = (Scheduler =?= $(DedicatedScheduler) * $(RANK_FACTOR)) + $(RANK)
START = (Scheduler =?= $(DedicatedScheduler)) || ($(START))
--------- end snip -----------


The point of the above condor_config.local is to favor jobs from LEADER, then MAJOR_GROUP, then MINOR_GROUP, and finally everyone else. However, jobs needing a dedicated scheduler take precedence above everyone.

Is the above correct, for what I want to accomplish?


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