I'm using the quiz module as a formative assessment tool. My class of 25 students are basically doing mastery learning via quizzes and my host says that my "resource use" has spiked 100% when I decided to do this.
- Are there any tips on that I can do from Moodle's end?
- Will putting all of the questions on a single page reduce CPU?
- Are there any settings in the Administrator settings that can reduce CPU load?
- Will any of things that curt bixel did actually help reduce CPU load?
(Split from "The quiz function of moodle 2.3.2 seems to put quite a strain on a server" https://moodle.org/mod/forum/discuss.php?d=213259#p929261
Edited by Visvanath Ratnaweera - original submission Friday, 2 November 2012, 3:33 AM)
I'm not Tim, not Bill either: https://moodle.org/mod/forum/discuss.php?d=212639#p926754. Hope you still don't mind my 2 cents.
Don't you think that your host needs to be more specific about this 100% spike? Is it supposed
to mean that the higest peak load recorded after you've introduced the assesment is double the peak observed before that? Is this the only change you've made? I mean did you have the assesment going on all the time, but upgraded to 2.3? From? Or you had 2.3 all the time it the new assesment?
> Are there any tips on that I can do from Moodle's end?
Sure, the application need to be optimized. Submit a detailed bug report.
> Will putting all of the questions on a single page reduce CPU?
I would have though putting one question per page would distribute the load.
> Are there any settings in the Administrator settings that can reduce CPU load?
There are various hints mentioned in the documentation and discussed here. There is also a Performance FAQ, provided you can sort out the mess: https://moodle.org/mod/forum/discuss.php?d=193518.
> Will any of things that curt bixel did actually help reduce CPU load?
The intro says, "once you could solve the problem, summarize solution by replying to the thread, providing links to the documentation, discussions or tracker issues that helped you. Tag that post by adding [Solved] to the subject line." Unfortunatly either people don't read or they don't care.
Hmm that may be a good idea, to put one question on each page to distribute the load rather than one massive CPU spike to generate the first page.
The issue is to prevent the server from being slammed by 100's of requests all at once.
I have an idea on the following link:
What do you think of my idea? That the Moodle Quiz module should stagger the quiz starts automatically. Perhaps an AJAX response like "Please wait in queue, server is rending quizzes for 3 students..."
I've seen multiple posts where Tim Hunt mentions that teachers should "yell" at their children to not start the quiz at the same time. "Think of the server!!"
Here's a post of Tim's that approves the idea of simply making a long password for the quiz. It will take everyone a different amount of time to type in the password which prevents everyone from pressing the button at the same time.