Managing Moodle Performance Testing Paul Stevens
-
Upload
ireland-uk-moodlemoot-2012 -
Category
Presentations & Public Speaking
-
view
135 -
download
0
description
Transcript of Managing Moodle Performance Testing Paul Stevens
![Page 1: Managing Moodle Performance Testing Paul Stevens](https://reader035.fdocuments.in/reader035/viewer/2022081400/554dcd1ab4c905c2488b55d5/html5/thumbnails/1.jpg)
Moodle Load TestingPresented by Paul Stevens // 17 April 2014
![Page 2: Managing Moodle Performance Testing Paul Stevens](https://reader035.fdocuments.in/reader035/viewer/2022081400/554dcd1ab4c905c2488b55d5/html5/thumbnails/2.jpg)
Who am I?
●Originally a Sysadmin●10 years of Biometrics and Telco Developments●3.5 Years with Catalyst●First project was delivering Totara LMS●Delivered several Moodle Infrastructures from 200 – 2 Million Users●Now MD of Catalyst's Europe Office
![Page 3: Managing Moodle Performance Testing Paul Stevens](https://reader035.fdocuments.in/reader035/viewer/2022081400/554dcd1ab4c905c2488b55d5/html5/thumbnails/3.jpg)
How size do we need our Moodle Infrastructure, how much will it cost?
●What Set-up do we need?
●Need best estimate of:–Number of users–Number of courses–Number of plug-ins/Customisations–Redundancy Requirements–Access Requirements–Number of concurrent users
![Page 4: Managing Moodle Performance Testing Paul Stevens](https://reader035.fdocuments.in/reader035/viewer/2022081400/554dcd1ab4c905c2488b55d5/html5/thumbnails/4.jpg)
But what is a Moodle concurrent user?
●Most common contracted measurement - however it has the least clear definition●What “Concurrent Users” has meant on real projects:–Number of Logged in users at the time–Number of Logged in users over a time period–Users completing a SCORM or specific task–Number of concurrent views according to Google Analytics–Users viewing a page at that second (Page Views)
![Page 5: Managing Moodle Performance Testing Paul Stevens](https://reader035.fdocuments.in/reader035/viewer/2022081400/554dcd1ab4c905c2488b55d5/html5/thumbnails/5.jpg)
To size your system 'Concurrent User' requirement must be Defined!
●Decide how you are going to measure it–My Favourite is Page Views●Do your best to predict–User usage patterns–Type of usage on the system–Guess at load increase–over time●Devise a best guess peek●Add a margin of error
![Page 6: Managing Moodle Performance Testing Paul Stevens](https://reader035.fdocuments.in/reader035/viewer/2022081400/554dcd1ab4c905c2488b55d5/html5/thumbnails/6.jpg)
Most common ways to implement a Moodle
●Bare Metal Internal infrastructure●Internal Shared Virtualised infrastructure – VMware or KVM●Outsourced Infrastructure – Bare Metal or Cloud●Outsourced Turnkey Solution with a Moodle Partner
most set-ups the Moodle DatabaseSet-up is the Performance Achilles Heal
![Page 7: Managing Moodle Performance Testing Paul Stevens](https://reader035.fdocuments.in/reader035/viewer/2022081400/554dcd1ab4c905c2488b55d5/html5/thumbnails/7.jpg)
LoadTesting
![Page 8: Managing Moodle Performance Testing Paul Stevens](https://reader035.fdocuments.in/reader035/viewer/2022081400/554dcd1ab4c905c2488b55d5/html5/thumbnails/8.jpg)
Setting up the load test
●Build your Chosen Environment, preferably with every element●Tune everything as best you can●Automate your scripts, so you can repeat many times – we use Jmeter and Bees with Machine guns●Test from the networks your users use●Set-up your monitoring●Record your results and your monitoring
![Page 9: Managing Moodle Performance Testing Paul Stevens](https://reader035.fdocuments.in/reader035/viewer/2022081400/554dcd1ab4c905c2488b55d5/html5/thumbnails/9.jpg)
Find the Bottleneck..
Fix..
Repeat..
![Page 10: Managing Moodle Performance Testing Paul Stevens](https://reader035.fdocuments.in/reader035/viewer/2022081400/554dcd1ab4c905c2488b55d5/html5/thumbnails/10.jpg)
Setting up the load test
●Build your Chosen Environment, preferably with every element●Tune everything as best you can●Automate your scripts, so you can repeat many times – we use Jmeter and Bees with Machine guns●Test from the networks your users use●Set-up your monitoring●Record your results and your monitoring
![Page 11: Managing Moodle Performance Testing Paul Stevens](https://reader035.fdocuments.in/reader035/viewer/2022081400/554dcd1ab4c905c2488b55d5/html5/thumbnails/11.jpg)
Ways to tweak to make Moodle to perform better..
●More hardware●More bandwidth●Better code●A better Software stack●A better hardware configuration●Tweaking the Software stack
●And runs tests again..
![Page 12: Managing Moodle Performance Testing Paul Stevens](https://reader035.fdocuments.in/reader035/viewer/2022081400/554dcd1ab4c905c2488b55d5/html5/thumbnails/12.jpg)
How to deal with the Political Pressure.
●Are you sure it wont crash and burn?
●We need to Launch tomorrow..
●Why do you need to spend so much time testing?
●The Definition of 'Concurrent Users' is wrong it should be..
![Page 13: Managing Moodle Performance Testing Paul Stevens](https://reader035.fdocuments.in/reader035/viewer/2022081400/554dcd1ab4c905c2488b55d5/html5/thumbnails/13.jpg)
Our Preferred Set-up for Performance
●Ubuntu Linux●Niginx●PHP-FPM●APC●Postfix for the DB
What to look out for:●Lack of RAM●Bad disk IO●Network Latency●Poorly tuned DB servers●Lack of PHP accelerator
![Page 14: Managing Moodle Performance Testing Paul Stevens](https://reader035.fdocuments.in/reader035/viewer/2022081400/554dcd1ab4c905c2488b55d5/html5/thumbnails/14.jpg)
Questions?