Sizing Open edX for large enrollments: what a launch demands
If you are preparing a course or program launch with a known enrollment peak on a self-hosted platform, sizing is a measured exercise across web workers, data stores, caching, search and static assets, and the only proof that it works is a rehearsal run against a production-like environment before the date. Open edX is a Django-based modular monolith that delivers two core services, Studio for authoring and the LMS for learners, so a launch stresses both the learner path and the course team path at once. The edx-platform maintainers recommend running Open edX in production through a service provider or with Tutor, and Tutor documentation covers the Docker-based and Kubernetes deployments that most launch plans will rely on.
The work is about the whole platform, not one setting. Raising worker counts on the LMS without checking the database connection limits, the shared cache, or the Celery queues that handle grading and email will move the bottleneck rather than remove it. Ask your team to name the components that a launch touches: LMS and Studio web workers, Celery workers, MySQL, MongoDB, the shared Django cache, the search backend, object storage and the path that serves course assets. Each one needs an owner, a measured baseline and a stated limit, so that the rehearsal can show which one fails first.
Decide early who owns the launch-day runbook, how traffic will be watched during the peak, and what the rollback path is if enrollment exceeds the rehearsed load. Confirm with your infrastructure team the current release of the platform you run, because tuning guidance differs between named releases, and confirm the Tutor version and its Kubernetes support against the Tutor documentation before you commit to a design. A launch that has not been rehearsed against the real course structure, with realistic enrollment and grading activity, is an untested assumption.
How the parts of a launch-ready Open edX fit together
Learner requests start at the CDN for static assets and pass through the reverse proxy to the LMS and Studio web workers. Those workers share one cache and write to MySQL and MongoDB, while Celery workers pick up grading, email and report jobs from the same backend. The rehearsal environment is a separate path built from the same configuration, so load tests never touch production. Before the launch date, check each hand-off: asset offload, worker headroom, cache hit behavior and whether the queue drains during the test.
Production request path and the separate rehearsal path for a launch.
Which sizing lever to pull first, by bottleneck
When pages slow down as enrollment climbs, the first suspect is the request-serving tier. LMS and Studio run as uWSGI processes, and each worker handles one request at a time, so latency rises once workers queue. Before adding capacity, confirm whether CPU or memory is the actual limit on each node.
- uWSGI worker count. Raise
OPENEDX_LMS_UWSGI_WORKERSuntil CPU or memory on the node becomes the constraint. RaiseOPENEDX_CMS_UWSGI_WORKERSonly if authors are part of the peak. The uWSGI tuning page covers the memory limits that cap this. - Kubernetes replicas. On Kubernetes, add LMS replicas with
tutor k8s scaleonce a single node's workers are at their memory ceiling. Replicas only help if the shared cache and database can take the extra connections. - Autoscaling policy. Fixed replica counts do not react to a launch spike. The autoscaling page covers the latency metrics and policies that Tutor documentation leaves to you.
- Celery backlog. If slow pages arrive with delayed grades, reports or enrollment emails, the cause may be the Celery queues rather than web workers. The Celery scaling page covers queue sizing and backlog signals.
Check p95 response time, CPU and memory per worker, and proxy-level 502 and 504 errors during a load test before and after each change.
Open edX keeps transactional data such as enrollments, grades and user state in MySQL, and course structure and content in MongoDB. A launch stresses these differently, so the bottleneck has to be identified before any change. Watch database CPU, open connections and slow queries separately for each store during the rehearsal.
- MySQL load. Enrollment and grade reads are the usual pressure points. The fix is usually fewer repeated reads (through caching) and an instance sized with your DBA, on a MySQL 8.0 build that matches the supported development requirement.
- MongoDB structures growth. Each course save inserts a structures document, so heavily edited courses grow the collection over time. The MongoDB pruning page explains what the structures pruning script removes and why backups come first.
- Read offload. Confirm with your platform team whether read replicas are supported and tested for your release before routing read traffic to them. Do not assume support from the database vendor alone.
- Write freeze. Freeze course edits and bulk imports during launch week. This removes a source of MongoDB writes at the point where enrollment writes peak.
- Connection limits. Check that the connection count across all web and Celery workers stays under the database limit at full scale. Multiplying worker counts by nodes is the quickest way to hit it.
Compare database CPU, connection counts and MongoDB collection size before and after the rehearsal, and record which store reached its limit first.
A cache miss turns a page view into direct database reads, so a low hit rate can look like a database problem. Multi-node deployments need a shared Django cache backend such as Redis or Memcached. A cache that lives inside each process will not be shared between web nodes, so every node warms its own copy and misses repeat across the cluster.
- Shared backend. Confirm that every LMS and Studio node points at the same cache backend. The edx-platform repository lists Redis or Memcached as the shared options for multi-node deployments.
- Memory sizing. Size the cache for the hot set of course pages, session data and user state. Measure evictions during the rehearsal instead of estimating a size on paper.
- Session placement. Decide where sessions are stored so that a worker restart or pod replacement during the launch does not sign learners out. Test this explicitly.
- Cache warming. Request the launch course pages once before enrollment opens. This is illustrative of the approach, and the exact pages depend on your course design.
- Edit freeze. Course edits invalidate cached content. A freeze before the launch keeps the cache warm during the peak.
During a load test, check hit rate, evictions and memory use on the cache, and confirm with your platform team which keys the release caches in your environment.
Search and static assets create different loads that both grow with a large course. Search queries hit the search backend and the indexing jobs that keep it current. Asset traffic, meaning images, PDFs and video, is mostly bandwidth and is usually served from the platform by default. Identify which of the two is slow before choosing a fix.
- Search backend. The default search service is a single Meilisearch instance. If search downtime during a launch matters, the Typesense page covers a clustered backend for course, courseware and forum search and lists what still depends on Meilisearch.
- Indexing timing. Check whether indexing runs during the enrollment peak. Schedule reindexing outside the window where possible.
- CDN offload. Move images, PDFs and video to a content delivery network when large courses drive the asset load. The CDN page explains what the setting changes and whether your courses need it at all.
- Video delivery. Video is often the largest share of bytes. Confirm how video files are stored and delivered before sizing bandwidth, because the answer changes whether a CDN helps.
- Access logs first. Use access logs to see which asset types and search endpoints dominate traffic before buying CDN or search capacity.
Before the rehearsal, confirm the search index status, the search response time under load, and the share of asset requests that a CDN would serve.
Scaling options and when each one fits
This table compares the main ways to add capacity for a large enrollment or course launch, from tuning a single server to splitting data stores and offloading assets. Read each row as a separate lever: the first column names it, the middle columns show what it changes and when it fits, and the last column lists what it costs you in complexity or operating effort. Most launches combine several levers rather than picking one.
| Option | What it changes | When it fits | Trade-offs |
|---|---|---|---|
| Single-server uWSGI tuning | Raises LMS and Studio worker counts on one server so more requests run at once | Traffic is moderate and CPU and memory still have headroom on the existing host | Memory limits cap the gain, and latency can worsen once the host is saturated |
| Multi-replica Kubernetes with tutor k8s scale | Runs more LMS, CMS and forum replicas behind the cluster | Load must spread across several nodes and you run Tutor on Kubernetes | Needs a cluster you operate, and scaling is manual unless you add autoscaling |
| Autoscaling on Kubernetes | Adds replicas automatically based on metrics you define | Peaks are short and predictable enough to script, with latency metrics in place | Tutor leaves policies and metrics to you, so you must design and test them |
| Shared Redis or Memcached cache | Lets multiple web nodes share cached data instead of each holding its own | Two or more web nodes or replicas serve the same learners | Adds a stateful service to run, monitor and back up, and a single point of failure if unclustered |
| Scaled Celery workers | Adds capacity for grading, reports, notifications and email | Grading or email queues back up during deadlines or launch-day notifications | More workers draw on the same database and broker, so check those limits first |
| Separate or managed MySQL and MongoDB | Moves database load off the application hosts and gives each store its own sizing | Database CPU, IOPS or connections are the bottleneck | Requires backup, failover and upgrade planning for each store, and network latency matters |
| Clustered search backend | Replaces a single search instance with a cluster for course and forum search | Search downtime during a launch would block learners | Still depends on the search service's own migration, and some components may remain on the original backend |
| CDN for course assets | Serves images, PDFs and video files from edge locations rather than the LMS | Large courses carry heavy media and asset traffic | Changes how assets are delivered and cached, and not every course benefits, so confirm with the asset profile |
How to plan and rehearse a launch, step by step
This sequence turns a forecast and a launch date into a platform that has been measured, sized, and rehearsed under load, so the team knows its limits before learners arrive.
Get the forecast and launch date in writing
The course team, product owner, and platform owner agree on the launch date, expected concurrent learners, peak hours, enrollment curve, and the number of courses opening at once. Record the figures in a signed scope document with a named owner for each number. The step is done when the planning owner can point to one document that states the assumptions behind every later sizing decision, and any figure the team cannot source is marked as an estimate to confirm.
Baseline the current platform
Collect current request rates, response times, CPU, memory, database load, Celery queue depth, and error rates from the existing LMS and Studio under normal traffic and during any past peak. Use the monitoring stack already in place, and note gaps where no metric exists. The step is done when the team has a dated baseline that shows where the platform is already close to its limits, which becomes the reference for judging every later change.
Set target latency and error thresholds
Agree with the business owner on the response time, error rate, and availability the launch must meet, along with the thresholds that trigger a rollback or a scale-out during the event. Write them down as pass or fail criteria for the rehearsal. The step is done when every criterion has a metric, a measurement window, and a named decision-maker, so the rehearsal produces a clear result rather than a debate.
Size web and Celery workers
Use the baseline and the forecast to estimate the uWSGI worker count for LMS and Studio, the number of replicas per service, and the Celery capacity needed for grading, reports, notifications, and email. Confirm memory limits per process before raising worker counts, since memory caps how far workers can go on one node. The step is done when the sizing sheet shows the calculated capacity for each service, the memory headroom left on each node, and the queue depth expected at peak.
Verify shared cache and database capacity
Confirm that multi-node deployments share a Django cache backend such as Redis or Memcached, and that MySQL and MongoDB can handle the projected read and write load, including connection limits, replication lag, and storage growth from course edits. Check whether search and caching components will be on the critical path, and confirm the backup and restore procedure for each data store. The step is done when each data store has a documented capacity figure, a connection budget, and a tested restore path.
Move course assets to a CDN if needed
Review the size and type of assets in the launch courses, such as images, PDFs, and video, and decide whether a content delivery network is needed based on the expected asset traffic. Confirm the CDN setting and its effect on asset URLs, caching headers, and access control before the change reaches production. The step is done when the team can show the asset inventory, the traffic share they expect to be served from the CDN, and a check that learners load assets from the CDN hostname without broken links.
Run a load rehearsal on a production-like copy
Build a copy of the production environment with the same versions, configuration, data volume, and infrastructure, then run a load test that follows the expected enrollment and course access pattern. Monitor the target metrics throughout, and include failure cases such as a worker restart or a cache node loss. The step is done when the results are compared against the thresholds set earlier, every failed criterion has a recorded cause and fix, and the test is repeated after fixes until the criteria pass.
Confirm the monitoring and rollback plan
Before the launch, confirm that dashboards and alerts cover every threshold, that on-call contacts are named for the launch window, and that the rollback steps for configuration, worker counts, and any recent change are written and rehearsed. Agree who can trigger a rollback and how the decision is communicated. The step is done when the team has run the rollback procedure on the rehearsal copy and the on-call roster and alert routes have been tested.
Security and operations during a launch peak
A launch peak concentrates traffic, changes and risk into the same few days. The cards below cover the controls the platform team can implement and verify before enrollment opens, so that load testing does not become the only safeguard.
Restrict exposed admin paths
Studio, the Django admin and instructor tooling should not be reachable from the open internet during a launch window. Confirm which hostnames serve Studio and the LMS, that the admin path is restricted by network policy or an identity-aware proxy, and that staff access goes through SSO with MFA. A peak is also when scanners and opportunistic traffic rise, so check the reverse proxy rules before the first enrollment wave. Confirm each admin route returns a denial from outside the allowed network.
edx-platform repositoryHandle cache and session data
Multi-node Open edX deployments need a shared Django cache backend such as Redis or Memcached, so sessions and cached content are shared across web workers. Confirm the cache is not exposed on a public interface, that it requires authentication or sits on a private network, and that its memory limit and eviction policy are set deliberately. Ask the team what happens to user sessions if the cache restarts mid-enrollment.
Cache requirementsTake and test backups before the event
Take a full MySQL and MongoDB backup immediately before the launch window, and record the time and the backup identifier. A restore test on a separate environment should confirm that the backup is readable and complete, not just that the job reported success. Include media and object storage in the plan, since course assets are not in the database. Decide who can authorize a restore during the window.
Scope database credentials and access
Web workers, Celery workers and reporting jobs often share one database account, which widens the blast radius of a leaked secret. Confirm that each service uses its own credential with the minimum grants it needs, that read-only reporting connects to a replica or read-only user, and that credentials are injected from a secrets store rather than kept in configuration files. Rotate shared credentials before the window opens, not during it.
Rate limit enrollment and login
Enrollment and login endpoints are the most attractive targets during a launch, both for credential stuffing and for accidental floods from automated refresh scripts. Confirm where rate limits are enforced, whether at the edge gateway, the ingress or the application, and test them with realistic enrollment bursts that include legitimate users behind shared addresses. Agree in advance how blocked learners are told to retry, so support tickets do not overwhelm the team.
Freeze changes during the window
Set a written change freeze that starts before enrollment opens and ends after the peak has passed, covering configuration, plugin updates, theme changes and schema migrations. Keep one named owner who approves any emergency change, and record each one in a shared log. Confirm that the deployment pipeline is locked for the same period so a routine rollout cannot start by accident.
Questions teams ask before sizing a large Open edX launch
What drives the cost of sizing an Open edX platform for a large course launch?
The cost is driven by how many separate components need evidence, not by the word sizing itself. The main drivers are the number of LMS and Studio web workers and Celery workers to model, whether MySQL and MongoDB need to be offloaded or tuned, how search and caching are configured, whether a CDN is part of the design, and how many environments must be built for a rehearsal. Each of these adds build, load testing and tuning hours. Ask for a quote that lists each component separately, states which environments are included, and says whether the load test is run once or repeated after fixes. Infrastructure you pay for in your own cloud or data center is a recurring cost that the sizing work does not replace.
How long does a sizing and rehearsal exercise usually take?
Duration depends on scope: the number of course sections and expected concurrent learners, how many parts of the stack change, and how quickly your environments and traffic data are available. A limited review of one web tier and its cache is much shorter than a full exercise covering web, Celery, databases, search and CDN, followed by a rehearsal and a fix cycle. No duration is set in this page; ask for a timeline in the written scope with a named start point, the milestones for the rehearsal, and the date by which the launch calendar must be locked. Expect the timeline to move if the rehearsal finds bottlenecks that need a second round of changes.
What does the work need from our team before it starts?
Three inputs decide how much of the exercise is useful. First, historical traffic data: login peaks, course page views, forum activity and any previous launch logs, with the time zone they use. Second, access to a staging or pre-production environment that matches production in versions and topology, plus a way to deploy changes to it. Third, the launch calendar: enrollment open and close dates, the first assignment deadline, exam windows and any marketing events that will push traffic. Your team should also name a decision owner who can approve configuration changes during the rehearsal. Missing inputs usually mean the rehearsal tests an assumed load rather than your real one.
Can our internal platform team size and rehearse the launch without a partner?
Yes, if the team already runs Open edX on Tutor, has load testing experience and can staff the work alongside its normal duties. The team needs to know how uWSGI workers, Celery queues, MySQL, MongoDB, the cache backend and the storage path behave under load, and it needs time to repeat tests after each change. Teams that have not run a large Open edX event before often find the gap in the rehearsal phase, when a bottleneck appears late and no one has a tested fix. Decide early whether your own staff will own the rehearsal result, and whether an outside team will review the findings before the date.
What should a quote for a launch sizing engagement include?
A quote should follow from a written scope, and it should list the work in the same order the rehearsal will run. Look for the systems in scope (LMS and Studio web workers, Celery workers, MySQL, MongoDB, search, caching, CDN and storage), the environments built or reviewed, the load profile and test scenarios agreed in advance, the number of test rounds, and the deliverables: a sizing report, configuration changes, a rehearsal result and a go or no-go summary. Also ask what is excluded, such as infrastructure purchases, third-party CDN fees, or content migration. DeployOpen does not publish a price list, so the quote is the point where cost is set.
Which sizing steps are most likely to go wrong during a large launch?
The most common failure is testing a generic load instead of your real learner behavior, such as a login spike at a single enrollment time or a burst of quiz submissions at a deadline. Other frequent problems include a single MySQL or MongoDB instance that becomes the limit, a shared cache that is too small for the session volume, Celery queues that back up during grading, and assets served from the application server instead of a CDN. Teams also miss the effect of uWSGI memory limits on the number of workers they can run. Confirm that the rehearsal uses production-like data volumes and that the team reviews queue depth and database connections, not only average response time.
Do we need to offload MySQL and MongoDB, and how do we decide?
Offloading is a decision made from measurements, not a default. Start from the rehearsal data: if MySQL connections or query latency rise sharply under the peak load, or if MongoDB growth from course edits affects write speed, those are the signals to act on. Options include tuning the existing instances, moving to managed or dedicated database hosts in your infrastructure, and regular pruning of the MongoDB structures collection with backups taken first. Ask the team to show the before and after numbers from the rehearsal, and to confirm the backup and restore steps for each database before any change goes to production.
Is a CDN required for a large Open edX course launch?
A CDN is not required for every launch, but it is worth evaluating when a course serves many large images, PDFs or video files to learners at the same time. Measure how much of the peak load comes from static assets before deciding. If assets dominate, moving them to a CDN can reduce load on the web workers. If most traffic is dynamic course pages and API calls, the CDN will help less and the effort goes into workers and databases. Confirm with your legal and data residency team where cached content may be stored, and ask the sizing work to report asset bytes separately from application requests.
Limits to confirm in your environment before the date
Capacity planning for a launch depends on facts about the platform you already run, so start by confirming them. The cards below cover the release, the deployment tooling, the data stores, the search backend, the asset path and the size of your media, since each one changes what the rehearsal can prove.
Open edX release in use
Confirm the named release your platform runs before you size anything. Open edX states that only the latest named release is supported and that it cannot support more than one release at a time. Verawood is the current named release, so a platform on an older release should plan its upgrade before the launch window rather than during it. Record the exact version from your running instance, not from memory of the last deployment.
Release notesTutor version and Kubernetes setup
Record the Tutor version, the Kubernetes distribution and the replica settings for LMS, CMS and forum. Scaling commands and plugins behave differently across Tutor releases, so a load test on one version says little about another. Confirm who owns the autoscaling policy and whether the control plane is highly available, because a launch rehearsal against a single control plane tests a different failure mode than production will face.
Tutor docsMySQL and MongoDB versions
Confirm the MySQL and MongoDB versions in use, along with whether each runs as a single node, a replica set or a managed service. Open edX development requires MySQL 8.0 and MongoDB 7.x, so an older database version is a finding to resolve before the date. Ask whether the MongoDB structures collection has been pruned, because course edits insert new documents and unpruned growth changes storage and query behavior during a surge in authoring.
Deployed search backend
Identify which search backend serves LMS course, courseware and forum search. Some deployments run a single Meilisearch instance, while others have moved to a clustered alternative. Confirm which services depend on the backend and what happens to enrollment and course discovery if it is unavailable during the peak. A search outage at launch is often a dependency nobody listed, so map it explicitly.
Whether the CDN setting applies
Check whether your deployment serves course assets through the CDN setting and whether that setting reaches the content your courses actually use. Images, PDFs and uploaded files may follow different paths from video. Verify the behavior with a test course before relying on it, because a setting that covers only part of the asset path leaves the rest on your origin servers during the launch.
Asset and video size
Measure how much media your launch courses carry before deciding whether offloading is needed. Count the image, PDF and video files per course, their total size and how many learners will load them at once. A course with a small number of text-heavy units may not need offloading, while a video-heavy course with a large cohort will expose the origin quickly. Let the measured numbers decide the offloading work, not the size of the course catalog.
Why a rehearsal before the date decides the outcome
A load rehearsal on a production-like environment tells you more about a launch than any spec sheet, because the risk sits in how your courses, enrollment pattern and integrations interact with the platform, not in the nominal capacity of a server. Build the rehearsal environment from the same Tutor configuration, the same MySQL and MongoDB topology, the same cache and storage layout and a copy of the real course content, including the large video, PDF and image assets. Replay an enrollment pattern you have agreed with the business, with the registration burst, the first-hour course opening and the steady trickle after it. Synthetic traffic that hits only a home page will pass while the launch still fails.
Measure several signals at once and read them against each other. Latency on the LMS and Studio endpoints matters most to learners, but read it alongside CPU and memory on the web workers, because a worker that is pinned at its memory limit will look fine until it starts restarting. Watch the database tiers for connection saturation and slow queries, and the Celery queues for growing backlog, since a queue that never drains means grades, reports, emails and notifications are late even when every page loads quickly. Look for backlog in the queue depth over time, not in a single snapshot. Confirm the worker counts and concurrency settings you intend to launch with, and record which values changed during testing so the final configuration is the one you rehearsed.
Agree the go or no-go criteria in writing before the rehearsal, with the people who will make the call on the day: the course owners, the platform operators, the support lead and the business owner. Define each criterion as a measurable signal the team can read during the event, such as error rate on enrollment endpoints, p95 latency for course pages, queue age for the Celery tasks that send email, and free memory on the database hosts. Set the thresholds from your own baseline and your own tolerance for slow pages, not from a figure copied from another platform, and confirm the numbers with the team that owns each component. Decide in advance what a no-go triggers, such as holding enrollment, scaling the web tier or pausing a notification campaign, so nobody improvises under pressure.
How DeployOpen scopes and delivers launch sizing
DeployOpen plans, implements and hardens self-hosted Open edX inside your own infrastructure, so launch sizing is treated as a fixed-scope piece of work with written deliverables. We size the web, worker, database and search layers for your expected peak, then rehearse that peak before the date.
How we scope
- Agree in writing which launch figures, course structure and learner load the sizing work is based on
- Inventory the current LMS, Studio, Celery, MySQL, MongoDB, search and caching layers in your environment
- Define which capacity tests, CDN decisions and rehearsal runs are in the agreed scope and which are not
How we build
- Configure web and Celery worker counts, cache backends and database offloading against the agreed load profile
- Run load tests that mirror the enrollment and course launch pattern and record latency and resource results
- Document each change, its reason and its rollback path so your operations team can repeat the setup
How we hand over
- Deliver a sizing report with configuration values, test results, known limits and the assumptions behind them
- Walk your platform, operations and course teams through a launch runbook with monitoring and escalation steps
- Confirm with your team what has been tested and what remains to be checked in your own environment before go-live
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer if you want the platform re-tested before later launches
- Re-run rehearsal tests after Open edX upgrades, Tutor changes or significant course catalog growth
- Review capacity figures with your team after each launch so the next sizing starts from observed data

