[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] How to get Machine Availability using Condor
- Date: Fri, 8 Feb 2008 12:28:50 -0500
- From: "Saurabh Agarwal" <sagarwa1@xxxxxxxxxxxxxx>
- Subject: Re: [Condor-users] How to get Machine Availability using Condor
>Do you mean you don't want to use condor_status?
The problem with using condor_status everytime , is I want to know the status of the resource where I am running the script(CRON Job) and now if this request goes everytime to my collector(Central Manager) over the network, it may increase the network traffic and the information could be stale too once in a while. Since the collector will be sending the information which it received from my machine. Now if my Cron job runs for every minute, then this could increase a lot of traffic on my network.
So I was just thinking if there is a way to include my own resource ClassAds in the Cron jobs I schedule, will be good. I am sure there will be a ways as that is the only way some of the Condor executable would be getting the ClassAds for each resource and then sending it to the Collector(Central manager). This way I could avoid much of the network traffic, and the information about each resource would be more accurate.
Graduate Student - Computer Science,
On Feb 7, 2008 10:10 PM, Ian Chesal <ICHESAL@xxxxxxxxxx
> A quick question on how to retrieve machine's availabilityDo you mean you don't want to use condor_status? That's the traditional
> using Condor, I do not want to use condor_stats command
> every time I check for a machine availability.
way to see machine availabilty in Condor. Condor Quill in 7.0.x has
added a bunch of new tables that track the machine information -- might
be something to investigate if you want to deal with a DB instead of the
condor_status command line tool.
Yes: condor_status is the answer. Specifically:
> I know there is a ClassAd for each resource under Condor called
> as "LoadAvg" which gives me a machine current load average and
> which guarantees that the machine is running under Condor perfectly.
> So is there a way I can use this ClassAd _expression_ to be exported
> in my script, which will check for the resource load?
condor_status -f "%s\t" machine -f "%f\n" loadavg
Prints a list of slots and their associated loadavg classad attribute.
I'll have to leave this one to the STARTD_CRON experts. I don't know if
> So, how can we export already set ClassAds to my script?
> I can use both Shell Scripting or C Programming to write the
> STARTD_CRON_JOBLIST script.
there's a better way to access machine attributes from a STARTD_CRON
job. It sounds like you don't want to know the loadavg for *all* the
machines in the pool, just the machine the cron job is running on. You
can modify my above condor_status call to show you this information:
condor_status -direct localhost -f "%s\t" machine -f "%f\n" loadavg
You can string together lots of -f options to see any attribute in the
> I need this feature so that I could check few of the set ClassAds
Confidentiality Notice. This message may contain information that is confidential or otherwise protected from disclosure.
If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution,
or copying of this message, or any attachments, is strictly prohibited. If you have received this message in error,
please advise the sender by reply e-mail, and delete the message and any attachments. Thank you.
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
You can also unsubscribe by visiting
The archives can be found at: