I have been struggling with multiple installations over last couple of weeks, I started with all on one box running on my ubuntu VM up to AWS load balanced Web Servers pointing to a mySQL RDS...now I'm trying to move to a more modular architecture but I need help to strengthen my understanding and correct me where I might have got things wrong.
My plan now is to:
- install 2 Web Server with load-balancer on Azure (ideally be able to add more if I need)
- Shared storage on Azure to host moodledata directory for all Web Serves
- One relatively bigger VM to host mySQL database (I read somewhere that its very difficult to have a cluster of databases so I'm sticking with a singly point of failure here)
I plan to have the deployment done by using CLI...so for example teh statement to create the web servers would be similar to below :
======
for i in `seq 1 2`; do
az
vm create
--resource-group Madrasa \ --name WebApp$i \
--availability-set myAvailabilitySet \ --size Standard_DS1_v2 \
--image Canonical:UbuntuServer:16.04-LTS:latest\
--no-wait
done
=====My biggest challenge now is to confirm what do I need to do with moodle folder (not moodledata),
what does moodle folder really have, is it dynamic data or static data? in other words will the files in moodle folder change with user interactions with the site liek adding courses, taking quizez....etc or its only changed with customization and adding plugins........the answer to this question will help me figure out one of the below options:
1. have a copy of moodle folder o local disk in every VM acting as a web server (but in this case if I did further customization will I need to recopy the changes to all VMs local disks?)
2. have a shared copy of moodle folder on same shared disk as moodeldata
Can some one please explain what is moodle folder is really about - thanks