Open edX high availability

A practical guide to running Open edX across several nodes or on Kubernetes, covering the decisions, build sequence, effort drivers and checks that keep learners online.

On this page

Open edX high availability: when one server stops being enough

High availability for Open edX means that learners, course teams and administrators can keep using the platform when one server, process or data store fails, and that load can be spread across several nodes instead of piling onto one host. For a single-server install, that is not achievable: a host failure or a heavy exam window takes the LMS and Studio down together. Adding redundancy is a design problem, not a matter of copying the server, because the LMS, Studio, background workers, MySQL, MongoDB, caches and media storage each fail differently and each needs its own answer. The edx-platform maintainers recommend running Open edX in production through a service provider or with Tutor, and note that bare-metal installation is complex and receives limited community support. A multi-node Open edX also needs a shared Django cache backend such as Redis or Memcached, so that every node sees the same session and cache state.

What makes this harder than it looks is that the platform's state is spread across several stores and shared files. Learner accounts, enrollments and grades sit in MySQL, course content and module structure sit in MongoDB, sessions and cached data sit in the shared cache, and uploaded course assets sit in media storage that every LMS and Studio node must reach. Losing one of these without the others, or letting nodes hold different copies of a file, produces partial failures that are harder to diagnose than a full outage. Before any design work, ask your partner or internal team to map each store to its failover method, its backup point and its owner, and to confirm which of these services you would run yourself and which a managed offering would provide in your environment.

Decide early whether you will run this on Tutor with Docker hosts, on Kubernetes through tutor k8s, or through a service provider, because that choice determines which redundancy patterns are realistic for your team to operate. Confirm with the Tutor documentation at Tutor documentation which deployment modes it supports for your target, and ask for a written list of which components are replicated, which are single instances and how a node loss is recovered. Your quote and your recovery test plan should both reflect those answers, because an architecture that looks redundant on a diagram can still fail when a single database or file share is not.

Which components need redundancy and why

An Open edX deployment is a set of process types that share a database, caches and storage. Each one can fail on its own, and a single failure often shows up to learners as a slow page or a broken course rather than a clear error. The cards below cover the parts to make redundant first and the failure mode you should plan for in each.

LMS web processes

The LMS serves learner-facing pages, course content, enrollments and the APIs behind the frontends. It is stateless in the sense that sessions and data live in MySQL and the shared cache, so extra LMS replicas add capacity without changing the data model. If one replica fails, requests fail over only if the ingress layer routes around it, so check health probes and replica counts together. Losing all LMS replicas takes the learner site down entirely.

Studio (CMS) processes

Studio is where course teams author and publish courses. It runs as a separate process type from the LMS inside the same codebase, so it can be scaled and restarted without moving the learner site. Studio load is usually lower and bursty, so a single replica may be acceptable for a small team, but confirm that publishing and import jobs do not depend on one instance staying up.

Background workers and Celery queues

Workers run asynchronous jobs such as certificate generation, grade calculations, course imports and email. A worker that stops quietly leaves jobs queued, so learners see delayed certificates or grades without an error on the page. Run more than one worker replica for each queue you rely on, and monitor queue depth rather than only process health.

MySQL 8.0 primary database

MySQL holds enrollments, grades, user accounts and most platform state, so it is the component where data loss matters most. Open edX development requires MySQL 8.0, and a failover setup needs replication that your team has tested, not only configured. Ask whether your database is managed or self-run, how failover is triggered, and how long writes are unavailable during a switch.

MongoDB 7.x content store

MongoDB stores course structure and content blocks in the modulestore, which Studio writes and the LMS reads. A MongoDB outage often stops course authoring and can stop learners from loading course content, even while the LMS process itself is healthy. Plan a replica set with a tested failover and keep the MongoDB version aligned with the Open edX release you run.

MongoDB version family
7.x

Shared cache: Redis or Memcached

Multi-node deployments need a shared Django cache backend such as Redis or Memcached so that every LMS and Studio replica sees the same sessions and cached data. If each node keeps its own cache, learners can see inconsistent state after logging in or switching pages. A cache outage usually degrades speed and can log users out, so confirm how your setup behaves when it restarts.

Media and course asset storage

Uploaded course videos, images, documents and static files must be reachable from every replica. If assets live on one node's disk, a replica that does not have them will return broken links. Use shared object storage or a shared file system, and confirm that your backup plan covers these assets as well as the databases.

Ingress and load balancing

The ingress layer terminates TLS and routes requests to LMS and Studio replicas, so it is a single entry point even when everything behind it is redundant. Confirm that it has its own redundancy, that health checks remove failed replicas, and that the routing separates LMS and Studio hostnames correctly.

Choosing between multi-node Tutor, Kubernetes and a managed service provider

This table compares four ways to run a highly available Open edX deployment, from a multi-node Tutor layout to a service provider operating the platform. Read each row against your team's deployment control requirements, skills and on-call capacity, because the operational load shifts considerably between options. The main takeaway is that more control brings more recurring staff effort, and the right choice depends on which of those costs your organization can carry.

OptionWhen it fitsOperational trade-offWhat to confirm
Multi-node Tutor on Docker ComposeSeveral fixed hosts, a team comfortable with Docker, and a moderate learner load that one host no longer handles aloneYour team manages node placement, failover, database replication and shared cache setup by hand; upgrades are scripted but tested per hostWhether your team can own host patching, failover runbooks and MySQL and MongoDB replica recovery
Kubernetes with tutor k8sYou already run Kubernetes, need horizontal scaling of LMS and workers, and have platform engineers availableHighest skill requirement: cluster operations, ingress, storage classes and rolling release upgrades all become your responsibility; on-call covers the cluster as well as the applicationExisting cluster skills, a platform owner for ingress and storage, and how cluster upgrades interact with Tutor release upgrades
Managed database services in your cloudAny multi-node option where you want the database tier handled by your cloud provider while the application stays in your controlReduces database patching and backup effort, but the platform still needs MySQL 8.0 and MongoDB 7.x compatibility checks and network configuration you ownWhich managed MySQL and MongoDB offerings your provider supports at the versions Open edX requires, and their backup and failover settings
Service provider running the platformYou want to limit in-house operations, your team lacks Open edX or Kubernetes depth, or you need predictable support coverageLowest internal on-call load, but less direct control over infrastructure, data location and upgrade timing; contract terms define response and change handlingWhere hosting occurs, who holds administrative access, how upgrades to the supported release are scheduled, and the written support scope

How to build a redundant Open edX stack in order

This sequence moves Open edX from a single host to a multi-node layout where state lives in shared services, web and worker processes can be replaced without losing learner sessions, and backups have been proven by restore. Each step closes with a check you can run before moving on.

  1. Externalize MySQL and MongoDB with replication

    Move the MySQL and MongoDB databases off the application hosts onto dedicated services with replication, so that no learner or course record lives only on one node. Open edX development requires MySQL 8.0 and MongoDB 7.x, so confirm those versions with your platform team and check that your managed or self-run database offering supports them before you commit. Your infrastructure or database engineers do this work, with DeployOpen typically handling the Open edX configuration side. Done means the LMS and Studio connect to the external endpoints, a failover of the primary is rehearsed, and the application keeps serving reads and writes after the switch.

  2. Move sessions and the Django cache to shared storage

    Configure a shared Django cache backend, such as Redis or Memcached, because multi-node deployments need one so that every LMS and Studio replica sees the same cached state. Point session storage at the same shared layer so a learner is not logged out when a request lands on a different replica. Confirm the cache service runs with its own redundancy plan, since a single cache node becomes the new point of failure. Check: log in on one LMS replica, stop that replica, and confirm the session still works on another replica without a fresh login.

  3. Place media and course assets on shared storage

    Move uploaded files, course assets and static media off local disks onto shared object or file storage that every web and worker node can reach. Without this step, an image uploaded through Studio exists only on the node that received it, and learners routed elsewhere see broken content. Decide with your storage team which option fits your cloud or data center, and confirm the chosen backend is supported by your Tutor or Kubernetes configuration before building around it. Check: upload a course asset through Studio, then read it from the LMS on a different node and confirm it renders.

  4. Deploy stateless LMS and Studio replicas

    Run two or more LMS and Studio replicas behind a load balancer, with each replica reading all state from the shared database, cache and storage layers. Keep local disk writes to logs and temporary files only, and route traffic with health checks so that a failing replica is removed automatically. Platform engineers own this step, and the work includes TLS termination and sticky-free routing that matches your session design. Check: during a steady course load, restart one replica and confirm learners see no error beyond the in-flight requests and that the replica rejoins the pool.

  5. Run workers as separate scalable processes

    Separate the Celery-based background workers from the web processes so that grading, email, certificate generation and course imports can scale and restart independently of learner traffic. Size each worker pool against the queues it consumes, and make sure all workers point to the same broker, database and storage settings as the web tier. Confirm with your team which queues matter most for your course calendar, since exam-week grading and cohort enrollments put different pressure on the system. Check: submit a test import or grading task, stop one worker mid-run, and confirm the task completes on another worker.

  6. Configure backups for every stateful layer

    Set up scheduled backups for the MySQL and MongoDB databases, the media and asset storage, and the configuration and secrets used by Tutor or your Kubernetes manifests. Backups that copy only one layer will not restore a working platform, because course structure, learner records and uploaded files must stay consistent with each other. Agree retention periods and backup windows with your compliance and operations owners, since the platform does not set these for you. Check: each backup job reports success and the backup location is separate from the primary environment.

  7. Prove recovery with scheduled restore tests

    Restore the latest backups into an isolated environment and compare the result with production, checking that a sample course opens in the LMS with the same structure, enrollments and grades, and that uploaded assets load. Repeat this on a schedule and after each Open edX release or Tutor version upgrade, because a backup that restores on one version may not restore on another. Record the restore time and any manual steps so the runbook matches what your team will actually do during an incident. Done means a restored database reaches the same course state as the source at the chosen backup point, and the team has signed off the runbook.

How state moves between LMS, Studio and workers

Every replica must see the same state, so nothing important can live on one node. In a multi-node Open edX deployment, the LMS serves learners, Studio serves course authors, and background workers run asynchronous jobs such as course import and export. Each of these processes is a separate copy that can be started, stopped or replaced by a load balancer or scheduler at any time. Learner sessions and cached entries must therefore sit in a shared cache, typically Redis or Memcached, because the edx-platform requirements for multi-node deployments call for a shared Django cache backend. If a session is written to one LMS replica's local memory, the next request routed to another replica will look like a logged-out user. Confirm with your platform team which cache backend your release expects and that every LMS and Studio replica points at the same instance.

Studio writes go to the course store, and workers read from the same place. Course structure and content authored in Studio are stored in MongoDB, while user accounts, enrollments and grades live in MySQL. When an author saves a unit, the write lands in the shared store and becomes visible to every LMS replica once cache entries expire or are invalidated. Import and export jobs follow the same path: a worker reads an uploaded archive from shared storage, writes the course into MongoDB, and records the outcome so the author can see it in Studio. The practical risk is that a worker and a Studio replica can finish out of order, so authors may see stale status. Ask your partner how job state is tracked and where a failed import is reported, and test that path before go-live.

Uploaded files need storage that every node can reach. Course assets, video uploads and import archives written by one Studio replica must be readable by the LMS, other Studio replicas and workers. Local disk on a single server hides this requirement, which is why a single-node install can appear to work at any scale and then fail when a second node is added. Plan the shared media and import location before adding replicas, and decide who owns its backup and retention. Replica counts and worker concurrency should be set from load tests against your own course mix and learner peak, since no sizing figures are supplied for this topic. Ask for a test plan that measures LMS response times, Studio save latency and import duration at your expected concurrency.

Multi-node Open edX splits stateless web and worker tiers from the data stores

A learner or author request starts at the load balancer or ingress, which spreads traffic across several LMS and Studio replicas that hold no session or course state of their own. Those replicas read and write through a shared cache, which Open edX needs once more than one node is running, and through MySQL and MongoDB, each with its own replicas. Workers pick up background jobs from the same stores, while media files sit on shared storage that is backed up separately. Before go-live, confirm which tier holds each piece of state and that every replica points at the same stores.

Stateless web and worker tiers sit in front of the stores that hold state.

How the redundancy design differs by deployment model

A single-node Open edX install, typically run with Tutor on one Docker host, is the baseline against which every other model is measured. LMS, Studio, workers, MySQL, MongoDB, Memcached and media all share one machine, so there is no replication to design and no load balancer to configure. Redundancy at this level is mostly about recovery: a second host that can be restored from backups, and a tested procedure for doing so.

  • Database replication: None by default. MySQL and MongoDB run as containers on the same host, so protection comes from scheduled dumps copied off the host.
  • Storage: Local volumes for media and database files. Plan for disk growth and keep media backups separate from database backups.
  • Ingress: One reverse proxy handles TLS and routing. A host failure takes the whole platform down.
  • Upgrades: In-place Tutor upgrades with a snapshot taken first, so a failed upgrade can be rolled back to a known state.
  • Confirm: Recovery time you can accept, where backups are stored, and who restores them and how often that restore is rehearsed.

Before accepting a single-node design for a regulated audience, confirm in writing how a host loss is handled and how long a restore takes in your environment.

What drives effort and cost in an HA build

Effort in a high availability Open edX build comes from how many learners you serve, how much data must survive a node failure, and how many environments must mirror production. Compliance evidence, custom code and identity integration add work on top, and each one multiplies the testing needed for every node layout.

Learner concurrency and peak windows

Concurrency sets how many LMS and worker replicas you need and how much cache and database capacity sits behind them. Exam weeks, enrollment openings and course launches create short spikes that matter more than averages. Ask for load profiles from course teams and plan around the peak, not the monthly mean. Reduce the cost by staggering course start dates, moving exams to scheduled windows and load testing before launch rather than buying permanent headroom.

Data volume across databases and media

MySQL holds the relational platform data, MongoDB holds course structure, and media storage holds uploaded files and video assets. Each store needs its own replication, backup and restore plan, and growth in one does not scale the others evenly. Confirm current sizes and monthly growth with the client, then size replication and storage for the restore time the business accepts. Keep large media out of the main database tier where possible.

Number of environments

Development, staging, production and disaster recovery each need a matching node layout if failover is to be tested honestly. Every extra environment adds infrastructure, configuration drift risk and deployment runs. Reduce the load by keeping dev small, making staging the only place full-topology tests run, and scripting environment builds from the same Tutor configuration so that differences are visible in version control.

Custom plugins and XBlocks

Custom XBlocks, Tutor plugins and theme code must be retested on each node layout, because shared sessions, cache keys and file paths behave differently across several web and worker nodes. A block that works on one host can fail when a second LMS replica serves the next request. Inventory every custom component early, record its dependencies, and ask the vendor or developer which parts depend on local disk.

Compliance evidence requirements

Auditors and security teams often ask for proof of backups, restore tests, access reviews and change records for each environment. Producing that evidence takes logging, retained configuration history and recorded restore drills, which all add to the build. Confirm with your assessor which controls apply and what evidence format they accept before design starts. DeployOpen prepares systems and evidence for assessment, but independent auditors issue any report.

SSO and analytics integration

Identity and analytics connect to every node and must keep working during failover. SAML 2.0, Shibboleth or OAuth2 providers need stable callback URLs and consistent session handling across replicas. Aspects analytics adds an event pipeline and a ClickHouse store that must also survive node loss. Map each integration to its failure behavior, and confirm with the identity and analytics owners which outages users will tolerate.

Aspects overview

How to test that failover works before learners depend on it

Failover that has never been tested is a hypothesis. Before learners depend on an Open edX high availability design, run a scripted test plan in a non-production copy of the platform and record what happens at each step. Start with the stateless tier: stop one LMS process and one Celery worker on a node that is serving traffic, then confirm that learner sessions survive, that in-flight course pages reload through the load balancer, and that background tasks such as certificate generation or grade updates are picked up by a surviving worker. Repeat the same exercise for Studio, because an author session that drops during a long save is a different failure from a learner session dropping during a quiz.

Next, test the stateful dependencies one at a time. Fail the MySQL primary and confirm that the platform reconnects to the promoted replica, that writes such as enrollments and quiz submissions succeed again, and that the time to recover is measured rather than estimated. Check MongoDB the same way, since course content depends on it. Restart one shared cache node (Redis or Memcached, as configured for the shared Django cache backend described in the edx-platform repository) and confirm sessions and cached data degrade gracefully. Then detach one media storage node or bucket endpoint and confirm that uploaded course assets return clear errors rather than silent broken pages. Ask your platform team to confirm which of these components your chosen topology actually replicates, because replication is a design decision, not a default.

What to monitor, back up, upgrade and document after go-live

This table lists the operational items a team should watch once a high availability Open edX cluster is live, with what each item shows and what to confirm with your own environment. Read each row as a signal to alert on and a record to keep. The main takeaway is that upgrades must follow named releases in a test environment first, because only the latest named release is supported.

AreaWhat to watchWhy it matters after go-live
LMS and Studio replicasHealth and response latency per replica, errors by process and podShows whether a single slow or failing replica is hidden behind the load balancer
Worker queue depthBacklog of asynchronous tasks such as grading, certificates and emailA growing backlog delays learner-facing results even when web pages load normally
MySQL replicationReplication lag, replica status and free disk on each database nodeLagging replicas can serve stale enrollment or grade data during peak use
MongoDB redundancyReplica set member health, failover events and free diskCourse content depends on MongoDB, so a degraded set affects authoring and delivery
Shared cacheHit rate, evictions and memory use of the Redis or Memcached layerEvictions push load back onto MySQL and MongoDB and slow every replica
Media storageCapacity, growth rate and access errors for course assets and uploadsFull object storage stops uploads and can break course pages that link to media
Backups and restore testsJob success, backup age, and the date of the last restore test in a separate environmentA backup that has never been restored is unverified, and assessors will ask for the restore record
TLS certificatesExpiry dates for every public hostname and any internal certificates in the clusterAn expired certificate takes the platform offline for every learner at once
Release upgradesCurrent named release, the next release in the cycle, and results from the test environmentOnly the latest named release is supported, so the cluster must move through each named release with a tested plan

Questions buyers ask about Open edX high availability

What drives the cost of a high availability Open edX build?

The cost is driven by how many nodes or cluster components you need, how much redundancy each tier requires, and how much of the work is new versus standard. The main cost components are:

  • Architecture and design of the LMS, Studio, worker, database, cache and media layers.
  • Infrastructure build, including load balancers, shared storage, managed or self-run MySQL and MongoDB replicas, and shared caching.
  • Configuration, testing of failover behavior, and backup and restore runbooks.
  • Documentation and handover to your operations team.

Some costs are one-time (design, build, testing) and others recur (cloud or hosting bills, monitoring, upgrades, support). Ask any quote to separate these and to state which infrastructure is provided by you and which by the vendor. Infrastructure prices come from your cloud or data center provider, not from DeployOpen.

How long does it take to build Open edX across several nodes?

The timeline depends on the number of environments, how many services must be made redundant, and how quickly your infrastructure, identity and data sources are available. Work usually runs in sequence: confirm the target topology, build a non-production environment, test failover and recovery, then promote to production with a rollback plan. Delays most often come from waiting on cloud accounts, network approvals, database sizing decisions, storage choices and access to existing course data. Ask for a schedule in the written scope that lists these dependencies and the dates each one must be met by.

Can our internal team build a high availability Open edX deployment?

A capable platform team can build it, but it needs experience with Linux, containers or Kubernetes, managed databases, Django-based services and production networking. The maintainers recommend running Open edX in production through a service provider or with Tutor, and note that bare-metal installation is complex and receives limited community support. Check your team against these skills: operating MySQL 8.0 and MongoDB 7.x with replication, configuring a shared Django cache such as Redis or Memcached, managing TLS and DNS, and running backups with tested restores. If any of these are new to the team, plan for training time or a partner for the build phase.

What does the client need to provide for a high availability build?

The work needs access and information that only you can supply. Typical inputs include:

  • Cloud or data center accounts with permission to create compute, network, storage and database resources.
  • Staging and production environments, with a clear split between them.
  • DNS control, TLS certificate process and identity provider details for single sign-on.
  • Sizing estimates for learner numbers, concurrency and course media, plus your recovery time and recovery point expectations.
  • Named owners for approvals, change windows and on-call contacts.
  • Existing course content or data, if it must be loaded during the build.

Agree in writing who holds credentials, where secrets are stored, and how access is removed at handover.

Do we need Kubernetes for a high availability Open edX deployment?

No. Open edX can run across several nodes without Kubernetes, and Tutor supports both Docker-based and Kubernetes deployments. Kubernetes adds scheduling, rolling updates and self-healing, but it also adds cluster operations, networking and storage work that your team must own. Choose it when your organization already runs Kubernetes well and can operate it, or when you need the cluster features for other workloads. Otherwise, a small set of Tutor-managed hosts behind a load balancer, with managed databases and shared storage, can meet the same availability goals with less operating surface.

How do Open edX upgrades affect a high availability cluster?

Open edX supports only the latest named release, so upgrades are a recurring part of running the platform, not a one-time event. In a multi-node setup, each upgrade must be rehearsed in staging, including database migrations, the custom XBlocks, plugins and themes you depend on. Plan a rolling or maintenance-window approach that keeps at least one copy of each service running, and make sure backups are verified before each change. Check the release notes for each named release and budget time for compatibility testing, since upgrades can change how cluster services start and connect.

What should a fixed-scope quote for high availability include?

A fixed-scope quote should state the target topology, the services covered (LMS, Studio, workers, MySQL, MongoDB, caching, media storage and backups), and the environments built. It should list deliverables such as configuration, runbooks, failover and restore tests, monitoring setup and handover sessions. It should name the client inputs and dependencies, the acceptance criteria and the change process if requirements move. Ask whether infrastructure fees, licenses and hosting are excluded, and whether post-go-live support or upgrades are priced separately as a retainer. DeployOpen agrees scope, deliverables and timelines in writing before work starts.

How DeployOpen scopes, builds and hands over HA Open edX

DeployOpen plans, implements, hardens, backs up and documents self-hosted open-source platforms inside the client's own infrastructure, so an Open edX high availability design is written against your cloud accounts, data center or air-gapped network. Engagements are fixed-scope, with scope and deliverables agreed in writing before work starts.

How we scope

  • Confirm whether the target is several Tutor-managed nodes or a Kubernetes cluster, and which components must be redundant.
  • Document expected LMS, Studio and worker load, plus which MySQL, MongoDB, cache and media services you already operate.
  • Agree in writing which databases, storage, backup targets and failover tests are in scope and which remain with your team.

How we build

  • Configure a shared Django cache backend, such as Redis or Memcached, so every LMS and Studio node sees the same sessions and cache.
  • Set up MySQL 8.0 and MongoDB 7.x redundancy and shared media storage, then verify that course content and uploads survive a node loss.
  • Test scaling of LMS, Studio and worker pods or nodes under load and record the settings that worked for your configuration.

How we hand over

  • Deliver architecture diagrams, configuration files and a runbook covering scaling, failover, backup and restore steps.
  • Document the release upgrade path, since only the latest named Open edX release is supported and clusters must be upgraded together.
  • Run a restore test and a failover drill with your operators and record the results in the handover pack.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after go-live.
  • Retainers can cover Tutor version changes, backup verification and re-running failover tests after infrastructure changes.
  • Confirm response expectations, service boundaries and who holds database and storage credentials before the retainer starts.

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.