]> git.ipfire.org Git - thirdparty/collectd.git/commit
amqp1: Add option to limit internal send queue length 3432/head
authorRyan McCabe <rmccabe@redhat.com>
Mon, 23 Mar 2020 19:49:35 +0000 (15:49 -0400)
committerRyan McCabe <rmccabe@redhat.com>
Tue, 24 Mar 2020 20:18:45 +0000 (16:18 -0400)
commite7dd149f6f8279d844d172663023a841aa032a93
tree563206ec9cbf90d99d737286bed666149d3b5e39
parentca84bcb5999fad949ce2bd3592529d4e9683695b
amqp1: Add option to limit internal send queue length

ChangeLog: amqp1 plugin: Add option to limit internal send queue length.

Add a config  option to control the internal plugin send queue
length: SendQueueLimit

If SendQueueLimit is set to an integer greater than 0, the send queue
in the amqp1 plugin will be constrained to that number of entries to
avoid unbounded memory use in the case that there is no amqp1
connection. If a new message is queued when the queue has reached
maximum length, the oldest message in the queue will be discarded.

Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
src/amqp1.c
src/collectd.conf.pod