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

RE: [Condor-users] classAds with regular expressions?



> Specifically, I'm trying to "wildcard" match machine names, 
> so I can send my jobs to a subset of avaliable machines.  
> Besides matching on the name, I don't have any other options 
> that I can think of (OS, memory, arch are standard throughout 
> our condor system.)
> 
> Any help is appreciated.

Josh,

You can create and advertise custom ClassAd attributes on your machines.
Then you can use these attributes to "group" your machines. It's not as
flexible as Job-side regex's but it'll save you a lot of typing when you
write your Job-side requirements expression.

On one of your startd machines you can create a custom attribute like
this in the local config file:

MachineGrouping = "groupA"

And then you make this a ClassAd attribute advertised by the startd(s)
on that machine like this:

STARTD_EXPRS = $(STARTD_EXPRS), MachineGrouping

Now in your job you write your requirements expression like this:

requirements = MachineGrouping =?= "groupA"

And your jobs will only run on machines that advertise themselves as
belonging to this group.

If you wanted to get fancy with on-the-fly groups you could advertise
machines as always belonging to some default group and then use
condor_config_val to switch them around to new groups at any time.

- Ian