Code Monkey home page Code Monkey logo

Comments (9)

chrisduong avatar chrisduong commented on June 6, 2024

I mean, is there anyway to declare all members of a replica set for elasticsearch can connect to.

from elasticsearch-river-mongodb.

chrisduong avatar chrisduong commented on June 6, 2024

I found out that I can solve this problem by create 2 instances of river driver to pull data from both members of replica set.

from elasticsearch-river-mongodb.

richardwilly98 avatar richardwilly98 commented on June 6, 2024

Hi,

I have just posted a new snapshot: https://github.com/downloads/richardwilly98/elasticsearch-river-mongodb/elasticsearch-river-mongodb-1.3.0-SNAPSHOT-plugin.zip

You can register the river the new settings (array of servers): https://github.com/richardwilly98/elasticsearch-river-mongodb/blob/master/resources/river-settings-with-replicaset.txt

Can you please test and let me know?

from elasticsearch-river-mongodb.

chrisduong avatar chrisduong commented on June 6, 2024

I will check this and report later.
Thanks.

from elasticsearch-river-mongodb.

chrisduong avatar chrisduong commented on June 6, 2024

Hi Richard,
One more thing I want to ask you. Could you please ask the "slaveok" feature to your driver. Because that could help much if the plugin could read from the secondary for gaining more speed and also less burden on the primary.

from elasticsearch-river-mongodb.

chrisduong avatar chrisduong commented on June 6, 2024

Hi Richard,
Thank you very much. Your new snapshot works like a charm. But could you please consider the "slaveok" feature.

from elasticsearch-river-mongodb.

richardwilly98 avatar richardwilly98 commented on June 6, 2024

Hi,

I have just updated the snapshot: https://github.com/downloads/richardwilly98/elasticsearch-river-mongodb/elasticsearch-river-mongodb-1.3.0-SNAPSHOT-plugin.zip

You can register the river the new settings (array of servers): https://github.com/richardwilly98/elasticsearch-river-mongodb/blob/master/resources/river-settings-with-replicaset.txt and new options settings to enable ReadPreference.SECONDARY (slaveOk is deperecated in mongo java driver and have been replaced by this call).

Can you please test and let me know?

from elasticsearch-river-mongodb.

richardwilly98 avatar richardwilly98 commented on June 6, 2024

Hi,

Please use https://github.com/downloads/richardwilly98/elasticsearch-river-mongodb/elasticsearch-river-mongodb-1.4.0.zip
And new version of https://github.com/richardwilly98/elasticsearch-river-mongodb/blob/master/resources/river-settings-with-replicaset.txt (parameter secondaryreadpreference renamed in secondary_read_preference).

Feedback welcome.

from elasticsearch-river-mongodb.

chrisduong avatar chrisduong commented on June 6, 2024

Hi Richard,

You rock, it works. :)

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.