Bug 1559432

Summary: Before import cluster monitoring integration consumes lot of CPU and memory
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: gowtham <gshanmug>
Component: web-admin-tendrl-monitoring-integrationAssignee: gowtham <gshanmug>
Status: CLOSED ERRATA QA Contact: Daniel Horák <dahorak>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.4CC: dahorak, gshanmug, mbukatov, nthomas, rhs-bugs
Target Milestone: ---   
Target Release: RHGS 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tendrl-monitoring-integration-1.6.1-3.el7rhgs Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 07:02:28 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: 1503137    

Description gowtham 2018-03-22 14:28:12 UTC
Description of problem:
Monitoring-integration sync-interval time is fetched from gluster_ns in central-store. But before cluster import gluster_ns is not created in central store. So monitoring-integration sync thread is keep executed without any break, So it consumes a lot of CPU and memory resources.

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


How reproducible:
Install and start monitoring-integration before import cluster and check CPU and memory resource consumption.

Steps to Reproduce:
1.
2.
3.

Actual results:
monitoring-integration consumes a lot of CPU and memory

Expected results:
monitoring-integration should consume less CPU and memory

Additional info:

Comment 2 Martin Bukatovic 2018-03-28 08:28:21 UTC
Could you provide more details about:

* Version where the bug is present.
* Is it possible to reproduce this on previously released RHGS WA?
* Link to upstream merge request.

Comment 3 gowtham 2018-03-28 15:41:53 UTC
It is possible to reproduce in all previous released RHGS, After executing ansible script for installing tendrl components, check the CPU and memory resource consumption using a command top.

Comment 4 gowtham 2018-03-28 16:06:39 UTC
Check cpu and memory resource which is used by monitoring-integration in server node, it is reproducible in rhgs 1.6.1-1

Comment 5 gowtham 2018-03-28 16:43:22 UTC
sorry, In version 3.3.1 it can be reproducible

Comment 6 gowtham 2018-03-28 16:43:31 UTC
sorry, In version 3.3.1 it can be reproducible

Comment 7 gowtham 2018-03-28 17:14:57 UTC
I meant 1.6.1-1 is actually RHGS-WA NVR 1.6.1-1

Comment 10 Daniel Horák 2018-05-15 09:28:07 UTC
Reproduced on tendrl-monitoring-integration-1.6.1-1.el7rhgs.noarch.

Comment 11 Daniel Horák 2018-05-15 10:14:26 UTC
Tested and verified on tendrl-monitoring-integration-1.6.3-2.el7rhgs.noarch.

CPU and memory consumption of tendrl-monitoring-integration service is constantly bellow 1%.

# ps -p $(echo $(ps aux | grep [t]endrl-monitoring-integration | awk '{print $2}') | sed 's/ /,/') -o %cpu,%mem,cmd -h;
 0.4  0.3 /usr/bin/python /usr/bin/tendrl-monitoring-integration

>> VERIFIED

Comment 13 errata-xmlrpc 2018-09-04 07:02:28 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, 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/RHSA-2018:2616