Tutor Edx Mongodb scaling

Hi, @regis
I installed a Tutor edx Palm version which was working fine. But when we tried to connect MOngodb which was installed on another EC2 instance, not getting courses when we run the these commands in LMS shell:

from xmodule.modulestore.django import modulestore
modulestore().get_courses()

Configured mongo settings in config.yml:

RUN_MONGODB: false
MONGODB_USE_SSL: false
MONGODB_AUTH_MECHANISM: ''
MONGODB_AUTH_SOURCE: 'admin'
MONGODB_DATABASE: openedx
MONGODB_HOST:  <mongodb-ip-address>
MONGODB_PASSWORD: 'password'
MONGODB_PORT: 27017
MONGODB_USERNAME: 'admin'
Mongo Version installed on EC2 is 4.4.29.

Please help me to connect mongodb and get courses.

@Mahendra Please help on this if anu clue about this.

  • What error is it that you are getting when attempting to get courses? Anything in mongo logs?
  • Why is RUN_MONGODB set to False?

Running commnand from LMS shell:

  • from xmodule.modulestore.django import modulestore
  • modulestore().get_courses()
  • [ ]

showing blankā€¦

RUN_MONGODB: false
because connecting mongo from outside the docker containerā€¦ this stops running mongo into docker container try to connect with external mongodb.