Setting up Scalelite load balancing for BigBlueButton

Scalelite makes a pool of BigBlueButton servers appear as one server and sends each meeting to the least loaded server. This page explains how to build that cluster, what each part needs, and what to test before front ends switch over.

On this page

What Scalelite load balancing does for a BigBlueButton pool

One full or failed BigBlueButton server disrupts classes, so a team that needs several servers behind one address can use Scalelite, the open-source load balancer that makes the pool appear as one server. It sends each new meeting to the least loaded server and keeps its state in PostgreSQL, Redis and an NFS shared volume for recordings. Front ends connect to Scalelite's URL and secret, so they do not need to know which server hosts a given meeting. That single address is the reason the pool is worth building, and it is also why Scalelite needs the same care as the servers behind it.

Start by deciding whether your problem is capacity or resilience. If peak use is occasional and one server copes with it, a sizing change or a larger machine may be enough, and it avoids running a cluster for a risk you may not have. A cluster earns its place when concurrent use regularly exceeds what one server carries, when a single server failure would end classes you cannot reschedule, or when you need separate groups of servers for different kinds of meetings. Measure your real peak concurrency and recording volume against the server sizing guidance in this content group, and confirm the figures with a load test on your own hardware before you buy anything. A cluster adds hosts to run, so its cost is more than the extra BigBlueButton servers.

Scalelite changes what you operate. The load balancer, PostgreSQL, Redis and the NFS volume each become a service with its own patching, backups and failure modes, and a fault in the database or shared storage can disrupt the whole pool even when every BigBlueButton server is healthy. Before you commit, confirm which Scalelite release works with your BigBlueButton version, and name an owner for each component. Then write down how the pool should behave when one server stops responding, including what happens to meetings already running on it, so the failover test checks a written expectation against what actually happens.

How Scalelite sits between front ends and BigBlueButton servers

The diagram starts with the front-end path: Greenlight, LMS integrations and custom API clients call the Scalelite URL with the Scalelite secret, so the front ends never need to know which BigBlueButton server hosts a meeting. Scalelite picks the least loaded server in the pool for each meeting and keeps its state in PostgreSQL and Redis. Each BigBlueButton server writes recordings to the NFS volume that Scalelite serves from. Before go-live, confirm which of these components you will make redundant. Until you do, the Scalelite host, PostgreSQL, Redis, NFS and the front-end path each stop the cluster if they fail, and a lost BigBlueButton server takes its meetings with it.

Front ends reach the BigBlueButton pool only through Scalelite, which relies on four shared components.

Choosing a Scalelite layout for your pool

This table compares three layout decisions for a Scalelite pool: where PostgreSQL and Redis run, where recordings are stored, and how the services are installed. Read each row as one option, with what it gives, what it adds in effort and risk, and when it fits. The main takeaway is that a single host is the quickest route to a working pool, while the recording storage choice is the one that is hardest to change once meetings are running.

DecisionOptionWhat it gives and addsWhen it fits
Database and cacheSingle Scalelite host with PostgreSQL and Redis on itFewest machines to build and patch. Scalelite, its database and its cache fail together, and one host carries all API and database load.Pilots and first clusters where meeting volume is modest and one maintenance window can cover every service.
Database and cacheSeparate PostgreSQL and Redis hostsEach data store can be sized, backed up and restarted on its own. Adds hosts to build, network rules between them and credentials to manage.Larger pools, or where a team already runs PostgreSQL and wants Scalelite's data kept on managed database hosts.
Recording storageNFS shared volume for recordingsRecordings sit in one location that Scalelite can reach from any pool member. Adds an NFS server, UID and GID mapping and a shared point of failure for recordings.Clusters where students or staff play back recordings from any server in the pool and the team can run NFS reliably.
Recording storageLocal storage on each server, moved to shared storage laterLets the pool start without an NFS server. Recordings stay on each BigBlueButton server until you plan the move, the import and the cleanup.Short pilots or pools with few recordings, where a dated plan to move to shared storage is written before go-live.
Install methodDocker-based install (confirm the current method in the Scalelite repository)Containers keep service versions pinned and make rebuilds repeatable. Adds container runtime management and discipline about version tags.Teams that already run containers and want pinned, repeatable upgrades of the Scalelite services.
Install methodManual services on the hostEach service is installed and managed with the operating system's own tools. Adds more manual steps to build and more care to keep versions aligned during upgrades.Teams that manage Linux services directly and do not run a container platform for this workload.

Preparing each BigBlueButton server before it joins the pool

Scalelite sends meetings to any server in the pool that has capacity, so every BigBlueButton server must meet the 4.0 install requirements before you add it. Start with hardware: at least 16 GB of RAM with swap, 8 CPU cores with high single-thread performance, and 250 Mbit/s of symmetrical bandwidth. Disk is the requirement teams most often underestimate. A server that keeps recordings locally needs 500 GB, while a server without recording needs 50 GB. Decide your recording plan before provisioning, so the pool does not end up with a mix of servers that can record and servers that cannot. Confirm with your team whether recordings will later move to shared storage, because that choice changes what each server needs to keep.

Next, check the operating system and network. Each server must be a clean installation of Ubuntu 24.04 64-bit, and direct upgrades from 2.6, 2.7 or 3.0 are not supported, so an older machine must be rebuilt before it joins the pool. TCP ports 80 and 443 and UDP ports 16384 to 32768 must be reachable from your users. Each server needs a valid hostname so its SSL certificate can be issued. Docker must be installed for sandboxed LibreOffice document conversion. Users behind restrictive firewalls may need a TURN server, which the install documentation recommends. Test the UDP range end to end through every firewall and NAT in front of each server, because a server that works on the office network can still fail for remote attendees.

Each server also needs its own shared secret. Set it on the BigBlueButton server, record it in Scalelite's configuration for that server, and keep it on the server side only. Every API call carries a checksum made with this secret, and the BigBlueButton API documentation warns never to embed it in a web page. Once your front ends are switched to Scalelite's URL and secret, they should hold only that pair. Before adding a server, run a test meeting from a network outside your own and confirm the ports, hostname and certificate behave as expected. Follow the BigBlueButton install documentation for the exact steps on each server.

Setting up Scalelite load balancing step by step

This sequence builds a Scalelite cluster in an order that lets you test each layer before the next one depends on it. You start with the Scalelite host and its PostgreSQL, Redis and NFS dependencies, then add BigBlueButton servers one at a time. It finishes by confirming that a meeting lands on the least loaded server and that recordings reach shared storage, with a check at the end of each step.

  1. Provision the Scalelite host and its dependencies

    Your infrastructure team provisions one host for Scalelite, then sets up PostgreSQL for the database, Redis for the cache and an NFS export that will hold recordings. Keep all of these in infrastructure you control, and confirm the Scalelite host can reach each dependency over the network before you install anything else. Take the exact package names, database and Redis settings, and mount options from the Scalelite repository README, and mark each one to confirm against the release you plan to run. Done when the host connects to PostgreSQL and Redis and mounts the NFS export with write access for the account that will receive recordings. Recording path details are covered in the Scalelite recording storage on an NFS shared volume topic.

  2. Deploy Scalelite and connect it to its services

    Install Scalelite on the host using the method its README documents, with the database, Redis and recording settings pointed at the dependencies from the previous step. Set the database connection, Redis address and shared recording path in the configuration the README names, and record the exact key names you used, since they must match the README for your release. Run the database setup step the README describes before you start the service. Done when the application starts without database or Redis connection errors in its logs and its API answers on the Scalelite hostname you chose. Confirm that this hostname resolves from every network where your BigBlueButton servers and front ends will reach it.

  3. Install each BigBlueButton server from a clean image

    Build each BigBlueButton server on a fresh Ubuntu 24.04 64-bit installation. BigBlueButton 4.0 does not support direct upgrades from 2.6, 2.7 or 3.0, so the install docs recommend a clean server installation. Each server needs 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. Open TCP ports 80 and 443 and UDP ports 16384 to 32768, give each server a valid hostname for SSL, and install with the bbb-install.sh script from the install docs. Done when the installation finishes and the health check described in the install docs passes, with the exact command confirmed in those docs before you run it.

  4. Confirm each server answers signed API calls

    Before Scalelite contacts a server, check that its BigBlueButton API accepts calls signed with that server's secret. Every API call carries a checksum computed from the shared secret, using SHA-256 by default, and SHA-384 or SHA-512 is available since version 2.5. Read the server's URL and secret from its configuration on the server itself, and keep the secret out of any web page or shared document. Run a read-only API call from the API docs and confirm it returns a success response. Done when every server returns success with its own secret and a call with a wrong secret is rejected, which shows the checksum is being checked.

  5. Register each server in Scalelite and enable it

    Add each BigBlueButton server to Scalelite using its URL and secret, through the method the Scalelite README describes for your release, such as its command line or admin interface. Confirm the exact registration command and the enable setting in the repository before you run them. Enable each server only after its registration reads back correctly, because a disabled server receives no new meetings. Record each server's name and URL in your runbook, and keep its secret in your secrets store and out of shared notes. Done when Scalelite lists every server as enabled and shows the name and URL you entered for each one, with load information appearing after its first polling cycle.

  6. Run a test meeting and confirm placement

    Create a test meeting through Scalelite's URL and secret, not through a BigBlueButton server's address, so the request exercises the load balancer itself. Before you create it, note each enabled server's current load as Scalelite reports it. Scalelite should place the meeting on the enabled server with the lowest load, so check afterward which server holds the meeting, using that server's meeting list. Then start a second test meeting while the first is running and confirm it lands on a server with less load. Done when each test meeting lands on the server Scalelite reported as least loaded at the moment of creation.

  7. Confirm recordings reach the shared volume

    Record the test meeting on the server Scalelite selected, end the session and wait for BigBlueButton to finish processing the recording. Check that the published recording appears on the NFS export that the Scalelite host mounts, and that its file owner and group match the UID and GID mapping you configured. The post-publish script, spool and published directories, and mapping settings are covered in the Scalelite recording storage on an NFS shared volume topic, so follow that guide for the configuration. Done when the test recording is visible on the shared volume and the local copy on the BigBlueButton server is handled as that topic describes.

Failover tests to run before go-live

Run these four tests on a staging cluster that matches production before any users join. Each one breaks a single component in the Scalelite cluster so you can see what new meetings, live meetings and recordings do while it is down. Record the results against the same checklist you used for setup.

Stop one BigBlueButton server

Stop the BigBlueButton server in one pool member while a second test meeting is open, then create new meetings and note which server each one lands on. Confirm in the Scalelite project documentation how a stopped server is removed from placement, then check that new meetings avoid it. Where new meetings land is the main evidence, so record the server name, the time you stopped it, and the meeting IDs for each placement. This test does not show what happens to meetings already running on the stopped server, or how the pool behaves at full load.

Scalelite project

Restart Scalelite during a meeting

Keep one test meeting running with two participants, then restart the Scalelite service using the same method your operators would use in production. Watch whether the live meeting keeps its audio, video and slides, and whether a new join request through the front end succeeds once the service is back. Time the window between stopping and the first successful join, and record the front-end and Scalelite log lines. This test does not show behavior under a restart during peak load, or whether front ends retry joins on their own.

Interrupt PostgreSQL or Redis

Stop PostgreSQL or Redis for a short, timed interval while a test meeting is running, one component per test run. Note which operations fail during the interval: new joins, the server list, and the meeting state that Scalelite reads back. Record each failure with its timestamp and the error text from the Scalelite logs, then confirm the cluster resumes normal placement once the component is back. This test does not prove the database or cache is replicated or highly available, so confirm that design separately.

Make the NFS volume unavailable

Unmount or block the NFS shared volume on the Scalelite side and on one BigBlueButton server, then end a test meeting so its recording must be written. Check whether the meeting still starts, whether the recording reaches the shared volume after the mount returns, and what the recording publishing step logs during the outage. Keep the mount command, the times and the log output so the result can be compared with your recording storage setup. This test does not prove that recordings are complete after a long outage, or how the volume behaves under other storage failures.

Switching front ends to the Scalelite URL and secret

Greenlight stores the BigBlueButton endpoint and shared secret in its own configuration. Once Scalelite answers for the pool, Greenlight sends its API calls to the Scalelite hostname, and Scalelite chooses the server for each meeting. Room definitions and user accounts stay in Greenlight's database, so users see the same rooms after the change. Only the connection settings move.

  • Endpoint value: Set the endpoint to the Scalelite API address, including the /bigbluebutton/api path. Confirm the exact variable names in the Greenlight environment file for your version.
  • Secret value: Replace the secret with the Scalelite secret. Greenlight signs every call with this value, so a mismatch shows up as failed joins.
  • Restart after editing: Restart the Greenlight containers or services using the method from your install, then confirm the new values were loaded.
  • Existing rooms: Check that existing rooms open and that recordings still list after the change.
  • Test join: Sign in with a test account, open a room, start the meeting, and join from a second browser profile.

Confirm that the meeting appears on one of the pool servers before you tell users the change is complete.

Security controls for the shared secret, access and recordings

A Scalelite cluster puts one control point in front of many BigBlueButton servers, so four controls carry most of the risk: the secret that signs API calls, who can administer Scalelite and its database, how traffic is encrypted and named, and who can read the recordings on the shared volume. Each card below says what the control protects and what your security team should confirm before go-live.

Shared secret and checksums

Every BigBlueButton API call must carry a checksum made with a secret shared with the server. The default algorithm is SHA-256, SHA-1 is kept only for legacy integrations, and SHA-384 or SHA-512 are available from version 2.5. Keep the secret out of web pages, browser scripts and logs, and write a rotation plan that changes it on Scalelite and every front end in one planned window. Confirm which algorithm each front end sends before you enable the pool, because a mismatch blocks meeting creation.

BigBlueButton API docs

Administrator access to Scalelite

Scalelite holds the list of BigBlueButton servers, which decides where every meeting runs. Its PostgreSQL database stores the meeting and server records, and Redis caches state for the pool. Anyone who can change the server list or the secrets can send classes to a server you do not control, so administrator accounts should be named, limited and logged. Confirm that PostgreSQL and Redis accept connections only from the Scalelite host, that shell access to that host is restricted, and that database backups are protected as carefully as the live database.

Scalelite repository

TLS and hostnames

Scalelite's endpoint and each BigBlueButton server need a valid hostname for SSL, and clients reach them over TCP 80 and 443. Every server needs its own certificate name that matches its hostname. Encryption protects checksums and session data in transit, and matching names let clients confirm they are talking to the right host. Confirm that front ends use only the Scalelite hostname over HTTPS, that certificates cover every name in the pool, and that renewal is automated so a lapsed certificate does not stop classes.

Install docs

Recording volume access

Scalelite keeps recordings on an NFS shared volume so that recordings from every server are available to the pool. Recordings can contain speech, video, slides and chat from students and staff. Anyone who can read the volume can read every recording, so confirm that the NFS export allows only the hosts that need it. Also confirm that UID and GID mapping is set on purpose and documented, that write and delete rights are limited to named roles, and that your retention and deletion rules apply to the volume as well as to the playback copies.

What Scalelite load balancing takes in effort and what the work needs from you

What drives the effort of building a Scalelite load balancing pool?

Server count, front ends, recording storage, network and team skills drive the effort most. Each BigBlueButton server is another host to build, register and test, and the install documentation sets the 4.0 minimums at 16 GB of RAM with swap, 8 CPU cores and 250 Mbit/s of symmetrical bandwidth. Each front end must be pointed at Scalelite's URL and secret, then tested for joins, recordings and failover. Recordings live on a shared NFS volume, so storage sizing and permissions need planning early. Network work covers TCP ports 80 and 443, UDP ports 16384 to 32768 and a valid hostname for each service. Team skills set the pace, because PostgreSQL, Redis, NFS and Linux administration each need a named owner.

Can our internal team build a Scalelite pool without outside help?

Yes, if your team already runs Linux servers, PostgreSQL, Redis and NFS in production and has time to test failover before classes depend on the pool. The build touches DNS, TLS, firewalls, the database and shared storage, so the work needs someone who can troubleshoot across all of them. Check three things first: who owns each component after go-live, whether a test environment exists for front-end changes, and whether anyone has built a BigBlueButton 4.0 server from a clean install on Ubuntu 24.04. If skills are thin or the change window is short, compare an internal build against a partner quote built from the written scope. DeployOpen plans, implements and documents self-hosted platforms inside your own infrastructure.

What do we have to provide before a Scalelite build starts?

Your side supplies the hosts, DNS names, certificates, network access, change windows and test accounts, and the written scope should list each item with an owner. Every BigBlueButton server must meet the minimum specification, and PostgreSQL, Redis and NFS need a place to run, either on hosts you dedicate or on services you already operate. You provide DNS records for Scalelite and each server, valid certificates for each hostname, and firewall rules for TCP 80 and 443 and UDP 16384 to 32768. Book change windows for cutover, because front ends switch to Scalelite's URL and secret in a live environment. Test accounts on each front end let the team verify joins, recordings and failover before users arrive. Confirm each item with your network and identity teams early.

How is the timeline for a Scalelite build set and agreed?

The timeline comes from the written scope, which both sides agree before work starts. Timing depends on how many servers and front ends are in the pool, how much recording storage and NFS setup is needed, how many integrations must be retested, and when your change windows fall. Common delays come from approvals, DNS and certificate requests, and access to front ends, so confirm which of these sit with your team. Ask for a schedule with milestones for build, cutover, failover testing and handover, along with the dependencies each milestone waits on. Any duration should appear in the signed scope, tied to those milestones.

Is Scalelite a single point of failure in a BigBlueButton cluster?

Yes, Scalelite itself is a critical component, and the design also depends on its PostgreSQL database, Redis cache and NFS shared volume. Scalelite makes a pool look like one server by sending each meeting to the least loaded server, so if Scalelite or one of its dependencies fails, new meetings may not be routed through the pool. Whether a lost server or service affects meetings in progress depends on the failure and how the cluster is built. Plan redundancy for each component and test failover before classes depend on the cluster. The high availability topic in this content group covers what fails, what survives and how many spare servers to keep.

What does a Scalelite build quote follow from?

A quote follows from the written scope: server count, front ends, storage and network design, integrations, testing, documentation and handover. DeployOpen does not publish a price list, so the quote is built from the scope your team and ours agree. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ask the quote to separate one-time build work from recurring items, such as infrastructure costs you carry in your own cloud or data center and retainers for support, upgrades and continuous testing. Also ask what changes the price, such as adding servers after the scope is signed.

What ongoing work follows after a Scalelite pool goes live?

Ongoing work covers server patching, Scalelite and dependency upgrades, backups of PostgreSQL and Redis, recording storage upkeep and failover retesting. Your team owns the infrastructure and the cost of running it, while support, upgrades and continuous testing can be bought as retainers. Plan for this work during the build by naming an owner for each component and agreeing how maintenance is coordinated across the pool. Ask for the operating model in the written scope, including who patches the front ends and who approves maintenance windows. Clear ownership at handover prevents most of the confusion that follows a successful build.

Limits to confirm in your environment

Most Scalelite problems start with an assumption that was never checked against the actual hardware, network and install path. The six cards below list what to confirm before you build and who should confirm each item. Your infrastructure, storage and network teams own most answers, and the Scalelite and BigBlueButton repositories set the authoritative limits.

Server hardware against 4.0 minimums

Each BigBlueButton server in the pool needs to meet the 4.0 minimums: at least 16 GB of RAM with swap, 8 CPU cores with high single-thread performance, 250 Mbit/s symmetrical bandwidth, and 500 GB of disk for recordings (50 GB without recording). Check every server, including spares and any larger machines you plan for tagged meetings, because a pool is only as strong as its weakest member. Ask the infrastructure team to measure the figures on the machines themselves and to record whether each server will store recordings locally.

BigBlueButton install docs

BigBlueButton 4.0 build on each server

BigBlueButton 4.0.0 was released on October 14, 2026, and it installs on Ubuntu 24.04 64-bit. Direct upgrades from 2.6, 2.7 or 3.0 are not supported, so each pool member should be a clean 4.0 installation. Scalelite is a separate project, so check that its repository states it works with BigBlueButton 4.0 before you commit to a version. Ask your team to test one 4.0 server against Scalelite before adding the rest of the pool.

Scalelite repository

PostgreSQL and Redis versions

Scalelite keeps its state in a PostgreSQL database and a Redis cache, so both must run versions the Scalelite project supports. Compare the versions listed in the Scalelite repository with what your platform team already operates, and confirm the vendor support window for each. Confirm whether these services will run on servers you manage directly or on a platform service, since that choice changes backup and patching work. Record the chosen versions in the build plan so that later upgrades are checked against the same list.

NFS performance and file locking

Scalelite uses an NFS shared volume for recordings, so every server that writes to it depends on that share. Ask the storage team to confirm that the NFS server can sustain the write load of your expected recording volume, and test concurrent writes from several BigBlueButton servers. Verify file locking behavior under the mount options you plan to use. Also confirm the UID and GID mapping that recording copies will need, and list which machines must mount the share.

TURN and firewall reachability

Users must reach UDP 16384 to 32768, plus TCP ports 80 and 443, on every BigBlueButton server, and each server needs a valid hostname for SSL. Test reachability from outside your network, using the networks your users actually work from. BigBlueButton recommends a TURN server for users behind restrictive firewalls, so have the network team confirm whether you will run one and where it sits. Ask for the firewall and NAT rules to be documented for each server.

Scalelite install method for your platform

Choose the Scalelite install method that fits how your platform builds, patches and rolls back services. Confirm which install methods the Scalelite repository documents, then check that your team can pin the Scalelite version, restart its services in a known order and back up PostgreSQL and Redis with the tools you already use. Agree the host operating system and container policy with the platform team before the build starts, because the install method decides which packages and services you will maintain. Document the decision in the build plan.

How DeployOpen scopes, builds and supports a Scalelite cluster

DeployOpen plans and builds the Scalelite cluster for Setting up Scalelite load balancing for BigBlueButton inside your own infrastructure, so the pool, its database, cache and shared recording volume sit where your team can review them. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ongoing support, upgrades and testing are available as retainers.

How we scope

  • The written scope lists each BigBlueButton server to be added, with its hardware and network placement agreed up front.
  • Scope covers the Scalelite host, PostgreSQL, Redis and the NFS recording volume in infrastructure you control.
  • Scope lists the front ends that will switch to the Scalelite URL and secret, and who approves each change.

How we build

  • Build order: database, Redis and NFS first, then the Scalelite server, then each BigBlueButton server added and enabled.
  • Each server is checked against the BigBlueButton 4.0 minimums for RAM, cores, disk and bandwidth before joining the pool.
  • Front ends move to the Scalelite URL and secret in one planned change, followed by a test meeting on each.

How we hand over

  • Handover includes the written configuration of each component and the list of enabled BigBlueButton servers.
  • Failover test results are recorded, showing what happens to meetings when one BigBlueButton server is stopped.
  • Your team receives a runbook for adding a server, backing up PostgreSQL and Redis, and restarting the Scalelite services.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover adding servers, Scalelite version changes and recovery after a lost server, as agreed in writing.
  • Confirm before handover which Scalelite and BigBlueButton versions the cluster will run, and who owns upgrade decisions.

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.