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

Mongo Doesn't Start in Replica Set Mode #3

Closed
firrae opened this issue Aug 16, 2016 · 8 comments
Closed

Mongo Doesn't Start in Replica Set Mode #3

firrae opened this issue Aug 16, 2016 · 8 comments

Comments

@firrae
Copy link
Contributor

firrae commented Aug 16, 2016

This is an issue that will cause Meteor to work much harder since it can't connect to and read oplog monitor to see changes. In its current implementation, it resorts to polling the Mongo server which can eventually bog both the Meteor server and the Mongo server down if there are enough connections. Currently, this would be a good test platform for a small group of users, but this will not scale.

I will look at modifying your docker compose files to set up replica set and offer variants of each version that offer a 3 instance replica set. This will take me a bit though as I'm currently busy with work. I will submit a PR when I can.

@lo-tp
Copy link
Owner

lo-tp commented Aug 17, 2016

Hey @firrae

I will work on this after done with the Let's Encrypt issue you mentioned early

@firrae
Copy link
Contributor Author

firrae commented Aug 17, 2016

@lo-tp I'm in no rush, my stuff won't be ready for a bit, so even if it's not ready then I'll play with it and see if I can get it working and submit something for you to look at.

@firrae
Copy link
Contributor Author

firrae commented Sep 1, 2016

@lo-tp this might be a good image to help solve this issue: https://hub.docker.com/r/bitnami/mongodb/ They also offer an example of setting up a full replica set via Docker Compose as well that might be useful as another option for people.

@lo-tp lo-tp closed this as completed Sep 7, 2016
@lo-tp lo-tp reopened this Sep 7, 2016
@lo-tp
Copy link
Owner

lo-tp commented Sep 8, 2016

@firrae , replicate set function is nearly finished.
However one question still remains unclear to me.
That is: should we add arbiter to MONGO_URL and MONGO_OPG_URL environmental variables.

@firrae
Copy link
Contributor Author

firrae commented Sep 8, 2016

@lo-tp In my previous experience I haven't, but I'm not sure that there is a solid reason not to.

@lo-tp lo-tp closed this as completed Sep 9, 2016
@firrae
Copy link
Contributor Author

firrae commented Sep 9, 2016

Your implementation looks good to me @lo-tp, curious as to where the primary.js script gets run though? Does it need to be manually done?

@lo-tp
Copy link
Owner

lo-tp commented Sep 9, 2016

It needs to be executed manually for the first time and I am trying to automate this process(#12).

@firrae
Copy link
Contributor Author

firrae commented Sep 9, 2016

Ah, ok. Maybe it can be automated by running a shell script as the entry point? Start mongod and then delay a minute or more, then run the config script inside the mono shell? I'm not 100% sure how to pull that off, but I'll see if I can find a better example.

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

2 participants