Using AWS for Moodle

Re: Using AWS for Moodle

by Eduard TC -
Number of replies: 4

Hi Edilberto,

If you want you can check this elastic beanstalk environment config. This way you can forgot the Server maintenance forever ;) 

I used it but have no performing tests

-> https://github.com/Tulkis/aws-ebs-moodle

Hope it helps!

Regards,

Eduard. 

In reply to Eduard TC

Re: Using AWS for Moodle

by Tawfik Daim -

Hi Eduard

I love the idea, didn't know about this option before but it seems brilliant in my case where I could have 1000's of students and possibly increasing more an more.

So if I can setup this option and grow as my students grow. 

Only comments when I first looked at the link you gave it seems was done for WordPress so does it work exactly for Moodle

In reply to Tawfik Daim

Re: Using AWS for Moodle

by Eduard TC -

Hi Tawfik,

Yes I used the wordpress documentation and adapt it to moodle, only some changes made like moodle data directory mount.

Regards,

Eduard.

In reply to Eduard TC

Re: Using AWS for Moodle

by Julian Pool -

How would you go about updating the moodle framework to a newer version, whilst keeping your current configuration?

In reply to Julian Pool

Re: Using AWS for Moodle

by Ron Meske -
Picture of Particularly helpful Moodlers

Hi Julian,

I am assuming you are referring to upgrading a Moodle install on a AWS configuration using auto-scaling.  The procedure isn't much different then upgrading a single server.

Though I have not used auto-scaling for Moodle, the approach I would take is:

  1. Change the configuration of auto-scaling to 1 EC2
  2. Put Moodle into Maintenance mode
  3. Make a backup of Moodle install and data.  Exactly how depends on your configuration.  You just want to be able to restore everything back to the way it was should something break.  Snapshots are usually a simple solution.
  4. Perform the Moodle upgrade and test thoroughly.
  5. Create a new AMI to be used for auto-scaling
  6. Modify your auto-scaling config to use the new AMI
  7. Start up a new EC2 instance with that AMI
  8. Place the new EC2 in the auto-scaling group and remove the old one
  9. Adjust your auto-scaling group back to the number of EC2 instances you need

Again, the above is a general guideline and you will want to verify all the steps are correct for your particular install.

Just an FYI - The configuration I use has a  single medium EC2, RDS to offload the database functions, and a Load Balancer to offload SSL.  This easily handles between 25-50 users being signed on at once.  I have not really monitored to determine exactly home many concurrent connections this handles or if I really need the RDS or Load Balancer.

Hope this helps.

Ron

Average of ratings: Useful (2)