Code Monkey home page Code Monkey logo

Comments (12)

rwynn avatar rwynn commented on July 18, 2024

Can you try without that param? Just make sure you point to a pem file and set the validate pem accordingly.

from monstache.

rwynn avatar rwynn commented on July 18, 2024

Go Mongodb driver does not require ssl param. https://github.com/go-mgo/mgo/issues/84 Only custom dial function which will be triggered by pem file.

from monstache.

skyhit avatar skyhit commented on July 18, 2024

for official service like the MongoDB atlas, what pem file should be used?

from monstache.

rwynn avatar rwynn commented on July 18, 2024

Can you try creating a dummy pem file and then using that? Code currently requires a pem file to connect via TLS. But in case of Atlas a Pem might not be needed.

from monstache.

skyhit avatar skyhit commented on July 18, 2024

Hmm, I tried and I can see

INFO 2017/02/21 01:18:22 GET request sent to http://xxxxxxx.us-east-1.aws.found.io:9200/
INFO 2017/02/21 01:18:22 Successfully connected to elasticsearch version 2.3.3
INFO 2017/02/21 01:18:22 Joined cluster data_lake_test
INFO 2017/02/21 01:18:22 Starting work for cluster data_lake_test

but I didn't see the index created, any idea?

from monstache.

rwynn avatar rwynn commented on July 18, 2024

Do you know if the user connecting to Mongodb has access to the oplog? For atlas it seems you would need to give permission to access local.

https://docs.atlas.mongodb.com/faq/#does-mongodb-service-expose-the-oplog

Once it can read the oplog you would need to insert new document in Mongodb for index to be created. Or you can use option replay=true to send what is already in oplog.

from monstache.

skyhit avatar skyhit commented on July 18, 2024

I tried with replay=true and resume=true, it did create the index and sync some documents, but not all, which is wired.

from monstache.

rwynn avatar rwynn commented on July 18, 2024

Do you have multiple shards? I think I may need to make some fixes around this according to https://www.mongodb.com/blog/post/tailing-mongodb-oplog-sharded-clusters.

from monstache.

skyhit avatar skyhit commented on July 18, 2024

@rwynn no, just 1 shared.

from monstache.

rwynn avatar rwynn commented on July 18, 2024

@skyhit, what percentage of the documents was synced? Do you have workers options set (this could cause only some to sync because in worker mode each worker does a share of the indexing)? With -verbose flag you should see a log of each bulk request. Do you notice any failures?

from monstache.

rwynn avatar rwynn commented on July 18, 2024

@skyhit, I tested today on Atlas and did not notice any document loss. Just released a new version of monstache with SSL option so that you don't need to provide dummy PEM to connect to Atlas. Closing this issue. Please open a new one if you have additional problems.

from monstache.

skyhit avatar skyhit commented on July 18, 2024

@rwynn thanks, I will try with the new release.

from monstache.

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.