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

Add support for Mongo Cluster #838

Open
bufke opened this issue Jul 21, 2022 · 2 comments
Open

Add support for Mongo Cluster #838

bufke opened this issue Jul 21, 2022 · 2 comments

Comments

@bufke
Copy link
Contributor

bufke commented Jul 21, 2022

Currently it's not clear how to configure kobocat for a mongo cluster and the connection may be unstable. It's unclear if we need to make code changes, upgrade pymongo, or only change the settings configuration.

In a test with the mongo helm chart, using the connection string with the "headless" service resulted in NotPrimaryError errors. Errors appeared at random.

with adding ?replicaSet=rs0 worked for some time without errors. Then consistently started to get ServerSelectionTimeoutError. In this test, kobo worked even after forcing downtime and failover on the mongo cluster. The error took some time to manifest but then happened very consistently.

@jnm
Copy link
Member

jnm commented Jul 21, 2022

Related to #837, whose original description was about making code changes to retry failed MongoDB operations

@j-manu
Copy link

j-manu commented Dec 29, 2022

MongoDB cluster has mongodb+srv:// URIs and it can be supported by adding dnspython as a dependency. Latest version of pymongo has this as a required dependency. I'm currently using Kobo with a mongodb cluster after installing dnspython.

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