When to move Open edX databases out of Tutor's containers
Move a data store out of Tutor's containers when its host, backups or upgrades have become a risk you cannot accept on a single machine. Many Tutor-run sites start with MySQL, MongoDB and Redis as containers on the same host as the LMS and Studio. That is a reasonable way to learn the platform, but it ties your learner records, course content and sessions to one disk, one container engine and one set of backup jobs. Tutor's bundled services exist so that a working installation can be stood up quickly. They are not designed to carry your recovery objectives, your patching windows or your audit trail. The edx-platform development requirements list MySQL 8.0, MongoDB 7.x and Memcached, and state that multi-node deployments need a shared Django cache backend such as Redis or Memcached. Those are the components you are deciding about, and each one moves at a different risk level.
This page answers three questions: what to move, in what order, and how to avoid creating a new single point of failure when you do. It does not give sizing figures, instance classes or throughput numbers, because those depend on your learner volume, course catalog and hosting provider. Before you start, confirm with your provider which MySQL and MongoDB versions its managed services offer and whether they match what your Open edX release expects. Check the current edx-platform repository and the Tutor documentation for the database versions your chosen release supports. The order matters: move the data store that holds the most irreplaceable state first, and move the cache last, because a cache can be rebuilt but a database cannot.
The decision is therefore less about whether containers are acceptable and more about whether each service has a tested restore path, a planned upgrade route and a failover design that does not depend on one host. Ask your team who will hold the credentials, how connection limits will be handled when several application containers point at one external endpoint, and how a failed node will be detected and replaced. If you cannot answer those questions for a service, that service is not ready to move. Writing the answers down before the first cutover is the cheapest step in this whole project.
Which data store to externalize first and the options for each
This table compares three ways to run each Open edX data store: dedicated servers you operate, a managed cloud service, or keeping it inside Tutor's containers. Read each row as a question to answer for your own team, since the right column depends on your target platform and operating model.
| Data store and decision | Dedicated servers you operate | Managed cloud service | Keep in Tutor containers |
|---|---|---|---|
| MySQL: role in Open edX | Holds LMS and Studio relational data; the platform requires MySQL 8.0 for development, so confirm the version your release targets | Same role; confirm the provider offers MySQL 8.0 compatibility and the exact engine version your release supports | Same role inside Tutor's bundled container, typically used for pilots and small single-server sites |
| MySQL: backup and restore | Your team designs dump or snapshot schedules, off-host copies and tested restores | Provider automated backups and point-in-time restore; confirm retention windows and restore tests in the service terms | Backups are your job; they depend on volume and container handling, so confirm the procedure before go-live |
| MySQL: failover and patching | Replication and failover are built and tested by your team; patching follows your change calendar | Failover and minor patching are largely provider-managed; confirm maintenance windows and multi-zone options | Failover is not provided; patching means rebuilding or updating containers on the same host |
| MongoDB: role in Open edX | Stores course structure and content documents for Studio and the LMS; the platform development baseline is MongoDB 7.x | Same role; confirm the managed product supports the MongoDB 7.x line your release expects | Same role inside Tutor's container, which keeps the store on the same host as the application |
| MongoDB: operations load | Replica set setup, authentication, storage growth and upgrades fall to your database team | Provider handles cluster provisioning and upgrades; you still own schema-level indexes and capacity planning | Operations fall to the platform team with the rest of the stack; limited separation of duties |
| Redis or Memcached: cache role | Multi-node deployments need a shared Django cache backend such as Redis or Memcached; a dedicated instance avoids sharing with other apps | Managed cache removes host upkeep; confirm eviction policy, persistence settings and TLS support | Cache lives on the application host; simplest for one server, but it is lost on a host rebuild |
| Cache: failover and data loss | Sentinel or cluster mode is designed by your team; cached data is usually rebuildable, so confirm which keys hold sessions | Provider replication options apply; confirm whether sessions or tokens are stored and how they survive failover | No failover; a restart clears the cache, which users notice as forced sign-ins if sessions live there |
| Ownership and skills | Requires database administrators on your side for all three stores | Requires cloud and networking skills, with the provider covering much of the host work | Requires container and Tutor skills; the least separation between data and application |
| Choice depends on target | Check your target platform, whether it is Kubernetes, a single VM or a cloud service, and your operating model before choosing | Check that the provider exposes the database versions, network paths and backup tools your deployment needs | Often suitable for a pilot or a single-server site; confirm it meets your recovery objectives before production |
Sequence for moving each data store with checks
This sequence moves MySQL, MongoDB and Redis out of Tutor's containers one store at a time, with a checkpoint after each move and a rollback point before traffic switches. The result is a platform whose data lives on services you can back up, monitor and replace, with a documented way back if a store misbehaves.
Inventory data stores and take backups
Record which MySQL, MongoDB and Redis instances the running Tutor deployment uses, including versions, hostnames, credentials and the Tutor configuration that points to them. Confirm the engine versions against the requirements in the edx-platform repository for the release you run. Take a full backup of MySQL and MongoDB, and document what the Redis cache holds, since much of it can be rebuilt. Done when each backup has been restored once to a scratch host and the platform owner has signed off the inventory.
Stand up target services and network paths
Provision managed or dedicated MySQL, MongoDB and Redis services in the same private network as the Tutor hosts, matching the engine versions already in use. Restrict access to the Open edX hosts only, and enable encryption in transit where the service supports it. Confirm every web and worker node can reach the Redis service, because multi-node deployments need a shared Django cache backend. Done when each host connects to each target with the new credentials and a test write and read succeed.
Migrate MySQL and check LMS data
Schedule a write window, then dump the MySQL databases and restore them into the target service. Point a staging copy of the platform at the new host before any production change. Checkpoint: row counts on key tables match the source, and a test learner can sign in and open a course in staging. Keep the original MySQL instance unchanged and treated as read-only until the final verification passes.
Migrate MongoDB and check course content
Dump the MongoDB databases that hold course structure and content, then restore them into the target service. Confirm the server version matches the MongoDB 7.x line the platform expects, and compare collection counts with the source. In staging, open Studio, load one course and save a draft. Checkpoint: the course loads with the same content, the draft saves, and the source database remains unchanged.
Move Redis and confirm cache behavior
Decide which Redis data must survive cutover with your platform owner. Most cache entries can be rebuilt, so a clean start is often acceptable, but session-related keys may force users to sign in again. Point staging at the new Redis service and confirm two web nodes read and write the same cache. Checkpoint: pages behave consistently across both nodes, and neither node serves a stale copy after a content change.
Set rollback point and switch configuration
Take a final backup of each source store and save the exact Tutor configuration in version control, so the previous state can be restored. Change the database host and credential settings for each store, apply the change in a maintenance window and restart the platform. Rollback point: the old configuration and source stores stay available until verification passes. Done when the platform runs on the new hosts and the logs show no connection errors.
Verify logins, publishing and cache behavior
Run a scripted check set against production: a learner sign-in, an enrollment, opening a course, a Studio edit with publish, and a read on a second node after a change. Watch database connection counts and cache behavior for a period agreed with the operations team. Done when every check passes and the owner signs off. Then move the old stores to read-only archive status for the retention period set in your own policy.
How the external data stores connect to Open edX
The diagram starts with learner and author requests reaching the Tutor-managed proxy, which hands them to the LMS and Studio. Both services read and write the external MySQL and MongoDB services and share the Redis cache, while Celery workers reach the same stores for background tasks. The trust boundary sits between the Open edX containers and the managed services, so each crossing link needs TLS, network rules and credentials checked. Backups run from the managed services to storage outside the cluster, and that path should be tested.
Trust boundary crossings between Open edX containers and external data services.
Where new single points of failure appear after the move
Moving data stores out of Tutor's containers removes the risk of one host failing, but it can create new ones at the provider, network and recovery layers. The risks below connect because the LMS, Studio and workers depend on all three stores at once, so a gap in any one of them stops the platform.
MySQL instance without a standby
Open edX keeps enrollments, grades and user accounts in MySQL, so a managed instance with no standby becomes the one place every LMS and Studio request depends on. Ask the provider whether a standby runs in a second zone, whether failover is automatic or manual, and how long the platform stays unavailable during a switch. Confirm that Tutor's database settings can point at a new endpoint after a failover without rebuilding images.
edx-platform repoMongoDB without a replica set
MongoDB holds the course structure that Studio writes and the LMS reads, so a single MongoDB node means course publishing stops when that node goes away. Check whether the managed service runs a replica set with automatic election, whether the connection string Open edX uses accepts all members, and whether a failover interrupts a publish that is in progress. Confirm the exact MongoDB version your provider offers against the 7.x line the platform targets.
Redis cache without a failover plan
Once several LMS and Studio containers run, Redis becomes the shared cache backend for all of them, so it holds shared state across web and worker processes. A restart clears cached data and can slow every page until the cache warms up, and an unreachable cache can stall requests if timeouts are not set. Ask whether the service offers replicas with automatic promotion, confirm which keys hold sessions and which hold disposable cache, and decide what users see during an outage.
edx-platform repoOne network path to every store
Each LMS, Studio and worker container reaches MySQL, MongoDB and Redis through one subnet route, one security group and one DNS name. A routing change, a deleted firewall rule or a DNS record pointing at a retired endpoint can cut all three stores at once. Map every connection path, place the stores and the application across zones where the provider supports it, and test a failed route in staging before go-live.
Backups never tested by restore
Managed snapshots and point-in-time backups for MySQL and MongoDB protect data only if a restore produces a working platform. Restore into a separate environment, run Tutor against the restored databases, and sign in as a learner and as a Studio author. Record how long the restore took, and confirm whether any Redis data needs recovery at all. Ask the provider for its restore procedure in writing before you rely on it.
Designing high availability and recovery for external stores
High availability and recovery have to be designed separately for each external store, because MySQL, MongoDB and Redis do not fail over or restore in the same way. Before the move, the team should write down, for each service, who operates it, how a primary failure is detected, how the Open edX application reconnects after a switch, and how long the platform can run without that store. Most of these answers come from the vendor or managed service documentation and from your own environment, not from Open edX. Ask the provider for the exact replication mode, the failover mechanism (automatic or manual), whether failover is covered by the service tier you are buying, and what happens to in-flight writes during a switch.
The Open edX database settings for MySQL, MongoDB and Redis point at hostnames, and a failover that changes the endpoint or the primary role can leave the LMS and Studio holding stale connections. Confirm whether each managed service offers a stable endpoint that follows the primary, or whether the application configuration must change during failover. For Redis, remember that the shared cache is used across multi-node deployments, so a cache outage affects sessions and performance in a different way than a database outage. Decide, per store, which loss is acceptable and which is not, and document the answer as a recovery objective the operations team can test against. Replication and failover are not the same as backup, so treat each as a separate control with its own owner.
Backups are only useful if a restore has been run end to end on a copy of the platform. Schedule restore tests for each store, restore into a separate environment, start Open edX against it, and check that courses, learner records, sessions and uploaded-file references line up. For MySQL and MongoDB, confirm whether the provider supports point-in-time recovery and how far back it reaches. The principle is similar to the one PostgreSQL documents for continuous archiving and point-in-time recovery: a base copy plus a continuous record of changes lets you return to a chosen moment, but only if the archive is complete and restorable. Redis is often treated as disposable cache, yet the team should confirm which keys, if any, hold data that cannot be rebuilt. Record the results of each test so the recovery plan reflects what was actually proven.
Securing the connection to external data stores
Moving MySQL, MongoDB and Redis out of Tutor's containers widens the path between the Open edX services and the data. Each card covers one control on that path, and the team should confirm how each one applies to its chosen managed or dedicated service before go-live.
Network isolation of data store endpoints
Place the MySQL, MongoDB and Redis endpoints on a private network segment that only the LMS, Studio, Celery worker and any Aspects hosts can reach. Confirm whether your managed service offers private endpoints or VPC peering, and whether it can be kept off a public address entirely. Check that the security groups or firewall rules match the actual list of Open edX hosts, not a broad internal subnet.
TLS for client connections
Require TLS on every connection from Open edX to each data store, and confirm the client libraries and Tutor settings in your build can validate the server certificate against the CA your provider uses. Ask each provider which TLS versions it accepts and whether it rotates server certificates without downtime. A connection that silently falls back to plaintext is the failure to test for.
Credentials kept out of Tutor config
Tutor stores settings in its configuration file, so database passwords written there end up in files on disk and in backups. Where possible, pull passwords from a secrets manager or the orchestrator's secret store and inject them at deploy time. Confirm which of the Tutor settings for MySQL, MongoDB and Redis accept values from the environment or a secret, and document any that must still be written to a file.
Least-privilege users per service
Create a separate database user for each Open edX service that reads or writes a store, instead of sharing the root or admin account. The LMS, Studio and the analytics components need different grants, so review what each one actually requires. Confirm whether your MySQL and MongoDB services let you scope users to individual databases, and whether Redis ACLs can restrict key prefixes and commands for each client.
Audit logging of administrative access
Administrative actions on the managed services, such as user creation, parameter changes, failover and backup restores, should be logged and kept outside the platform's own servers. Ask each provider what administrative events it records, how long those logs are retained, and whether they can be exported to your SIEM. Confirm which database-level query or connection logs you can enable and what they cost in storage.
Questions buyers ask before moving Open edX databases
What drives the cost of moving Open edX databases to managed services?
The main drivers are the number of data stores being moved, whether each one runs as a managed service or stays self-run, the volume of data to copy and verify, and the time needed to test each step in staging. Costs fall into two groups. One-time costs are the planning, migration, configuration changes and testing, which a partner or your own team performs. Recurring costs are the managed service fees and the platform time to operate those services after go-live. Ask for a quote that prices each store separately, lists the staging and rollback work, and states which recurring charges come from your cloud provider rather than from the implementation work. Confirm current service pricing directly with each provider.
How long does a move of Open edX databases take?
The duration depends on scope: how many of the three stores (MySQL, MongoDB and Redis) move, how much data each holds, how many environments need the change, and how many maintenance windows are available for cutover. A move that covers one store in a single environment is much smaller than one that covers all three across production and staging. Testing usually takes as long as the migration itself, because you need to prove that the platform reads and writes correctly against each new service before you switch traffic. A fixed-scope agreement should state the milestones, the cutover windows and the rollback steps in writing before work starts.
What does our team need to provide for a database migration?
You need to provide administrative access to the Tutor-managed hosts, the cloud or data center accounts that hold the managed services, and the network paths between the Open edX servers and each data store. You also need agreed change windows, a named owner for every backup and restore decision, and a staging environment that resembles production. Confirm who approves production cutover and who can reach the platform team during it. Without a clear backup owner, a failed cutover can leave no one able to restore data quickly, so settle that question before the first test run.
Can our internal team move Open edX databases without an outside partner?
An internal team can do the move if it already operates MySQL 8.0, MongoDB 7.x and Redis, understands how Tutor passes connection settings to the platform, and has a tested restore procedure for each store. Open edX development requires MySQL 8.0, MongoDB 7.x and Memcached, and multi-node deployments need a shared Django cache backend such as Redis or Memcached, so the platform depends on all three. Check whether your team has run these services in production before, has staging capacity for full rehearsals, and can staff the cutover window. If any of those are missing, a fixed-scope engagement can cover the gap, with the handover documented for your team.
What recurring operations does a managed database add to our platform?
The move adds recurring work for patching, version upgrades, backup verification, monitoring, credential rotation and capacity review for each store. With managed services, the provider typically handles some of the infrastructure tasks, but the platform team still owns configuration, connection limits, schema and application-level upgrades, and the restore tests. Ask each provider for a written responsibility matrix that states who patches the engine, who keeps backups, what retention period applies and how point-in-time recovery works. Then assign each item to a named person on your side or to a retainer partner.
Does moving to managed databases remove single points of failure?
No, not by itself. A managed service with one instance and no standby still has a single point of failure, even though the provider runs the hardware. Check whether each service offers replicas or multi-zone options, what failover looks like for the platform's connections, and what happens to users when Redis or the shared cache is unavailable. Multi-node Open edX deployments depend on a shared cache, so a cache outage can affect many web workers at once. Plan the failover path and test it in staging before you rely on it in production.
Which store should we move first, and why?
Move the store whose failure is easiest to recover from first, and leave the store that holds learner and course records for last, after the others have run stably in production. In many setups the shared Redis cache is a good first candidate, because an empty cache can be rebuilt, but confirm that for your session and locking behavior in staging. MySQL and MongoDB hold persistent platform data, so they need full backups, verified restores and a rollback plan before cutover. Keep each move in its own change window so that a problem can be traced to one service.
What evidence can we get for security reviews after the move?
DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. For each store, you can document how connections are encrypted, where credentials are stored, which network paths are open, who can access backups and how access is logged. Ask for a configuration record and a restore test log that your auditor can review. Your independent assessor decides what evidence is sufficient for your framework, so confirm those requirements with them before cutover.
How DeployOpen scopes and delivers external data store moves
DeployOpen plans, implements, hardens, backs up, documents and supports self-hosted open-source platforms inside your own infrastructure. For Open edX with managed MySQL, MongoDB and Redis, we treat each data store move as a separate, written piece of work with its own cutover, rollback and verification steps.
How we scope
- We confirm which data stores move first, and which stay inside Tutor's containers for the time being.
- We inventory the Open edX release, Tutor version, plugins and hostnames that depend on each connection.
- We agree the managed service sizing, network paths, backup and restore targets in a written scope before work starts.
- Engagements are fixed-scope, with deliverables and timelines confirmed in writing; ongoing support is available as a retainer.
How we build
- We build the target MySQL, MongoDB and Redis connections in a staging environment that matches production configuration.
- We rehearse the data copy, restore and cutover order on a copy of production data before any live window.
- We test the Open edX web, Celery worker and Redis cache paths after each connection change, including multi-node behavior.
- We check that failover, connection pooling and backup jobs behave as designed under the managed services you choose.
How we hand over
- We deliver runbooks for each store: connection settings, credential locations, maintenance windows and rollback steps.
- We document which parts are still single points of failure, and what the managed service or your team must cover.
- We walk your platform and operations staff through restore tests and failover drills so the team can repeat them without us.
- We provide configuration records and change logs your compliance and security reviewers can read.
How we support
- Retainers can cover upgrades to the Tutor and Open edX releases that change database or cache requirements.
- Continuous testing can re-run restore and failover checks after patches, scaling changes or service provider updates.
- Support can extend to reviewing new plugins or XBlocks for compatibility with the external data stores.
- We confirm support boundaries for each managed service with you in writing, including who owns incidents on the provider side.

