Code Monkey home page Code Monkey logo

Comments (6)

richardwilly98 avatar richardwilly98 commented on June 1, 2024

throttlesize defines the size of the queue where mongoDB documents are stored in memory before to be ingested by Elasticsearch. The default value is 500.
The value could be increased if a high volume of MongoDB documents has to be imported.

from elasticsearch-river-mongodb.

j0hnsmith avatar j0hnsmith commented on June 1, 2024

Thanks. What happens when the queue's full?

from elasticsearch-river-mongodb.

richardwilly98 avatar richardwilly98 commented on June 1, 2024

It waits until a space is available in the blocking queue.

Thanks,
Richard.

On Thu, Jan 17, 2013 at 7:26 AM, j0hnsmith [email protected] wrote:

Thanks. What happens when the queue's full?


Reply to this email directly or view it on GitHubhttps://github.com//issues/55#issuecomment-12365930.

from elasticsearch-river-mongodb.

j0hnsmith avatar j0hnsmith commented on June 1, 2024

I'm not quite sure I understand you, what waits?

When objects are being updated in mongodb faster than they can be processed by elasticsearch and the queue is full, will those updates that won't fit in the queue eventually get into elasticsearch (once there is room in the queue)? How/where are the updates that don't fit in the queue stored?

For clarity, are there any circumstances (apart from crashes etc) where updates to objects in mongodb don't make it into elasticsearch due to load issues (eg are dropped)?

Thanks for your help

from elasticsearch-river-mongodb.

richardwilly98 avatar richardwilly98 commented on June 1, 2024

If the queue is full its thread will be blocked until the operation (put a new item) can succeed.
Meanwhile a different thread process the queue.

There should be no data lost even if crashes happened.
The logic is based on last update time (extracted from oplog.rs) this value is updated in elasticsearch river metadata only when the associated document has been successfully inserted.

from elasticsearch-river-mongodb.

j0hnsmith avatar j0hnsmith commented on June 1, 2024

Thanks

from elasticsearch-river-mongodb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.