Bug 1771994

Summary: unbounded memory usage in collectd when it's not configured with any write plugin
Product: Red Hat OpenStack Reporter: Jaison Raju <jraju>
Component: collectdAssignee: Ryan McCabe <rmccabe>
Status: CLOSED EOL QA Contact: Leonid Natapov <lnatapov>
Severity: low Docs Contact:
Priority: medium    
Version: 15.0 (Stein)CC: csibbitt, jbadiapa, jraju, lars, mmagr, mrunge, oblaut, pkilambi, rmccabe, stchen
Target Milestone: z3Keywords: Triaged, ZStream
Target Release: 15.0 (Stein)Flags: mrunge: needinfo-
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: collectd-5.8.1-8.el8ost.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-30 20:02:15 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: 1790928    

Description Jaison Raju 2019-11-13 11:19:33 UTC
Description of problem:
If overcloud is deployed with collectd but when collectd is not configured to use any write plugin or any destination collectd server it can send data, memory leak is noticed.
Collectd processes Resident memory increases to 20GB in few hours.
During every cycle collectd collects data, the process visibly grows in memory usage.

Collectd should have some configuration to discard collected data rather than storing it in memory when it is not configured with destination collectd server or write plugin.

Version-Release number of selected component (if applicable):
RHOS15z1

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 10 Chris Sibbitt 2020-02-11 20:51:10 UTC
This has been lowered to medium since it only affects already-broken installations. Fixes are required upstream and they won't happen in time for 15z2; adjusting milestone accordingly.

Comment 11 Ryan McCabe 2020-03-26 16:45:10 UTC
I've been hammering on collectd with WriteQueueLimitHigh and WriteQueueLimitLow set (and I believe Matthias has, also), and those seem sufficient to control the memory usage. We may want to set some reasonable defaults to the collectd container's default collectd params.

Comment 13 stchen 2020-09-30 20:02:15 UTC
Closing EOL, OSP 15 has been retired as of Sept 19, 2020