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

Re: [Condor-users] Wildcards/regexp in Rank expression



In the absence of wildcards in the meantime, I just added another
attribute to the job classad, such that all jobs from group_numi
now have another attribute called

agroup

So my Rank expression now reads

Rank = ((agroup == "group_numi") * 1000)

Is that all that is needed to achieve the desired effect:
Namely,
This node will prefer to run jobs from group_numi provided
that there are jobs from group_numi available to run

I have tried to test it but my cluster is pretty big and thus far
I haven't been able to fill up the cluster enough to see whether if the
setting is making any difference.

Steve Timm


I am trying to set a RANK expression on a set of 15 worker nodes.

The following works:

Rank = ((accountinggroup == "group_numi.rubin") * 1000) + 1

The idea is to give group_numi.rubin leading priority over any
other user on these nodes which are part of a much larger pool.

But really what I want to do is to give any user in
accounting group group_numi.* the same priority as rubin.
(new users get added to group_numi all the time and we don't want
to edit the condor_config file every time one comes along).
Is there any way to put a wildcard into the Rank expression (or
any other similar classad expression)?  Or should I go about
it differently?

Soon, we will add functions to classads, including regexp (based on
PCRE).

+--------------------------------+-----------------------------------+
|           Jaime Frey           | I used to be a heavy gambler.     |
|       jfrey@xxxxxxxxxxx        | But now I just make mental bets.  |
| http://www.cs.wisc.edu/~jfrey/ | That's how I lost my mind.        |
+--------------------------------+-----------------------------------+


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


--
------------------------------------------------------------------
Steven C. Timm, Ph.D  (630) 840-8525  timm@xxxxxxxx  http://home.fnal.gov/~timm/
Fermilab Computing Div/Core Support Services Dept./Scientific Computing Section
Assistant Group Leader, Farms and Clustered Systems Group
Lead of Computing Farms Team