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

Re: [HTCondor-users] RANK question; slots unclaimed on a single computer



Ralph,

Using https://htcondor-wiki.cs.wisc.edu/index.cgi/wiki?p=WholeMachineSlots
as inspiration, I came up with this:

###
# advertise state of each slot as SlotX_State in ClassAds of all other slots
STARTD_SLOT_ATTRS = $(STARTD_SLOT_ATTRS) State

NumCoresUnclaimed = \
(Slot1_State =?= "Unclaimed") + \
  (Slot2_State =?= "Unclaimed") + \
  (Slot3_State =?= "Unclaimed")

STARTD_EXPRS = NumCoresUnclaimed $(STARTD_EXPRS)
###

You'll need to have SlotX_State comparisons for at least as many slots
as you have on a machine (having more expressions than you have slots
won't hurt). Also be aware that there will be times when slots on the
same machine will have diffrerent values of NumCoresUnclaimed reported
by condor_status.


Thanks,
BC

-- 
Ben Cotton
main: 888.292.5320

Cycle Computing
Leader in Utility HPC Software

http://www.cyclecomputing.com
twitter: @cyclecomputing