>>> On 1/31/2008 at 4:20 PM, in message
<[EMAIL PROTECTED]>, Doug Nordwall <[EMAIL PROTECTED]>
wrote:
> For reference, here is a current HOST line of XML
> 
> <HOST NAME="mybox.local" IP="10.1.1.1" REPORTED="1201820930" TN="7"  
> TMAX="20" DMAX="0" LOCATION="unspecified" GMOND_STARTED="1200935314">
> 
> We're looking at making some patches to ganglia to do one of the  
> following things:
> 
> 1) replace the _value_ with the value of the job_id, and modifying the  
> code so that you can update the location. This would also include the  
> option to keep the location as it is written currently, or spoof it  
> with a job_id (or arbitrary value)
> 2) add a new field to the HOST entry called job_id and allow it to be  
> updated without restarting ganglia.
> 
> Sadly, we can't use a job_id a metric (well, we could but it's more of  
> a pain in other part of our code). For the purposes of our machine, a  
> machine is dedicated to a single job. The ultimate idea is to be able  
> to drop whatever we like into that host field and have it change  
> without an entire restart of ganglia.
> 
> Do any of the main ganglia dev folks have an opinion here? We'd be  
> looking to submit this back into the main stream once we are done.
> 
> As always, I'm open to be told I'm wrong or it has been done :)
> 

I'm not sure that I understand what you are trying to do.  From the 
description, I am assuming that you are trying to associate a job_id with a 
host.  The easiest way to do that would be to just create a metric module that 
returns a constant job_id string as a metric.  Yet, you mentioned that for some 
reason you can't do that.  Could you explain why?  Otherwise just adding a 
job_id attribute to the <HOST> doesn't sound very useful except in your case.  
Is there some general benefit to adding a job_id attribute?

Brad


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to