[rrd-users] rrdcached CMD_MAX 4096

Tobias Oetiker tobi at oetiker.ch
Thu Oct 27 16:04:29 CEST 2011


James,

Today James Bouressa wrote:

>
> I recently started using rrdcached on rrdtool 1.4.4, and have been getting
> this error:
>
> "Failed sending the values to rrdcached: No buffer space available"
>
> When inserting really large updates for some of my bigger RRDs. Really large
> being "more than 4K".
>
> Is my reading of src/rrd_daemon.c correct (I am not a C programmer) in that
> this snippet:
>
> --------[snip]--------------------
> /* max length of socket command or response */
> #define CMD_MAX 4096
> #define RBUF_SIZE (CMD_MAX*2)
> --------[snip]--------------------
>
> Seems to indicated that the socket will not accept a command longer than 4k
> bytes?
>
> Can this be changed safely?

I don't know ... not my code ...

> Should I just not use rrdcached for large updates?

large updates are optimized as such already, there is not much to
be gained from running them through cached ... cached helps, if you
have many little updates to different files, as it will collect
them and then do larger updates to the files at a later stage ...

cheers
tobi


-- 
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