-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automate /moodle/html local copy on VMSS (naively fixes #59) #61
Conversation
Couple of questions on this one...
In general I think this is OK as an optional feature. I do think it needs documenting though, nothing too fancy just the outline steps in a new file at
|
Thanks for your quick review! My answers to your questions...
Yeah, totally agreed with the documentation. Could you kindly create one for this? Thanks in advance! |
Thanks, makes sense. Re Docs. I'm about to hit 2 weeks of travel and vacations. I'll not be able to do it for some time. Can you provide the initial content. Just the basics to run, and where. No need for fully descriptive test. |
Sure. Filed issue #62 for tracking. I'm also starting another perf test with gluster and this feature turned on. |
Thank you. Once the skeleton is there l will improve when l return. |
Happy to report that a load test run with this feature on and gluster as the file server showed much improved performance that's now comparable to NFS (row 28 in spreadsheet). |
Issue #59 kept bugging me, so this is my naive & rudimentary trial to support the /moodle/html local copy feature.
Each VMSS VM will poll (every minute, using cron) the /moodle/html/moodle/.last_modified_time... file with /var/www/html/moodle/.last_modified..., and if they are different, the /moodle/html/moodle content will be synced to /var/www/html/moodle. Moodle admin should manually run /usr/local/bin/update_last_modified... script after every /moodle/html/moodle update.
This whole feature is controlled by a new boolean template switch (htmlLocalCopySwitch), and it's defaulted to false to retain the existing behavior. Both scenarios were tested and confirmed to work.