+ All Categories
Home > Presentations & Public Speaking > Managing Moodle Performance Testing Paul Stevens

Managing Moodle Performance Testing Paul Stevens

Date post: 09-May-2015
Category:
Upload: ireland-uk-moodlemoot-2012
View: 136 times
Download: 0 times
Share this document with a friend
Description:
Managing Moodle Performance Testing Paul Stevens Presented at Edinburgh Moodlemoot 2014 www.moodlemoot.ie
14
Moodle Load Testing Presented by Paul Stevens // 17 April 2014
Transcript
Page 1: Managing Moodle Performance Testing Paul Stevens

Moodle Load TestingPresented by Paul Stevens // 17 April 2014

Page 2: Managing Moodle Performance Testing Paul Stevens

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

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

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

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

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

LoadTesting

Page 8: Managing Moodle Performance Testing Paul Stevens

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

Find the Bottleneck..

Fix..

Repeat..

Page 10: Managing Moodle Performance Testing Paul Stevens

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

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

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

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

Questions?


Recommended