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

Re: [Condor-users] Can this be done?



On 8/6/2012 9:52 AM, Ian Chesal wrote:
On Monday, 6 August, 2012 at 10:44 AM, Sarah Williams wrote:
I would like to have something like this in my condor config:

offline_nodes = [ 'machine01', 'machine02', 'machine03' ]
APPEND_REQUIREMENTS = Target.Machine not in offline_nodes

Is there any such thing?

Not quite.

Requirements have to reference an attribute in the machine's ad or in
the job's ad. They can't reference random configuration settings.

Well, you can have a "centralized" list of attributes at the central manager that get inserted in the job ads dynamically at match time via the NEGOTIATOR_MATCH_EXPRS setting - see

http://research.cs.wisc.edu/condor/manual/v7.8/3_3Configuration.html#20576

Having said that, I still would prefer Ian's solution discussed below.

regards,
Todd

So
you'd have to maintain that list of machines on every single machine in
order to reference it in a requirements expression like that. Bit of a
pain. You might as well localized the off/online-ness of a machine like so:

Try adding to the Machine's configuration:

IsOffline = False
STARTD_ATTRS = $(STARTD_ATTRS), IsOffline

When you want to make a machine offline you change:

IsOffline = False

to:

IsOffline = True

and reconfigure the machine.

And then jobs append to their requirements:

&& (Target.IsOffline == False)

So:

APPEND_REQUIREMENTS = Target.IsOffline == False

Regards,
- Ian

---
Ian Chesal

Cycle Computing, LLC
Leader in Open Compute Solutions for Clouds, Servers, and Desktops
Enterprise Condor Support and Management Tools

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



_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/condor-users/



--
Todd Tannenbaum <tannenba@xxxxxxxxxxx> University of Wisconsin-Madison
Center for High Throughput Computing   Department of Computer Sciences
Condor Project Technical Lead          1210 W. Dayton St. Rm #4257
Phone: (608) 263-7132                  Madison, WI 53706-1685