Re: [collectd] collectd 5.10 threading

2012-09-17 Thread Fabien Wernli
Hi,

On Fri, Sep 14, 2012 at 05:37:08PM +0200, Cyril Feraudet wrote:
 A friend of mine is currently writing a plugin to do aggregation of metric 
 directly in Collectd if this is the subject.

You are aware of the following branch, aren't you?

https://github.com/collectd/collectd/tree/ff/aggregate


___
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd


Re: [collectd] collectd 5.10 threading

2012-09-14 Thread Cyril Feraudet
Hi,

I already developed one : git clone -b cf/perfwatcher 
http://github.com/feraudet/collectd.git 

Have look on plugin write_mysql

Cyril


On 14 sept. 2012, at 16:35, Brandon Hume hume-ml+colle...@bofh.ca wrote:

 I'm trying to debug a plugin (not part of the distribution) that uses mysql 
 to write the most recent measurements into a database.  I'm running it in an 
 extremely threaded environment - Solaris on a SPARC T4 with a crazy number of 
 CPUs - and it crashes and gets queries out of sync and many other signs of a 
 race condition.
 
 Mysql is supposedly thread safe but you have to be careful about initializing 
 the functions and coordinating queries.  So, I'm reviewing the code and 
 trying to find spots where it would be tripping over itself.
 
 At what point does collectd start threading?  Is it already spawning threads 
 by the time the plugin init functions are being called?  Is it possible for a 
 plugin init function to be called multiple times?
 
 ___
 collectd mailing list
 collectd@verplant.org
 http://mailman.verplant.org/listinfo/collectd


___
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd


Re: [collectd] collectd 5.10 threading

2012-09-14 Thread Cyril Feraudet

 I already developed one : git clone -b 
 cf/perfwatcherhttp://github.com/feraudet/collectd.git
 
 Have look on plugin write_mysql
 
 That's exactly the plugin I'm trying to fix.  The problem may or may not be 
 in the write_mysql code, or it might be falling victim to a problem elsewhere.

This is mine ;-) Try the last version on my branch. 
This plugin work fine in a large environment (5300 server and more than 19000 
update by second in MySQL) but never tested on Solaris.

Are you using Perfwatcher too ? A friend of mine is currently writing a plugin 
to do aggregation of metric directly in Collectd if this is the subject.
___
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd


Re: [collectd] collectd 5.10 threading

2012-09-14 Thread Jesse Reynolds

On 15/09/2012, at 1:07 AM, Cyril Feraudet wrote:
 
 Are you using Perfwatcher too ? A friend of mine is currently writing a 
 plugin to do aggregation of metric directly in Collectd if this is the 
 subject.

Could you point me at this aggregation plugin Cyril? Sounds most interesting, 
thanks. 


___
collectd mailing list
collectd@verplant.org
http://mailman.verplant.org/listinfo/collectd