OpenEdx - Separating Services and LMS/CMS

59 views
Skip to first unread message

JITHIN SHA

unread,
Jan 27, 2019, 2:38:46 AM1/27/19
to edx-...@googlegroups.com
Hello All,

I have setup two vms with all in one server for openedx. From this i would like to make one for LMS and CMS and the other for DB's and Services.

edx-lms - LMS and CMS
edx-srv - MongoDB, MySQL and other services.

I tried modifying files lms.env.json, lms.auth.json and cms as well. Later I found that some other files are also required, like ecommerce.yml.

Does anybody have a clear idea of the files and parameters to be modified so that I can use it.

Am also planning to make memcached and RabbitMQ as well to the srv server. Expecting for some tips. 

Thank you

--
JITHINSHA
ജിതിന്‍ഷാ കെ എസ്

Lupus Furyo

unread,
Jan 27, 2019, 5:49:04 AM1/27/19
to edx-...@googlegroups.com
Hello,
Hopefully, you will find some of the links below of some help.

(The current state of the two GitHub repos mentioned in the post is unknown)

While I have never tried any of those, deploying Open edX on OpenStack seems the most interesting exercise to me.


--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/CANtXGwdU5Cck8D6PY963uxRFD1cWWfJNVmVyoNOcAfAHaEG5TQ%40mail.gmail.com.

JITHIN SHA

unread,
Jan 27, 2019, 11:25:34 PM1/27/19
to edx-...@googlegroups.com
Hello Bro Lupus,

Thanks for helping me out. Yeah I have already gone through most these stuffs and tested, but unfortunately, i was not able to overcome it. So tried sending a message, if someone has tested the similar scenario. I have to find a solution, somehow as this is a requirement for the customer.

I had initially for a temporary solution had used nat and some cheats to separate the services, but that is not the right way, once it has to go production. If anyone has any idea, let me know, so i can have a crack at that. 

If I find a solution to this issue, will definitely let you know and make a note of it and publish it, so other can benefit it.

Thanks all

Wish you all a Great Week... 

Cheers

Stan V

unread,
Jan 29, 2019, 1:46:04 AM1/29/19
to General Open edX discussion
Jithin,

My recommendation is going from the code, not documentation, to your solution. This is kind of an industry-accepted approach working with Open Source anyway.

I would not try updating the installation process - I assume you used Ansible. Whatever you have installed - is quite standard Ubuntu, so you'll see which apps (DB, Rabbit, etc.) you've got installed - uninstall the ones you don't need individually. All (I believe) edx stuff is run via the Supervisor - check out the supervisor configs. Likewise, you can remove those that you don't need. The configs will lead you to the Django settings files, and those point to the configuration files for each individual Django service. For those components that don't run under Django - Supervisor configs will point you in the right direction as well. A little bit of work, but no-guessing, just straightforward technology. Not a rocket science - it's a quite simple system, overall, once you start digging in. You can also do a text search, of course, to find all occasions that refer to particular services - make sure you run it over a complete set of folders.

Stan Varlamov

CTO

EXL Inc. | EXLskills.com

 

Phone (USA): (734) 230-2825

Phone (HK): +852 5506 5715

LinkedIn: https://www.linkedin.com/in/stanvarlamov

Skype: stanvarlamov

Whatsapp: +852 5506 5715

WeChat: stanvarlamov

JITHIN SHA

unread,
Jan 29, 2019, 3:53:29 AM1/29/19
to edx-...@googlegroups.com
Hello Stan,

I very appreciate the time taken to reply. Yes, I have tried to go for configs rather than documents first. 

As you said, yes all the services are controlled by supervisor. And its installed with ansible automatically. I had gone through a little of Ansible mainly for this stuff. I think i need to try a little more deeper. However reading your emails gives me some positive energy. 

Thanks and regards
J

--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.

Stan V

unread,
Jan 29, 2019, 4:27:12 AM1/29/19
to General Open edX discussion
Jithin,

I'm a big proponent of Ansible for DevOps and installs, but in the case of Edx I wrote before and still believe that it does a disservice for the newcomers into the space. I would argue that the Edx Ansible code base was put together awhile back and it is not to the current Best Practices of the tool (Ansible) anymore. If you're lucky to have a working Ubuntu Edx VM - you're already ahead of many. Unless you want to build a reusable way of recreating your VMs from scratch again - I'd say you don't need Ansible anymore, and it may not help you figuring out the config files, only delay and confuse. The layered structure of Roles and Variable is extremely hard to decipher. It should be much faster for you to work directly with the configs and basic Python code (mostly, in the settings) to adjust the configuration to your specific needs. There are great examples of basic (important: basic) Edx installs without Ansible. I also like the Docker-based system and the installation process of the Devstack. It uses Ansible as well, but it limits the playbooks to specific components, which makes it a little easier to follow (just a little).  Good luck.


Stan Varlamov

CTO

EXL Inc. | EXLskills.com

 

Phone (USA): (734) 230-2825

Phone (HK): +852 5506 5715

LinkedIn: https://www.linkedin.com/in/stanvarlamov

Skype: stanvarlamov

Whatsapp: +852 5506 5715

WeChat: stanvarlamov


JITHIN SHA

unread,
Jan 30, 2019, 3:48:07 AM1/30/19
to edx-...@googlegroups.com
Hi Stan,

Now a days for creating a fresh working edx, all in one VM the scenario is very easy and one of the best. It just requires an internet connection for downloading all the required stuffs. Once the installation is done, you will have a full running edx environment.


Just 5 steps for a default setup and 6 steps for custom setups. Its working perfectly, I have tested it many times. Half part is successful now, mysql part is working fine. Hope to find the monodb part soon.

OpenEdx helped me to learn the new stuffs like mongodb and ansible.

Thanks Stan....

Your words are really inspirational.... Thanks Again...

J

--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
Reply all
Reply to author
Forward
0 new messages