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:
>>> MongoClient("mongodb://morton.local:27017,morton.local:27018,morton.local:27019") MongoClient(['morton.local:27019', 'morton.local:27017', 'morton.local:27018'])
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!