I have done several attempts to run Moodle on App Engine, and it is not a easy task. Moodle itself is designed as if it was hosted on a stateful server, and uses the moodledata directory to write (and lock) lot's of files and caches. It also has some built-in mechanisms to cache static assets "on the fly", and this causes a lot of filesystem reads. This invalidates my attempt to put moodledata on a Cloud Storage bucket, that would make it work on App Engine but, due to locking and due to the HUGE filesystem access, this doesn't work neither scales well.
I ended up doing a somewhat resilient setup on Compute Engine, hosting on a g1-small machine and using a D0 Cloud SQL instance for the database. The results were reasonable, as the site does not handle a lot of traffic. You can also start with the Moodle click-to-deploy solution, and it will work on an f1-small instance as well (recommended to set up swap space!) if your site has very low traffic, so you end up with more savings and less hassle to install. Here is the approach I took in order to make it easy to upgrade and to make it more resilient by separating the workload between the web server VM and the Cloud SQL instance: http://devblog.ronoaldo.net/2015/04/setting-up-moodle-on-google-compute-engine-and-cloud-sql.html I would suggest you to put your Moodle site as a "subdomain", and implement a scalable landing page as well as some course overview pages to host on GAE. This way you have the best of both worlds: if interested students want to access the course material and data, they end up in the moodle domain that is served from the VM. And you have the App Engine front-end serving the traffic spikes of the user and bot-visible website. Finally, you can even make the Moodle VM be served by a reverse-proxy GAE handler, say, /moodle/. This could give you more flexibility in terms of keeping user sessions, and putting some assets to be served by the GAE edge caching. Hope this helps! Em segunda-feira, 10 de agosto de 2015 07:09:22 UTC-3, Hafiz Junaid escreveu: > > I'm trying to install Moodle on google app engine. While uploading files > from my local deployment, the 10,000 files maximum limit is reached so I'm > unable to push my code base to the live server. Has anyone else tried this > before? Is there a different way to achieve this? Please share your > experiences if you have tried something similar. > > Thanks. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/d5c738b4-4941-47b9-8063-dc44ab501bd2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
