collectd/collectd — pull request #619 by Crapworks (2014-05-22 10:47:25+00:00)
Title: increased buffer size

Hi,

we are using collectd with some custom types.db files, and some of them have quite some metrics in it. I experienced that the amqp plugin, output format set to JSON, sometimes generates an empty message in the queue. This is because of the limited buffer size inside this plugin. If you are using the JSON format, the buffer can get quite big. And in this case, RabbitMQ is unable to parse the message (since it's truncated and not a valid json anymore) and creates an empty one.

Since RabbitMQ can handle messages of (theoretically) unlimited length, I think the buffer size should be increased (I've doubled it to 8kb).

Regards,
Christian