On Mon, Jul 13, 2009 at 04:49:17PM +0100, Daniel Pocock wrote:

> Brad Nicholes wrote:
> >>>> On 7/13/2009 at 8:17 AM, in message
> >>>>         
> > <e6ccb7f50907130717i2f3dfd5fi1c69dbd4124a7...@mail.gmail.com>, utopia zh
> > <utopia...@gmail.com> wrote:
> >   
> >> Hi,
> >>
> >> While trying to use gmond to monitor our applications, we found some 
> >> issues:
> >> - Metric collecting may take long time to finish, such examples
> >> include collecting master/slave status from LDAP, parsing web pages to
> >> get statistics.
> >>     
> 
> This is definitely an issue for some metrics, but not all
> 
> It would be nice to have threading support within the agent rather than 
> requiring each person who implements a module to re-invent the wheel.  
> However, it might be best to make it configurable, so that `start a 
> thread' becomes a config option for each module or metric.  There could 
> be some flag in Ganglia_25metric with which a developer can tell gmond 
> that a metric must be run in it's own thread, and some configuration 
> file option to allow the sysadmin to override the default setting of the 
> flag.

As a lazy sysadmin I would prefer not to have to deal with individual
metric settings, so how about letting gmond decide if a thread is needed
or not for a module depending on the modules response time and keep the
config simple with something like max_threads = n, max_collection_delay = 
4000ms?

Kostas
 

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to