Load testing V2.8.x

Load testing V2.8.x

by Constance Horne -
Number of replies: 3

I have review the few posts here that deal with load testing but cannot figure out how to do it for v2.8.

Any advice would be appreciated.

Has anyone ever created a load test with Visual Studio 2015 RC?

Also, is there a way to delete all info on courses taken (but leave all the users, etc) so I could load-test as if no one has ever taken a course, i.e. hit the database hard?



Average of ratings: -
In reply to Constance Horne

Re: Load testing V2.8.x

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I wrote http://tjhunt.blogspot.co.uk/2014/04/load-testing-moodle-262-at-ou.html just over a year ago, and that is still what we do. (We upgraded to Moodle 2.8 this morning as it happens. Fingers crossed when we get in tomorrow and look at the performance data from the live servers, it shows the same small perf improvements we saw in load-testing.)

So, most people in the Moodle world use JMeter, not Visual Studio, and some of those tools have been shared.

You are right to think about reset, because if your load-test scripts keep posting to the same forums until you have 200-post forum threads, then your strangely those threads take longer to display that the 10-post threads you started with wink

You may be able to use Moodle's course reset feature (or a simple script that calls the same back-end code) to do that.

But, I would not necessarily worry about resetting the whole site. When we load-test (on a copy of our system) the simulated load targets just a handful of courses (that we have selected with a bit of care). We leave all the data of the other courses, so that the size of the database is about the same as on our live site. I mean, "test as if no one has ever taken a course" is artificial. You want to test as if 1000s of people have already taken a course, and 100s more people start a new course (whatever numbers are realistic for you).

Average of ratings: Useful (1)
In reply to Constance Horne

Re: Load testing V2.8.x

by Jeff White -
I would try out Jmeter and Moodle already has a tool that will make your test course for you along with the test run. I had success with it when load testing my environment and tweaking settings to improve performance. 


https://docs.moodle.org/25/en/JMeter_test_plan_generator

You might want to look at this post I made a while back if your wanting to find out how many concurrent users your environment can support using the jmeter test plan generator. https://moodle.org/mod/forum/discuss.php?d=313489&parent=1255346