BigBlueButton load balancing with Scalelite

Scalelite makes a pool of BigBlueButton servers look like one server to Greenlight and Moodle, and sends each meeting to the least loaded server. This page explains how the pool, its PostgreSQL, Redis and NFS parts, and failure handling fit together, and what to confirm before live classes depend on it.

On this page

BigBlueButton load balancing with Scalelite: when one server is no longer enough

Scalelite is an open-source load balancer that makes a pool of BigBlueButton servers appear as one server, placing each new meeting on the least loaded server in that pool. Operators usually need a pool when peak demand exceeds what one machine can carry: many classes starting in the same hour, large lectures, or events that run alongside timetabled teaching. At that point the decision is between one larger server and several standard servers behind one entry point. Start by measuring concurrent meetings and participants during your busiest hour, because total enrollment or yearly user counts say little about peak load. A pool also gives you other servers to take new meetings when one is unhealthy, though how existing meetings behave during a failure must be tested before you rely on it.

Scalelite depends on three components that you install and operate alongside the BigBlueButton servers. A PostgreSQL database stores the load balancer's records, so plan its backups and high availability as part of the platform from the start. A Redis cache supports the load balancer's short-lived state, and you should confirm exactly what it holds in the project repository before you design the stack. The NFS shared volume holds recordings so that every server in the pool writes to a location the others and the playback path can read. This volume is the component teams most often underestimate, because every recording and every server depends on it. Review its network path, mount options and capacity with the same care as the servers, and confirm that your storage platform can deliver the throughput and latency your recording volume needs. The project's Scalelite repository lists the current requirements.

The BigBlueButton 4.0 install docs list minimums for a single server: 16 GB of RAM with swap, 8 CPU cores with high single-thread performance, 500 GB of disk for recordings (50 GB without recording) and 250 Mbit/s symmetrical bandwidth. These minimums are a floor for installation, and they do not tell you how many meetings one server will hold. Capacity depends on class size, webcam and screen sharing use, recording, and breakout rooms, so load test one server with a profile that resembles your busiest hour before you multiply it into a pool. Build each pool member as a clean install, since the install docs state that direct upgrades from 2.6, 2.7 or 3.0 are not supported and that 4.0 installs on Ubuntu 24.04 64-bit. Check the install docs for the current firewall, TURN and hostname requirements that apply to every server in the pool.

Which pool layout fits your class load

This table compares the seven layout choices to settle before you build a Scalelite pool, from server count and database placement to recording storage, user entry points and tags or tenants. Read each row left to right: the first column names the choice, and the others say when it suits a deployment, what it costs in operations and recovery, and what to confirm in the Scalelite repository first. Settle the server specification and the recording path early, because most later trade-offs depend on them.

Layout choiceWhen it fitsOperations and recovery trade-offConfirm in the Scalelite repository
Server pool size and specificationClass load needs several servers, each meeting the 4.0 minimums: 16 GB RAM, 8 cores, 250 Mbit/sMore servers spread meetings but add patching, monitoring and capacity checks for each nodeHow servers are registered, how load is reported and how a server is drained before removal
PostgreSQL and Redis on a shared hostSmall pools where the Scalelite host has spare capacity for the database and cacheSimpler to set up, but one failure in that host stops routing for every meetingConnection settings, supported PostgreSQL and Redis versions and the backup approach documented there
PostgreSQL and Redis on a dedicated hostLarger pools where routing state must survive load on the Scalelite hostAdds a host to patch, back up and monitor, and a second point of failure to plan forWhich database and cache endpoints are configured and how failover is handled, if documented
Recordings on the shared NFS volumeTeams need recordings reachable from any server and one place to back upNFS becomes a shared dependency; an outage can block recording playback and processingNFS mount options, export settings and the disk sizing guidance for recordings
Recordings kept on each serverSmall pools with modest recording volume or teams that copy archives out after each classEach server needs its own disk, backup and retention work, and a failed node holds recordings offline until restoredWhere Scalelite looks for recordings and how playback behaves when a server is offline
Greenlight as the entry pointMeetings are offered outside an LMS and users sign in through GreenlightGreenlight becomes one more service to patch, back up and secure alongside the poolWhich Greenlight release is documented to work with your Scalelite version and how the shared secret is set
Moodle connecting directlyClasses run inside Moodle and staff want BigBlueButton activities in coursesMoodle upgrades and plugin changes must be tested against the pool each timeWhich endpoint and shared secret the Moodle integration needs and how it reaches Scalelite
Tags or tenants to separate groupsGroups need separate server sets, such as departments or customers, with different capacity or recording rulesEach tag or tenant adds routing rules to test, and a wrong tag can send meetings to the wrong serversHow tags and tenants are assigned to servers and meetings, and whether they change recording location

How to build a Scalelite pool step by step

This sequence takes a set of BigBlueButton 4.0 servers from clean installs to a Scalelite pool that accepts meetings, shares recordings and keeps running when a server fails. Each step ends with a named check, so the team can confirm the pool works before live classes depend on it. Run the steps in order, because later checks assume the earlier ones passed.

  1. Confirm each server is a clean 4.0 install

    Install BigBlueButton 4.0 on every server in the pool, on Ubuntu 24.04 64-bit. Rebuild any server currently on 2.6, 2.7 or 3.0 from a clean installation, because direct upgrades to 4.0 are not supported. Record the version and hostname of each server in your build log before going further. The step is done when every server reports the 4.0 version and a test meeting starts on each server when it is hosted directly, without Scalelite in the path.

  2. Check ports, hostnames and Docker on each server

    On each server, confirm TCP 80 and 443 and UDP 16384 to 32768 are reachable from the clients and the other servers that need them. Confirm each server has a valid hostname for its SSL certificate and that Docker is installed, because sandboxed LibreOffice document conversion runs through it. Note whether users sit behind restrictive firewalls, since the install documentation recommends a TURN server for them. The step is done when a port check from outside the network, a hostname lookup from a client and a Docker status check all pass on every server.

  3. Provision PostgreSQL, Redis and the NFS volume

    Create the PostgreSQL database and the Redis instance that Scalelite will use, and export the NFS volume that will hold recordings. Confirm the database accepts connections from the host where Scalelite will run, that Redis answers from that host, and that the NFS export allows every BigBlueButton server as a client. Mount the volume on each BigBlueButton server at the same path, then write a test file on one server and confirm it appears on all the others. The step is done when every server mounts the share and reads and writes succeed.

  4. Install Scalelite and confirm its connections

    Install Scalelite on the host you have chosen for it, following the Scalelite project's installation guide. Point it at the PostgreSQL database, the Redis instance and the NFS path from the previous step. Start the service and read its logs, looking for connection errors to the database and Redis. Confirm the recording path Scalelite uses matches the path each BigBlueButton server mounts. The step is done when Scalelite starts cleanly, its logs show no connection errors to the three services, and the recording paths match on every server.

  5. Register servers and validate API checksums

    Register each BigBlueButton server in Scalelite with its hostname and the shared secret configured on that server. Every API call must carry a checksum computed with that secret, using SHA-256 by default, and SHA-384 or SHA-512 is available since version 2.5. Send a signed test API call through Scalelite and confirm the checksum validates for each registered server. Keep shared secrets out of web pages and out of shared documents. The step is done when every registered server returns a valid response to a signed call.

  6. Connect Greenlight and Moodle, then join a test meeting

    Set the BigBlueButton endpoint in Greenlight and Moodle to the Scalelite endpoint. Create a meeting from each front end, then join it from two browsers, one as moderator and one as attendee. Check that audio and video work for both participants and that the meeting is placed on one of the pool servers. Repeat the join from a Moodle course if you use the BigBlueButton activity there. The step is done when a meeting created from each front end joins, carries audio and video, and runs on a pool server.

  7. Confirm recordings from each server reach the shared volume

    Run enough test meetings that each server in the pool hosts at least one and records it. After processing finishes, check that every recording appears on the NFS volume under the path all servers share. Open one recording from a front end to confirm playback works end to end. The step is done when every server has produced a recording that sits on the shared volume and the playback check passes.

  8. Run a drain and failure drill on a test pool

    On a test pool, drain one server so it accepts no new meetings while its current sessions finish, then confirm new meetings land on the other servers. Next, stop one server during a live test meeting and record what the participants see and how Scalelite reports the failed server. Repeat the drill with a second server if your pool has one. Bring the pool back to its normal state afterward. The step is done when the drain and failure results are written down with the recovery steps operators will follow, and the team has agreed them before live classes start.

How Scalelite sits between the front ends and the server pool

The diagram starts on the left with Moodle and Greenlight in the users' network. Both send BigBlueButton API calls, protected by a checksum, to one Scalelite endpoint. The boundary between the users' network and the operator's infrastructure is where those calls cross into the operator's environment. Inside that environment, Scalelite keeps its state in PostgreSQL and Redis, then routes each meeting to one server in the BigBlueButton pool. Every server writes recordings to a shared NFS volume, so recordings from all servers end up in one place. Confirm the exact request paths and how Scalelite stores meeting state in the Scalelite repository before this diagram goes into a design review.

Front ends call one Scalelite endpoint that routes meetings across the server pool.

What happens when a server fails during a live class

Before any live class depends on a Scalelite pool, the operator needs written answers to four questions about failure. What happens to meetings already running on a server that stops responding? Are new meetings placed on the remaining servers, and how quickly does the pool stop sending traffic to the failed one? What state must survive the failure, and how is it restored? Do recordings in progress survive on the NFS volume? This section does not state how Scalelite behaves in any of these cases, so do not infer the answers from the load balancing design. Confirm each one in the Scalelite repository and documentation for the exact version you deploy, and record each answer in the pool's runbook.

The state question depends on where each piece of data lives. Scalelite uses a PostgreSQL database, a Redis cache and an NFS shared volume for recordings, so the answer depends on which store holds what. For each store, confirm which records describe the servers and meetings, which data exists only in Redis and can be rebuilt, and what happens to PostgreSQL and Redis after a restart or a failover. Then confirm what a recording looks like on the NFS volume when the BigBlueButton server writing it stops mid-session: complete, partial or unreadable. Your NFS mount options and backup scheme shape that result, so review them with the storage team and test the outcome instead of assuming it.

Answer these questions with evidence from a test run. Schedule a failure drill on a test pool that matches the production layout, with the same Scalelite version, PostgreSQL, Redis and NFS configuration. Start a meeting and a recording on one BigBlueButton server, stop that server, and note what happens to the running meeting, to the next meeting the pool places, to the PostgreSQL and Redis state after the restart, and to the recording files on the NFS volume. Have operators follow the written runbook, time each step and keep the logs. Repeat the drill after every Scalelite, BigBlueButton or storage change, and do not schedule a live class on the pool until the observed results match the documented answers.

Connecting Greenlight and Moodle to the pool

Greenlight v3 is the room front end for people who meet outside a learning management system. Its sign-in can be delegated to an external identity provider, and its connection to BigBlueButton is set in its own configuration. Both settings decide whether a join reaches the pool at all, so review them before users arrive.

  • External sign-in with OpenID Connect: Greenlight v3 supports external authentication through OpenID Connect, configured with environment variables. Check the variable names against the Greenlight version you deploy, using the Greenlight v3 external authentication docs.
  • Keycloak for other login methods: The Greenlight docs suggest Keycloak as the broker for Google, Microsoft, SAML and other login methods. Keycloak sits between Greenlight and those providers, so confirm which identity provider your users sign in with.
  • Scalelite endpoint as the server: Set the BigBlueButton server in Greenlight to the Scalelite endpoint. Pointing Greenlight at one BigBlueButton server sends those meetings past the load balancer, so confirm this setting in your own environment.
  • Shared secret handling: Greenlight needs the Scalelite shared secret to make API calls. Keep it in server-side configuration, and keep it out of templates, client-side code and any file the browser can download.
  • Test join from Greenlight: Create a room, start a meeting as a moderator, then join from a second browser as an attendee. Confirm that the meeting is created on a pool server and that both sessions reach it.

Confirm the sign-in path, the Scalelite endpoint and the test join together before you announce the room service to users.

Security and data handling for a shared recordings volume

A Scalelite pool shares one recordings volume, so every server, administrator account and network path to it widens who can reach student recordings. The cards below cover the controls to set before go-live and the legal questions to settle with your institution's counsel.

Shared secret and checksums

Every BigBlueButton API call carries a checksum built from a secret shared with the server, and Scalelite relies on that secret when it calls each pool member. The default is SHA-256, SHA-1 is kept for legacy use, and SHA-384 or SHA-512 are available since version 2.5. Keep the secret out of web pages, because anyone who can read page source can sign their own API calls. Confirm that Greenlight, your LMS and any custom front end build checksums on the server side only.

API docs

Access to the NFS volume

Scalelite reads and writes recordings on an NFS volume that every pool server mounts, which makes the export the main point of read access to recordings. Limit the export to the addresses of the BigBlueButton servers and the Scalelite host, and grant administrative access to named people only. Confirm that no other host, container or user account can mount the share. Test the restriction from an unapproved machine before go-live, because an export that looks correct on paper can still allow wider access than intended.

FERPA and an outside operator

If an outside operator runs the pool, the school-official exception in 34 CFR 99.31(a)(1)(i)(B) requires a service the institution would otherwise perform with its own employees, direct institutional control over the use and maintenance of the records, and the redisclosure limits in 99.33(a). The institution must also use reasonable access controls under 99.31(a)(1)(ii) and keep a disclosure record under 99.32. Whether a given recording is an education record is a question for the institution's counsel.

34 CFR Part 99

Network exposure of the pool

BigBlueButton needs TCP 80 and 443 for web traffic and UDP 16384 to 32768 for media, so these are the ports that should face users. Keep the PostgreSQL, Redis and NFS ports reachable only from the Scalelite host and the BigBlueButton servers, on a private network where your design allows. Treat the UDP media range as a deliberate exposure, because each open port is a surface you must monitor. Plan a TURN server for users behind restrictive firewalls, and check the firewall rules on every pool member, not only on the load balancer.

Install docs

Patching the whole chain together

The pool, Scalelite, PostgreSQL, Redis and the NFS host depend on each other, so a patch to one component can break the others. Schedule them in one maintenance window with a written order, a database rollback point and a recordings backup taken first. Patch only on a written change plan, and confirm that your Scalelite release supports your BigBlueButton version before you move the pool. The 3.0 branch still receives maintenance releases, so check which branch each server runs.

Scalelite project

Questions to answer before hiring help with Scalelite

What drives the cost of a Scalelite server pool?

Cost depends on the written scope, and DeployOpen does not publish a price list, so the quote follows from the components you agree to. The main drivers are the size of the server pool, the number of front ends (such as Greenlight or LMS connections) that send meetings to it, and who hosts the PostgreSQL database, Redis cache and NFS volume for recordings. Failure testing during simulated class loads, documentation of the final setup and any ongoing support or upgrade retainer also add cost. Cloud or data center charges are paid to your infrastructure provider, separately from the service fee, and they recur. Ask for a quote that lists each component, marks what is one-time and what is a retainer, names the environments covered and states which tests are included.

How long does adding Scalelite to BigBlueButton take?

The timeline depends on how many servers are in the pool, whether they already exist or must be built, how quickly DeployOpen gets access to your environment, and how much testing you need before classes move over. A pool that starts from clean installs and needs a full failover test takes longer than adding one server to a working setup. The schedule is agreed in the written scope, with milestones that name who must act at each step, such as the network team opening ports or the DNS owner updating records. Ask for a schedule that shows which dates depend on your access, your maintenance windows and your class calendar, so delays on your side are visible early.

What access and information does a Scalelite project need?

Before work starts, you need access to the cloud accounts or data center where the servers run, plus the hostnames and DNS records for each service. BigBlueButton needs a valid hostname for SSL, so plan the TLS certificates or the process for requesting them. The network must allow TCP ports 80 and 443 and UDP ports 16384 to 32768 to reach the servers, and a TURN server is recommended for users behind restrictive firewalls. You also need a maintenance window for installs and restarts, and your class calendar, so load tests and failover tests stay outside teaching hours. Agree in advance on who approves changes and who can be reached during testing.

Can our own team set up Scalelite without outside help?

Yes, if your team already runs Linux servers, PostgreSQL, Redis, NFS and BigBlueButton in production, it can build a Scalelite pool using the project documentation. Check these skills first: Linux administration and package updates, PostgreSQL backup and restore, Redis configuration and monitoring, NFS exports with correct permissions, reverse proxy and TLS certificate renewal, and BigBlueButton operations such as reading logs and checking meeting capacity. Confirm that someone can run load tests and respond during class hours. A gap in one area is a reason to hire help for that part only, such as the database setup or the failover test, while your team keeps the rest.

Should we upgrade our single BigBlueButton server before adding a pool?

Do not plan an in-place upgrade of your existing server as the first step. BigBlueButton 4.0 installs on Ubuntu 24.04 64-bit, and direct upgrades from 2.6, 2.7 or 3.0 are not supported, so a clean 4.0 server installation is the supported starting point. Treat the current server as a candidate for a rebuild, then confirm sizing before adding a pool. The 4.0 install minimums include at least 16 GB of RAM with swap, 8 CPU cores with high single-thread performance, 500 GB of disk for recordings (50 GB without recording) and 250 Mbit/s symmetrical bandwidth. Run a load test with your own class profile, because the minimums do not show how many concurrent users one server can hold. Plan the migration of existing recordings and data separately. The BigBlueButton install docs list the current requirements.

What happens to classes when a Scalelite server fails?

A server that fails during a live class is likely to end the meetings it hosted, so participants on that server must rejoin. The goal of the design is to limit that impact and recover quickly. Scalelite sends each new meeting to the least loaded server in the pool, so new classes can continue on the remaining servers while the failed one is out of service. Confirm with the Scalelite project how it detects an unavailable server, how long detection takes and how you drain a server before maintenance. Test these behaviors in a non-production copy with simulated class loads, and record what happens to recordings in progress.

Why does NFS matter for recordings in a Scalelite pool?

Scalelite stores recordings on a shared NFS volume that every server in the pool must reach, so the NFS host is a shared dependency. If it becomes unavailable, recordings may fail to write or finish, and playback may fail, depending on your setup. Plan the NFS host with the same care as the database: decide who hosts it, how it is backed up, how it is monitored and how much space the archive needs. Each server needs local disk sized for recordings (500 GB with recording under the 4.0 install minimums), but the shared volume must hold the combined archive for the whole pool. Ask for a written explanation of how recordings move from each server to NFS and what happens to a recording if a server stops mid-session.

Limits to confirm in your environment before going live

Each item below is a point where the Scalelite release you deploy, your BigBlueButton version and your own hardware decide the outcome, so none of them should be taken from a general guide. Confirm each one in a staging pool that matches production before you send live classes to it. The minimum server specification is only the starting point for sizing.

Scalelite release and 4.0 compatibility

Scalelite has its own repository, so its release tag, not the BigBlueButton version alone, decides whether your pool behaves as expected. BigBlueButton 4.0.0 was released on October 14, 2026, and the 3.0 branch still receives maintenance releases, so both lines are current. Before you pin a Scalelite version, confirm in its repository that the tag supports BigBlueButton 4.0 servers. Then test that exact tag with your Greenlight or LMS front end in a staging pool before production.

Scalelite repository

Minimum server specification

The install documentation sets a floor for each BigBlueButton 4.0 server: 16 GB of RAM with swap, 8 CPU cores with high single-thread performance, 250 Mbit/s of symmetrical bandwidth, and disk of 500 GB if recordings are kept or 50 GB without recording. Treat these figures as the minimum for one server. Concurrent users, webcam use, screen sharing and recording settings all change the load, so size the pool from a load test on the instance types you plan to use. Confirm that your cloud or hardware family delivers sustained single-thread performance under that test.

Install docs

Mixed 3.0 and 4.0 servers

A staged rollout can leave 3.0 and 4.0 servers side by side, and the upgrade rules do not cover that case. The upgrade rules do not support moving a 3.0 server to 4.0 in place, and the install guidance recommends a clean installation on Ubuntu 24.04 64-bit. Treat every 4.0 server in the pool as a new build. Then confirm with your Scalelite release whether mixed versions can share one pool during cutover. If they cannot, schedule the cutover as one maintenance window rather than a rolling change.

Failover and drain behavior

Scalelite sends each new meeting to the least loaded server, but what happens to meetings already running on a server that fails, or one you drain for maintenance, depends on the release you run. Ask for the documented behavior on three points: whether live meetings on a failed server are lost or recoverable, whether a drained server accepts no new meetings while existing ones finish, and how recordings from a failed server reach the shared volume. Run a failure drill during a staged class before go-live, and write the observed behavior into your runbook.

NFS volume capacity and performance

Scalelite keeps recordings on a shared NFS volume, so every server in the pool writes to one storage path that you must size and operate. Recording volume depends on how many classes you record, how long they run, and which formats you keep, so estimate it from your timetable and from test recordings made on your own servers. Confirm write throughput under peak load, not only total capacity. Also confirm the mount options, and what happens to in-progress recordings if the NFS server or network link stalls. Set backups to match your retention rules.

Tags and tenants behavior

Tags and tenants let one pool serve several departments, schools or customers, but their rules can change between releases. Before go-live, check how a meeting that requests a tag is placed when no tagged server has capacity, whether tenant identifiers reach recordings and reports, and whether each tenant's shared secret is kept separate. Write the answers into a test plan, and repeat those tests after every Scalelite upgrade, since placement rules are the first thing a release change can alter.

How DeployOpen scopes and runs a Scalelite pool

DeployOpen plans and implements BigBlueButton load balancing with Scalelite in infrastructure you control, so a pool of BigBlueButton servers appears to users as one server. Scalelite sends each meeting to the least loaded server and relies on PostgreSQL, Redis and an NFS shared volume for recordings. Work is documented and agreed in writing before it starts.

How we scope

  • The written scope lists the server pool size, sizing inputs and the expected concurrent meeting load.
  • Scope covers PostgreSQL, Redis, the NFS recordings volume, and how Greenlight or Moodle connect to Scalelite.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • Build the BigBlueButton servers, Scalelite, PostgreSQL and Redis in your cloud accounts or data centers.
  • Configure the NFS volume for recordings and test that every server reads and writes the same paths.
  • Harden the front end, TLS and firewall rules, covering TCP 80 and 443 and UDP 16384 to 32768.

How we hand over

  • Hand over architecture diagrams, server inventory, configuration files and a runbook for pool changes.
  • Document the server drain procedure, meeting placement checks and recovery steps for a failed server during live classes.
  • Walk your operators through the runbook and the failover tests so your team can run the pool.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Version changes are planned with the 4.0 install requirements, since direct upgrades from 3.0 are not supported.
  • Monitoring and capacity reviews are scoped with you, covering pool load and recording storage growth over time.

Sources and further reading

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.