Moodle scaling and performance

Specific techniques for running Moodle at scale: clustering, sessions, caches, database replicas, file serving and preparing for peak load.

Moodle Redis session handler setup

Moving Moodle sessions to Redis: the session_redis settings, multiple hosts and TLS, lock timeouts and warnings, serializer and compression options, and read-only sessions for pages that do not need a lock.

Moodle cache stores: Redis, APCu and file

Mapping Moodle cache definitions to stores: application, session and request modes, APCu for hot local data, Redis as the shared store, file caches for large items and testing the mapping under load.

Moodle database read replicas

Offloading reads to PostgreSQL or MySQL replicas: the readonly dboptions, replication latency settings, excluding tables, and what read replicas do and do not fix for a slow Moodle.

Preparing Moodle for exam-day quiz load

Getting a Moodle site through hundreds or thousands of simultaneous quiz starts: load testing, session and cache configuration, pausing heavy scheduled tasks, database headroom and a runbook for exam day.

Profiling slow Moodle pages

Finding the cause of slow pages: the profiling admin tool, performance report, slow query logging, session lock warnings and turning findings into configuration or code fixes.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.