Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1861715

Summary: add option for amqp1 SendQueueLimit
Product: Red Hat OpenStack Reporter: Matthias Runge <mrunge>
Component: puppet-collectdAssignee: Matthias Runge <mrunge>
Status: CLOSED ERRATA QA Contact: Leonid Natapov <lnatapov>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: jbadiapa, jjoyce, jschluet, lars, mmagr, mrunge, rmccabe, slinaber, tvignaud
Target Milestone: z2Keywords: Triaged, ZStream
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-collectd-12.0.0-1.20200626073420.4686e16.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1861716 (view as bug list) Environment:
Last Closed: 2020-10-28 15:38:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1859630, 1861716    

Description Matthias Runge 2020-07-29 11:46:37 UTC
Description of problem:
https://github.com/collectd/collectd/commit/e7dd149f6f8279d844d172663023a841aa032a93

added the SendQueueLimit option for the amqp1 plugin, which helps with collectd memory usage.

https://github.com/voxpupuli/puppet-collectd/pull/950
adds the support

This bz is to track the option to downstream

Comment 5 Matthias Runge 2020-08-21 07:18:14 UTC
How to test:
In an environment file add::

ExtraConfig:
    collectd::plugin::amqp1::send_queue_limit: 40

and observe if this parameter SendQueueLimit is added to /etc/collectd.d/10-amqp1.conf

You should also be able to shut off your stf (or stop the route) and you should not see collectd memory usage going up.

Comment 9 Leonid Natapov 2020-10-05 09:47:57 UTC
# Generated by Puppet
<LoadPlugin amqp1>
  Globals false
  Interval 5
</LoadPlugin>

<Plugin amqp1>
  <Transport "metrics">
    Host "172.17.1.134" 
    Port "5666"
    User "guest"
    Password "guest"
    Address "collectd"
    RetryDelay 1
    SendQueueLimit 40
    <Instance "notify">
      Format "JSON"
      Notify true
      PreSettle false
    </Instance>
    <Instance "telemetry">
      Format "JSON"
      PreSettle false
    </Instance>
  </Transport>
</Plugin>

collectd memory stable after shutting off STF server

Comment 10 Leonid Natapov 2020-10-05 09:51:42 UTC
# Generated by Puppet
<LoadPlugin amqp1>
  Globals false
  Interval 5
</LoadPlugin>

<Plugin amqp1>
  <Transport "metrics">
    Host "172.17.1.134" 
    Port "5666"
    User "guest"
    Password "guest"
    Address "collectd"
    RetryDelay 1
    SendQueueLimit 40
    <Instance "notify">
      Format "JSON"
      Notify true
      PreSettle false
    </Instance>
    <Instance "telemetry">
      Format "JSON"
      PreSettle false
    </Instance>
  </Transport>
</Plugin>

collectd memory stable after shutting off STF server

Comment 14 errata-xmlrpc 2020-10-28 15:38:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 16.1 bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:4284