Hey there!
Happy Wednesday night!
Hope all has been well!
I was curious about connecting to high availability replicasets with tutor & mongodb if configuration for that was possible?
I’m thinking it would probably be some custom editing to common.py files?
I was looking at this:
and the ‘replicaSet’ item in the dictionary peeked my curiosity.
OpenEdx, (I think) uses pymongo 2.9.1, there docs here covering highly available mongo clusters and what not:
made me wonder, if it’s just that easy for the library to handle potentially different mongodb nodes like:
MongoClient(“172.XX.YY.BBB:27017”, “172.XX.YY.CCC:27017”, “172.XX.YY.HHH:27017”) …and if that happened to work successfully (of which I’ll probably try tomorrow … or latter tonight when I can’t sleep) …but if that wasn’t too difficult to do from the PyMongo library perspective … how might that translate to configuration and or tutor edits?
Thanks for any input, hazings, thoughts, feedback, and such!
So I was curious, inside the “auth.json” file that has the templating, would it work to say, anywhere the “DOC_STORE_CONFIG” is listed modify the “host” to be changed to “replicaSet”, and ensuring that the MONGODB_HOST is actually like: AAA.BBB.CCC.GGG, AAA.BBB.CCC.EEE, AAA.BBB.CCC.DDD - given that we use standard port of 27017?
I’m starting to test this to try to see what impact the edits have.
thinking that the: “mongodb://$MONGODB_AUTH$MONGODB_HOST:$MONGODB_PORT/cs_comments_service” would need custom edits, since the mogodb connection url will be different for using a replica set
Does any of y’all think this may be the right path to head down?
Hey @odemakov that pull request was great! and perfect timing too!
I manually implemented those changes to our auth.json file and config.yml file and it’s working like a dream on the server!
And thanks to the work you did I am gaining a deeper understanding of how the templating with https://jinja.palletsprojects.com/en/2.11.x/
is kinda taking place
I haven’t read up on plugins with tutor and should
Hello.
Can anyone please let me know, how we can configure a remote mongo server for cs_comment_service? I have configured remote mongodb for lms and cms via plugin by changing mongodb parameters but when I try to modify MONGOHQ_URL for cs_comment_service, the forum container keeps on restarting.
Modifications:
Accessed the forum container
bin/docker-entrypoint.sh
Changed the MONGOHQ_URL here but it was not working.
On tutor env, here is file path:
/home/ubuntu/.local/share/tutor/env/local/docker-compose.yml
We can find forum configurations here. Do we need to modify this file?