[rrd-users] Concurrent access to rrd files

Tobias Oetiker tobi at oetiker.ch
Fri May 7 06:57:33 CEST 2010


Yesterday Sanjit Jhala wrote:

> Hi,
> I'm writing a C++ application which will update RRD databases via the C API
> (librrd)  rrd_update(int, char**). As of now all the updates to the RRDs
> will be in a single thread, however I will have another process reading from
> the RRD file concurrently. Is this supported or do I need to implement some
> external locking mechanism ?
> Also, I read a message stating that using the C API is equivalent to
> launching the RRDtool command line tool, is this accurate? If so, is there a
> more efficient way to update 100's of RRD files like maybe launching the
> command line tool once and directing it to process batched updates from a
> file.

the rrdtool commands (even when called from c) do their own

> Thanks,
> Sanjit

Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900

More information about the rrd-users mailing list