When Moodle high availability is worth the complexity
For a university running end-of-term exams, a bank's training function delivering mandatory compliance courses, or a public body with statutory learning deadlines, a Moodle outage is not an inconvenience. It stops assessments and leaves staff unable to meet obligations. High availability means several stateless web nodes, shared state and a tested failover path, not simply adding a second server. A load balancer in front of two identical web servers still fails the moment the files, sessions, caches or database behind them are local to one node or unavailable.
The difficulty is that each shared component has its own failure mode. The moodledata directory holds uploads, backups and caches and must be readable and writable from every web node, so the shared file storage becomes a dependency for every request. Sessions and application caches must be shared, or users are logged out or see stale data when the load balancer moves them. The database needs replication and a tested promotion procedure, and Moodle's connection settings must follow the failover. Cron is easy to overlook: if scheduled tasks run on every node, they duplicate work, and if they run on none, grading, notifications and reports silently stop.
Before committing, confirm the outage cost in hours and in exam or training dates, then ask whether a single well-sized server with tested backups and a documented restore meets the recovery target. If it does not, plan a staged test with failover drills, a rehearsed cron design and named owners for each component. Confirm with your Moodle partner and database vendor which versions and replication options your target release supports, starting from the Moodle releases page.
How the HA parts fit together
A learner's request starts at the public edge, where the load balancer spreads traffic across several Moodle web nodes in the application tier. Each node reads and writes the same shared moodledata storage and uses shared cache and session stores, so a user can land on any node and keep their session. Every node connects to the replicated database in the data tier, and a separate cron or task worker runs scheduled and ad hoc jobs against the same shared storage and database. Check that each boundary is crossed only by the traffic you intend, and confirm with your database and storage vendors how replication and failover behave for Moodle.
Traffic enters at the edge and every application node shares the same data tier.
Which components must be shared and which must not
A Moodle high availability design works only when every web node behaves the same way for any user request. The cards below separate the state that must be common to all nodes from the state that each node or worker should keep to itself, and they flag the document root change that applies from Moodle 5.1.
Load balancer and session affinity
The load balancer distributes requests across web nodes and decides whether a user stays on one node. Session data should live in a shared store, so affinity is a performance choice rather than a requirement for login to work. Check that health checks test a real Moodle page, that timeouts suit long quiz submissions and file uploads, and that the balancer passes the original client address to Moodle for logging and reverse proxy settings.
- Document root from 5.1
- /public
Web nodes stay identical
Each web node runs the same Moodle code version, the same PHP build and the same config.php. Code is deployed to every node from one release, never edited on a single server, so an upgrade is rolled out in step. Only the local web server and PHP process are node-specific. Confirm that the web server document root points to the /public directory on every node, because a node left on the old root may show directory listings or errors.
- Minimum PHP for 5.1
- 8.2
Moodledata on shared storage
The moodledata directory holds uploaded files, course backups, temporary files and some caches, and every web node and cron worker must read and write the same copy. Use a network file system or object-backed storage that all nodes mount at the same path, and set the same ownership on every node. Keep moodledata out of the web root. Ask the storage team how file locking and latency behave under concurrent exam uploads, because slow shared storage shows up as slow pages across the whole site.
Database replication and writes
Moodle expects one consistent database, so all web nodes should write to a single primary and read from replicas only where Moodle is known to tolerate replication lag. Replicas that lag behind the primary can show students stale grades or completion status right after submission. Confirm the database version for your target release, since Moodle 5.3 requires PostgreSQL 17 or MariaDB 11.4 and Moodle 5.1 requires PostgreSQL 15 or MariaDB 10.11. Test failover, not only replication.
Shared cache and session stores
Moodle's application caches and session handling must use stores that every web node can reach, such as a shared Redis or Memcached service, rather than the default file-based stores on each node's disk. A local cache on one node serves stale configuration to the others after a change. Confirm which cache definitions each store supports, configure session handling in Moodle's session settings, and test that a logout or setting change on one node takes effect on all of them.
Cron and ad hoc task workers
Scheduled cron and ad hoc tasks, such as sending messages, processing completions and generating reports, must run once per task rather than once per web node. Run cron from a dedicated worker or a single scheduler, not from each web request, and scale ad hoc task runners separately from web capacity during exam periods. Ask for a plan that shows the cron host, its schedule, the number of concurrent runners and how long the queue takes to drain at peak load.
Decisions that shape the HA design
This table compares the main design choices for a highly available Moodle site: session handling, moodledata storage, database topology and cron placement. Read each row for when the option fits and what it asks of your operations team, then confirm the details against your own hosting environment and Moodle's documentation for your release.
| Decision | Option | Trade-off | When it fits |
|---|---|---|---|
| Session handling | Sticky sessions at the load balancer | Simple to set up, but a failed web node drops the users pinned to it and uneven load builds up over time | Small pilots or short-term exam windows where losing some sessions is acceptable |
| Session handling | Shared session store (Redis or database) | Any node can serve any user, but the session store becomes a critical dependency that needs its own monitoring and failover | Sites where users must move between nodes without re-login during exams |
| moodledata storage | NFS or similar shared network file system | Familiar and widely supported, but file locking, latency and the NFS server itself need careful tuning and testing | Teams with existing NFS skills and a moderate volume of uploads and backups |
| moodledata storage | Clustered or object-backed storage | Scales further and removes a single file server, but adds platform cost and needs validation with Moodle's file handling and backup tools | Large sites with heavy file use where storage growth is the main constraint |
| Database topology | Primary with read replica | Reads can be offloaded, but Moodle does not split reads and writes for you, so replica use needs explicit configuration and lag checks | Sites with heavy reporting or read-only workloads that can tolerate replication lag |
| Database topology | Managed or clustered database service | Failover is handled by the platform, but you depend on its supported engines and versions for your Moodle release | Teams that want automated failover and have confirmed engine support for their Moodle version |
| Cron placement | Cron on every web node | No extra servers, but tasks can run in parallel across nodes and need locking and careful timing | Small deployments where task volume is low and cron locks are verified |
| Cron placement | Dedicated cron or ad hoc task node | Predictable task load and easier monitoring, but one more server to patch, back up and watch | Large exam loads where background tasks must not slow down student requests |
How to build a multi-node Moodle cluster
This sequence takes a single Moodle site to several identical web nodes behind a load balancer, with shared file storage, a replicated database, shared caches and sessions, and a controlled cron runner. Each step closes with a check so the next layer is built on a verified one.
Confirm PHP and database versions for the target release
Before any infrastructure is provisioned, the team confirms the target Moodle release and checks its requirements against the PHP and database versions in the environment. For Moodle 5.1, the release notes call for 64-bit PHP 8.2 or later (8.3 and 8.4 supported) and PostgreSQL 15, MySQL 8.4, MariaDB 10.11 or Microsoft SQL Server 2017 or later. For Moodle 5.3, PHP 8.3 or later (8.4 supported), PostgreSQL 17, MySQL 8.4, MariaDB 11.4 or SQL Server 2019 or later are required. Confirm the current site is on a version that can upgrade to the target. The step closes when a written version matrix is signed off by the platform owner and the database vendor's support status has been checked for every node image.
Prepare shared moodledata storage
The platform engineering team mounts one shared file store on every web node at the same path for moodledata, which holds uploaded files, caches and temporary data. Ask the storage vendor or cloud provider to confirm locking and POSIX behavior, latency and throughput for many concurrent PHP processes, and backup coverage. Set matching ownership and permissions for the web server user on each node. The step closes when a test file written from one node is readable and writable from all others, and the mount survives a node reboot.
Configure the database replica and failover
The database team sets up a primary and at least one replica with the vendor's native replication, then configures Moodle to use the primary for writes. Decide how failover is triggered, whether by an operator or an automated manager, and who approves promotion. Confirm the replica lag that is acceptable for Moodle's read patterns, and document how the application reconnects after promotion. The step closes when a planned failover has been run in a non-production copy, Moodle returns to normal operation, and no data loss is recorded against the test writes.
Add shared cache and session stores
Sessions and application caches must be shared across nodes, or users will be logged out or see stale data when the load balancer moves them. Configure a shared session store and a shared cache store in Moodle's cache configuration, using a service that every node can reach over the private network. Confirm the chosen store is supported for the Moodle release in use and that sessions are not tied to individual node memory. The step closes when a logged-in test user can be routed between two nodes without losing the session, and cache purge from the admin interface takes effect on both nodes.
Bring up identical web nodes on the /public document root
The web team builds each node from the same image, with the same PHP version, extensions and configuration files, then points the web server document root to the /public directory of the Moodle code from Moodle 5.1 onward. Pointing the root at the main Moodle folder can expose directory listings or cause errors. Config.php is kept identical across nodes apart from any node-specific values. The step closes when every node returns the same login page and admin page under the same hostname, and a configuration diff between nodes shows no unexpected differences.
Configure load balancer health checks
The network team places the nodes behind a load balancer and defines a health check that tests a page that depends on PHP and the database, rather than only a TCP connection. Set session affinity only if the shared session store is not yet verified, since the goal is that any node can serve any request. Confirm how the balancer removes and returns nodes, and how long it waits before taking a failing node out of rotation. The step closes when a node with its web service stopped is removed from traffic automatically and returns to service when restored, with no user-visible error during the transition for a logged-in test user.
Move cron to a controlled task runner
Moodle's cron and ad hoc tasks must run on one controlled schedule, not on every web node, to avoid duplicate processing during large exams and reporting jobs. Disable the web-triggered cron on the nodes, configure a single scheduled runner that calls the Moodle cron entry point, and monitor it for overruns. Plan separate worker capacity for ad hoc tasks if exam volumes are large, and test that scheduled jobs complete before the next run starts. The step closes when the runner's logs show each scheduled task executed once per interval during a load test, and a failed runner triggers an alert.
How the design changes by deployment model
A single node runs the web server, PHP, the database and moodledata on one host, so there is no load balancer, no shared storage and no failover. It is the simplest model to build and the one most teams use for pilots, test environments or small course loads. Its availability depends on one machine, so a hardware fault, a failed disk or a bad upgrade stops the whole site.
- Storage: moodledata sits on local disk, which is fast but cannot be shared with a second server.
- Database: one database instance with regular backups, and restore time is the main recovery measure.
- Cron: the Moodle cron runs on the same host through a single scheduled job, so there is no coordination problem.
- Caches and sessions: local stores are usually enough because only one web process pool serves requests.
- Trade-off: you gain simplicity and lower cost, and you accept that planned maintenance is also downtime.
Before you choose this model for exam periods, confirm with your administrators how long a restore from backup takes and whether that fits the exam calendar.
A multi-node VM cluster in a data center runs several web nodes behind a load balancer, with shared moodledata storage, a replicated database and shared caches and sessions. Each component must be redundant, because removing any one of them reintroduces a single point of failure. Your network team, storage team and database team all own parts of the design, so the build needs clear ownership before work starts.
- Storage: moodledata lives on shared storage mounted identically on every web node, and the mount options must be tested under concurrent uploads.
- Database: a replicated database with a defined failover procedure, and you must confirm that the chosen engine and version are supported by the Moodle release you run.
- Cron: run the Moodle cron on one designated node or as a separate worker, so scheduled tasks do not run twice on every node.
- Caches and sessions: move sessions and application caches to shared stores that every node can reach, so a user does not lose a session when the load balancer moves them.
- Web root: from Moodle 5.1, point the web server document root at the
/publicdirectory on every node.
Before you build, ask your platform team to confirm the load balancer session affinity settings and the failover test plan for each shared component.
On Kubernetes or another container platform, web nodes become replicated pods, and the platform handles scheduling, restarts and scaling. The design principles stay the same, but the platform changes how storage is provisioned, how cron is scheduled and how configuration reaches each container. Container images, persistent volumes and the database operator each need their own ownership and upgrade process.
- Storage: moodledata needs a persistent volume that supports concurrent access from several pods, and you must confirm that your storage class offers this mode.
- Database: a managed database or a database operator with replication, which you should verify against the Moodle database requirements for your release.
- Cron: use a dedicated scheduled job or a single cron deployment, rather than running cron inside every web pod.
- Caches and sessions: deploy shared cache and session services as separate workloads that the web pods reach over the cluster network.
- Upgrades: build new images for each Moodle release and roll them out with a tested procedure, instead of patching running containers.
Confirm with your platform team which storage classes, operators and managed services exist in your own environment, since these vary between clusters and cloud accounts.
An air-gapped network has no route to the public internet, so every package, plugin, update and AI or external service must be brought in through a controlled process. The high availability pattern is the same as in a data center, but the supporting services are local. Plan the transfer procedure early, because each Moodle update, security release and plugin needs a path through your change control.
- Packages: Moodle code, plugins and security releases arrive through a reviewed media transfer, and you need a local copy of every dependency.
- Storage and database: all shared storage and database replication stays inside the isolated network, which simplifies data handling reviews.
- Cron and external calls: scheduled tasks that depend on external services will fail, so review each one and disable or replace it.
- Identity: SSO must point to an identity provider inside the enclave, not a public service.
- Updates: plan a fixed cadence for importing security releases, because delayed imports leave the site exposed.
Confirm with your security team which transfer and approval steps apply, and whether any Moodle feature you need depends on an external service.
What drives the effort and how to keep it down
This table lists the factors that most change the build and run effort for a high availability Moodle deployment, with the practice that keeps each one under control. Read each row as a lever: the driver on the left is what grows the work, and the right column is what your team or partner should decide early. The main takeaway is that peak exam load, shared file storage and the number of plugins touching sessions or files shape most of the effort.
| Driver | Why it changes effort | How to keep it down |
|---|---|---|
| Concurrent users and exam peaks | Peak logins, quiz attempts and cron load set the number of web nodes, database capacity and cache sizing. Peaks, not averages, drive the design. | Size for the exam peak measured in a load test, confirm the peak window with the academic calendar, and scale web nodes horizontally rather than oversizing one server. |
| Data volume in moodledata | Large file stores slow backups, replication of shared storage and restore tests, and grow with each course cycle. | Set file retention rules, archive old course backups off the live store, and test restore time against the recovery target you agree in writing. |
| Plugins and integrations touching sessions or files | Each plugin that writes to sessions, caches or moodledata adds a failure mode across nodes and must be checked on every upgrade. | Limit contributed plugins to those with a clear need, confirm each one stores state in shared caches or the database, and remove unused plugins before go-live. |
| Number of environments | Development, test, staging and production each need the same multi-node layout, so the build and configuration work multiplies. | Keep one golden image or infrastructure definition, change it through version control, and promote the same build to every environment. |
| Compliance evidence needs | Assessors may ask for change records, backup and restore test results, access logs and configuration baselines, which add documentation work. | Confirm the evidence list with your compliance team before design, and generate logs, backup reports and configuration records as part of normal operations. |
| Team's existing skills | Teams unfamiliar with load balancers, replicated databases, Redis-style shared caches or PHP session handling need more design review and training time. | Agree which components your team will run, document the runbooks, and ask a partner to cover the parts your staff have not yet operated in production. |
Securing shared state, sessions and secrets
A highly available Moodle site shares more state across nodes than a single server does: the moodledata directory, the database, caches, sessions, configuration secrets and the load balancer itself. Each of those shared pieces is a place where a weak control exposes every node at once, so the controls below should be designed together rather than added after the cluster is running.
Encrypting moodledata in transit and at rest
The moodledata directory holds uploaded files, backups, session data and caches, and every web node reads it. Encrypt the shared volume at rest through the storage platform, and use encrypted protocols such as NFS over TLS or an encrypted block layer where the platform supports them. Confirm with your storage vendor which options are available in your environment, and test that a restored snapshot is still encrypted.
Restricting access to the shared file store
Limit mounts of the shared file store to the Moodle web and cron nodes, and set ownership so that only the web server user can write to moodledata. Exclude moodledata from the public document root so that no file can be fetched by direct URL. Review export and snapshot permissions, since a readable snapshot exposes every user file on the site.
Isolating and authenticating cache and session stores
Shared session and cache stores such as Redis or Memcached often run without authentication on a flat network. Place them on a private subnet reachable only from Moodle nodes, enable authentication where the product supports it, and disable any administrative commands that are not needed. Confirm each cache store's authentication and TLS options with its own documentation before relying on them.
Managing database credentials and config.php secrets
Every node reads config.php, which holds database credentials, the wwwroot and the secret values Moodle uses. Keep these values out of the code repository, deliver them through a secrets manager or a protected file that is written at deploy time, and rotate them on a schedule. Use separate database accounts for web, cron and administrative tasks, with the minimum privileges each needs.
Locking down the load balancer admin plane
The load balancer sits in front of every node, so its management interface is one of the most valuable targets in the design. Restrict admin access to a bastion or management network, require MFA and named accounts for changes, and log configuration edits. Also check that the balancer does not expose internal node addresses or health endpoints to the public internet.
Limiting who can run cron and CLI tasks
Cron and CLI tasks run with full access to the database and moodledata, so they are a privileged path. Run the cron service from one designated node or a dedicated worker, and restrict shell access to administrators who are named and audited. Keep the CLI and cron user separate from the web server user, and review who can trigger ad hoc tasks from the administration interface.
How to prove the cluster fails safely
Agree the pass and fail thresholds before anyone touches the cluster. A failover test without written thresholds tends to end in an argument about whether a 30-second login error was acceptable. Record the target for each test in advance: how long a session may be interrupted, how many failed requests are tolerable during a node loss, how long database promotion may take before users see errors, and how many cron runs may be missed or doubled. Ask the team that owns the environment to sign off on these numbers, and keep the document with the test evidence so the same criteria apply on every retest after a change.
Run the failure sequences in a fixed order on a production-like copy of the environment. Start with a live session: a test user uploads a file, submits a quiz attempt and posts in a forum while a load generator keeps sessions active, then stop one web node and confirm that the load balancer drains it, that the session survives because sessions sit in the shared store, and that the quiz autosave and file upload complete. Next, stop the database primary and confirm that the replica is promoted, that Moodle reconnects through the configured endpoint without a manual config change, and that no writes are lost. Then unmount or block the shared moodledata mount on one node to see how Moodle and the cache layer behave, and restore it to confirm recovery. Finally, replay an exam-start pattern (many logins within a short window, followed by simultaneous quiz opens) against the load balancer and watch the database connection count, PHP worker queues and cache hit rates.
Treat cron as its own test. Check that scheduled tasks and ad hoc tasks run on exactly one node at a time, for example by reviewing task logs and the mdl_task_log table for duplicate or missing entries across the failover and the exam-start load. Record what you saw as evidence: timestamps of each injected failure, load balancer and database events, Moodle error and cron logs, the thresholds you agreed, the observed result against each one, and any deviation with its cause. Ask your partner or internal team to state which evidence they will hand over and in what format before the first test starts, so the report answers the questions your CISO and operations leads will ask.
What to monitor, back up and document after go-live
A multi-node Moodle platform fails in places a single server never did: at the load balancer, in replication, in shared caches and in files nobody watches. The cards below cover what to watch, how to back up and prove recovery, and what to write down so the platform survives staff changes and upgrade cycles.
Load balancer and web node health
Configure health checks that request a real Moodle page through each web node, not just the TCP port, so a node with broken PHP-FPM or a stale code deployment is removed from rotation. Track per-node response times and 5xx rates separately, because one unhealthy node can hide behind a healthy average. Confirm session affinity settings match your session store design before exam week.
Moodle releasesPHP-FPM and replication lag
Watch PHP-FPM worker saturation and queue wait on every web and cron node, since exhausted workers look like slow logins rather than errors. On the database side, track replica lag against the primary, because a learner who submits a quiz and reloads a stale replica can see incorrect results. Set alert thresholds with your database team and test failover so the application's connection behavior is known.
Cache and session store health
Monitor the shared cache and session stores for memory pressure, evictions, connection errors and latency, because a degraded store slows every node at once. Confirm that Moodle's configured cache stores are reachable from all web and cron nodes and that a restart of one store does not log users out unexpectedly. Record which store holds sessions and which holds application caches, since they fail and recover differently.
Cron queues and ad hoc tasks
Track the scheduled task queue and the age of pending ad hoc tasks, since backlogs during large exam loads delay grade calculation, notifications and file cleanup. Run cron from a dedicated node or workers rather than from web nodes, and alert when the last successful run is older than your expected interval. Review long-running tasks before each exam period so one slow task does not block the queue.
Moodledata growth and disk alerts
The shared moodledata volume grows with uploads, backups, temporary files and cached content, and it fills without warning. Set alerts on free space and on growth rate, not only on absolute capacity, and confirm that the cleanup tasks Moodle runs are completing. Check that the volume's mount is present on every node, because a missing mount can make files appear to be absent for users on one node only.
Backups that cover database and moodledata together
Take database and moodledata backups at the same point in time or with a documented consistency method, because a restored database that references files missing from moodledata produces broken courses. Include the configuration file and the code version used on each node. Run restore drills into a separate environment on a schedule, and record how long a full restore took so recovery time is based on evidence.
Runbook and upgrade planning
Write a runbook that covers node addition and removal, cache and session store failover, cron recovery, database promotion and the steps to roll back a Moodle code change. Plan upgrades against the published release and support dates, and schedule them outside exam windows with a staging rehearsal. Ask your partner or internal team to confirm which Moodle release is current at go-live and which security support window applies to it.
- Next LTS release
- 5.3
Questions buyers ask before building Moodle HA
What does a Moodle high availability build cost and what drives it?
The cost depends mostly on the size of the environment, the number of web nodes, the database and storage design, and how much testing the exam calendar requires. Moodle itself is GPL-3.0 licensed, so the spend is on infrastructure, engineering time and ongoing administration rather than on the core software. Infrastructure is recurring: compute for several web nodes, a replicated database, shared file storage for moodledata, and cache and session services. Engineering is largely one-time: architecture, build, load testing and cutover. Ask any partner for a quote that separates these items, lists the infrastructure you will pay for directly, and states which environments (staging, load test, production) are included. Compare the written scope, not a headline figure.
How long does it take to design and test a Moodle HA cluster?
The timeline depends on how much of the platform already exists and how many integrations must be re-tested around the new topology. Design work covers the load balancer, session and cache layer, database replication, shared storage and cron. Testing takes longer than most teams expect, because failover, node loss during a quiz, and cron behavior under peak load all need to be exercised. Schedule the build against your exam calendar, and leave a window for a load test and a rollback rehearsal. No duration should be accepted until the written scope lists the environments, test cases and handover tasks behind it.
What must our team provide before an HA build starts?
Three things decide whether the build moves quickly: access, expertise and a calendar. Access means accounts and network paths in the cloud, data center or private network where the cluster will run, including the load balancer, DNS, certificates and backup targets. Expertise means someone who can own the database replication design, the shared storage platform and the PHP runtime, since those layers fail in different ways. The calendar means the dates of your exams, enrolment peaks and maintenance windows, so load tests and cutover avoid them. Also confirm which Moodle release you run, because the supported PHP and database versions differ: Moodle 5.1 requires PHP 8.2 or later and PostgreSQL 15, while Moodle 5.3 requires PHP 8.3 or later and PostgreSQL 17.
Can an internal team build Moodle high availability on its own?
A capable internal platform team can build it, provided it has hands-on experience with load balancers, PHP-FPM tuning, database replication and shared file systems, and enough time to test failure modes. The risk is rarely the first deployment. It is the gap between a cluster that starts and one that survives a node loss during an assessment. Teams that build internally should still write a failover test plan, rehearse restores from backup and run a load test that reflects real exam sessions. An outside partner can add a second review of the design and test evidence, and can take over the build while your staff learn the runbooks. Confirm the split of responsibilities in writing before work starts.
How do Moodle upgrades and plugins affect an HA cluster?
Every web node must run the same code, so an upgrade becomes a coordinated rollout rather than a single server change. Plan for maintenance mode, a database backup, a staged upgrade on a copy of production, and a rollback path. Plugins need the same care: each plugin must support your Moodle version and PHP version, and every node must load identical plugin code. Moodle 5.1 changed the web root to the /public directory, so the load balancer and web server configuration must be updated with the code. Check plugin compatibility before each major or minor release, and treat the upgrade test as part of the HA design, not a separate project.
Can DeployOpen run the Moodle cluster after go-live?
DeployOpen can provide ongoing support, upgrades and continuous testing under a retainer, and most engagements start with a fixed-scope build. The retainer scope should be written out: which nodes and layers are covered, who responds to incidents, how security releases are applied, and how upgrades are tested before they reach production. The clusters run inside your own cloud accounts, data centers or private networks, so access and credentials stay with your team under the agreed controls. Ask for the runbooks, monitoring setup and handover tasks as written deliverables, so the platform can be run by your staff if the retainer ends.
Which cron and session settings matter most for large exams?
Cron and sessions are where HA designs most often fail under exam load. Moodle runs scheduled and ad hoc tasks through cron, and on several web nodes you must decide which node runs scheduled tasks, how ad hoc task workers scale, and how long running tasks are prevented from overlapping. Sessions and caches must live in a shared store so a student does not lose an attempt when the load balancer moves them to another node. Confirm session and cache choices against the Moodle documentation for your release, then load test a realistic peak with concurrent quizzes, file uploads and grade updates. Record the results so the exam calendar and capacity limits are based on evidence.
Does a Moodle HA build need a separate security review?
Yes, a clustered deployment adds attack surface and changes the trust boundaries, so it should be reviewed alongside the usual hardening work. Check how the document root is exposed on each node, which administrator accounts and MFA rules apply, how file uploads reach shared storage, and which internal ports are open between the load balancer, nodes, database and cache. Security testing can be scoped as part of the build or run separately against the finished environment. Ask for the findings in writing with the fixes and a retest, and keep the results with your change records for future audits.
How DeployOpen scopes, builds and hands over Moodle HA
DeployOpen plans and implements self-hosted Moodle high availability inside your own cloud accounts, data centers or air-gapped networks. Each engagement starts with a written, fixed scope that covers the web tier, shared storage, database, caches, sessions and cron design.
How we scope
- Review current Moodle version, PHP and database versions, and the planned upgrade path before any node is provisioned.
- Size web nodes, database replicas, shared moodledata storage and cron workers against your expected concurrent and exam-period load.
- Agree in writing which failure cases are covered, including node loss, database failover and storage outage, with each one tested.
How we build
- Configure the load balancer, shared moodledata storage, replicated database, shared cache and session stores on infrastructure you control.
- Set the web server document root to /public on Moodle 5.1 and later, and verify that all nodes serve identical code and configuration.
- Design cron and ad hoc task execution so exam-period jobs run on dedicated workers without duplicating scheduled tasks across nodes.
How we hand over
- Test failover for each component, including node removal, database promotion and storage reconnection, and record the results.
- Document the architecture, runbooks, backup and restore steps, and the cron and task worker layout for your operations team.
- Walk your administrators through monitoring, scaling steps and rollback procedures so the platform can be run without DeployOpen on site.
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after go-live, scoped separately from the build.
- Retest high availability after each Moodle major or LTS upgrade, PHP change or database version change before it reaches production.
- Confirm with your team which support hours, response expectations and change windows apply before the retainer is signed.

