Bug 837586 - Availability update using Process plugin for mongoDB is very slow
Summary: Availability update using Process plugin for mongoDB is very slow
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.4
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-04 10:23 UTC by Charles Leow
Modified: 2022-03-31 04:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Charles Leow 2012-07-04 10:23:04 UTC
Description of problem:
We’ve setup three nodes with RHEL5.3 and same hardware specifications. One for RHQ server and remaining two each installed with mongoDB and RHQ agent for monitoring mongoDB.

mongoDB is monitored using Process resource type with Pid File and PIQL query types. Each query type is setup on a different node. However we found that the availability scan for both agents does not respond in a decent time. In fact sometimes it takes more than 30 minutes to reflect the actual availability of mongoDB. We’re using default configuration in agent. The value for rhq.agent.plugins.availability-scan.period-secs is also default (30 seconds). 


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


How reproducible:
It occurs right after Process plugin is created. After shut down mongoDB, the availability update (Goes Up and Goes Down) takes a long long time to update. Bring back up mongoDB, the availability update takes a long long time as well.

Steps to Reproduce (PID file):
1. Go to inventory of a platform
2. Import a Process
3. Select PID file
4. Location of PID file /var/lib/mongo/mongod.lock

Steps to Reproduce (PIQL):
1. Go to inventory of a platform
2. Import a Process
3. Select Process Query
4. Value for PIQL is process|basename|match=(?i)^mongod.*

Actual results:
Availability update takes a long time. 

Expected results:
Availability update should be fast like within few minutes. 

Additional info:


Note You need to log in before you can comment on or make changes to this bug.