[collectd] collectd 5.10 threading
Cyril Feraudet
collectd at feraudet.com
Fri Sep 14 16:46:04 CEST 2012
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+collectd at 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 at verplant.org
> http://mailman.verplant.org/listinfo/collectd
More information about the collectd
mailing list