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

{ [Error: ETIMEDOUT] code: 'ETIMEDOUT' } #129

Closed
varkaha opened this issue Oct 19, 2014 · 7 comments
Closed

{ [Error: ETIMEDOUT] code: 'ETIMEDOUT' } #129

varkaha opened this issue Oct 19, 2014 · 7 comments

Comments

@varkaha
Copy link

varkaha commented Oct 19, 2014

A time after I run model.synchronize(); I get the following messages.

{ [Error: ETIMEDOUT] code: 'ETIMEDOUT' }
{ [Error: ETIMEDOUT] code: 'ETIMEDOUT' }
{ [Error: ETIMEDOUT] code: 'ETIMEDOUT' }
{ [Error: ETIMEDOUT] code: 'ETIMEDOUT' }
{ [Error: ETIMEDOUT] code: 'ETIMEDOUT' }
{ [Error: ETIMEDOUT] code: 'ETIMEDOUT' }
{ [Error: ETIMEDOUT] code: 'ETIMEDOUT' }
{ [Error: ETIMEDOUT] code: 'ETIMEDOUT' }
{ [Error: ETIMEDOUT] code: 'ETIMEDOUT' }
{ [Error: ETIMEDOUT] code: 'ETIMEDOUT' }

And so on.

I have 250k+ docs in mongodb, and I want index 2 fields.

I have lastest versions of slasticsearch, mongoosastic, mongoose, and centos6 64bits.

@TejasCMehta
Copy link

@varkaha thanks for posting this issue.

Our current project is also facing same problem once we drop mongoDB and try to sync and re-index again with ES.

any help?

@taterbase
Copy link
Owner

ETIMEDOUT is a low level error describing a delayed response to a request. I have a feeling this is happening when indexing the documents into Elasticsearch but I'm not positive.

You may be running into an issue that is similar to issue #121 where the queue fills up too quickly and elasticsearch can't index the documents as quickly as you are sending them. Try throttling the sync like they did and let me know if that helps. If so we'll prioritize a throttled sync method.

@varkaha
Copy link
Author

varkaha commented Oct 20, 2014

I do only one "synchronize()" call.

@taterbase
Copy link
Owner

The issue described above is also only doing one synchronize() call as well. This can still potentially cause the internal elasticsearch queue to overflow.

@varkaha
Copy link
Author

varkaha commented Oct 21, 2014

Excuse me, I can't understand what I have to do.

@taterbase
Copy link
Owner

@varkaha try editing the mongoosastic.js the same way as was done here: #121 (comment)

Let me know if that solves the issue.

@taterbase
Copy link
Owner

This issue has been moved to mongoosastic#11

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

3 participants