We have a Moodle site running on Amazon configured via Elastic Beanstalk. The problem is, the site takes roughly 3 - 5 seconds to load each page. This is pretty frustrating to admins. I've tried resolving this by simply adding more 'ram' or 'v-cpu' onto the stack but it's not helping. I have also created a mem-cache and connected it to the site, but again, it's not really making a huge difference.
The funny part is, my local site, running on Docker is loading very quickly (1 second) in comparison, which is often the opposite in my experience. Here are the full specs:
Elastic Beanstalk - Ohio region:
Web: 2 x EC2 t2.large instances
- Moodle data is on a shared AFS
- Moodle core + modules are on the web servers directly, pushed via GIT deploys
Database: 1 x RDS t2.medium instance
- MySQL 5.7.19
- General purpose 20GB SSD
Cache: Elasticache Mem-Cache t2.small
I also have a worker instance that pings cron every 1 minute, but turning that off gives no performance gains.
We are using EdWiser UI but doubt this is the problem. Though I will test their single-sign-on to see if maybe there is some interference there.
- Have you deployed an AWS Moodle build and gotten 1-second page loads?
- ^ If so, what were your specs?
- Is there anything glaring that you see with my configuration?