We have a course that has 1100 students and 46 grade items currently.
When we run a grade recalculation or change a grade item weighting, the server takes a huge hit as it runs a huge amount of DB queries and opens a lot of DB connections.
We've increased the size of our staging server in order to test this and try resolve the issue. We've increased it to AWS EC2 m4.4xlarge instance (64Gb RAM and 16 2.4 GHz cores). For now it seems to be helping, the site becomes unresponsive for the user that initiated it but that's fine. The problem is that it locks all other user's from accessing assignments. They can navigate the site fine but as soon as you try and open an assignment it just loads and loads.
How can we resolve this as the grade calculations can take hours to complete which is not ideal for our users. We have students all over the world so doing it during off peak hours isn't really an option either as it's always peak for some people.
We are running moodle 2.9. There is a long term plan to upgrade to 3.1 but that won't happen in the next month. Is there any short term solution for now?