Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mongo] the mongo db check is causing the agent to hang #627

Closed
clutchski opened this issue Aug 22, 2013 · 1 comment
Closed

[mongo] the mongo db check is causing the agent to hang #627

clutchski opened this issue Aug 22, 2013 · 1 comment
Assignees

Comments

@clutchski
Copy link
Contributor

The mongo check is causing the agent to hang. It seems like one of the network commands is hanging indefinitely.

From the logs:

2013-08-22 18:38:35,347 | INFO | dd.collector | checks.collector(collector.py:254) | Running check network
2013-08-22 18:38:35,349 | INFO | dd.collector | checks.collector(collector.py:254) | Running check mongo
2013-08-22 18:41:01,137 | ERROR | dd.collector | util(util.py:281) | Self-destructing...

Here's the info from the customer:

Fuller explanation on the mongo instance: I have wiped all data and allowed it to
rejoin the replication set. It is now in "STARTUP2" and loading data. All mong shell
connections are currently failing until it is in the "SECONDARY" state.

I think we should at minimum add a timeout to the network connection:

http://api.mongodb.org/python/2.2/api/pymongo/connection.html

@clutchski
Copy link
Contributor Author

According to the client, adding a timeout fixed the issue:

conn = Connection(url, network_timeout=5 )

@ghost ghost assigned remh Aug 22, 2013
@remh remh closed this as completed in a0d4584 Aug 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants