Draining BigBlueButton servers in a Scalelite pool

Draining a BigBlueButton server means stopping new meetings from landing on it while its current sessions finish, so patching or replacement does not end classes. This page covers the Scalelite states involved, the order of steps, and how to plan the work around meeting schedules.

On this page

How draining BigBlueButton servers in a Scalelite pool keeps classes running

Draining takes one BigBlueButton server out of new meeting placement in a Scalelite pool while the meetings already running on it finish. Scalelite keeps placing new meetings on the other servers, so a class that starts during a maintenance window lands on a healthy node. Teams need this for routine operating system and BigBlueButton patching, for hardware replacement, and for a server that is misbehaving but still hosts meetings. Draining differs from rebooting a node directly. A reboot stops the processes on that server, so any meeting it hosts ends with it, while a drain lets current sessions end on their own before you touch the machine. A crashed server cannot finish its meetings, so draining only protects new placement in that case. Before you start, confirm in the Scalelite documentation how a drain is set and how the pool reports each server's meeting count, because the decision to reboot should depend on that count reaching zero.

A replacement server should be a clean BigBlueButton 4.0 installation on Ubuntu 24.04 64-bit. Direct upgrades from 2.6, 2.7 or 3.0 are not supported, so a server on any of those branches is rebuilt from scratch instead of being upgraded in place. Check the hardware against the install requirements before ordering or provisioning, including RAM with swap, CPU cores, disk for recordings and symmetrical bandwidth, and confirm the TCP and UDP ports, hostname and Docker requirements in the BigBlueButton install documentation. Build and test the new server before the old one leaves the pool, and keep its shared secret out of any web page. Add the replacement to the pool only after it passes a test meeting, so the first live class is not the first check of the new build.

Cordon, disable or panic: which Scalelite action fits each job

This table compares the three ways an operator can take a BigBlueButton server out of normal use in a Scalelite pool: cordoning or draining, disabling, and panic. Read each row for what happens to new and running meetings, when the action fits a planned patch window, and what goes wrong if it is picked for the wrong job. Confirm exact command names and state behavior against the Scalelite repository for your version before running anything in production.

StateNew and running meetingsWhen it fitsRisk if chosen wrongly
Cordoned or drainedNo new meetings are placed. Running meetings finish on their own.Planned patching or replacement when current classes can end before the maintenance window opens.The window stretches to the last running meeting, and a reboot planned on a busy server can still disrupt classes.
DisabledNo new meetings are placed. Confirm how running meetings are handled before relying on this state.Taking a server fully out of rotation after cordoning is finished, or when it must stay out of service for longer.If the state does not wait for live classes, sessions on that server can be cut short.
PanicIntended for a server that has crashed or stopped responding. Confirm what it clears and how it affects meetings on that server.Only after a server is confirmed unresponsive and cannot be recovered through normal steps.Using it on a healthy server can lead Scalelite to treat a working server as unavailable while its meetings are still running.
Enabled againThe server returns to rotation and can receive new meetings.After patching is finished and the server passes the health checks your team runs.Returning a server before it is verified can place classes on a machine with a failed service.
Replacement addedA new server takes new meetings once it is enabled and passes your checks.Before the old server is removed, so pool capacity stays up during the window.A server whose BigBlueButton services or settings differ from the pool can cause uneven or failed meetings.

Each server leaves the pool, gets rebuilt clean and rejoins only after a health check

The diagram starts with a server enabled in the pool. Draining cordons it so no new meetings land there, and the server stays in place until its running meetings end. Before anyone disables it for patching, check that the recordings from those meetings are confirmed on shared storage. Direct upgrades from earlier branches are not supported, so the server gets a clean BigBlueButton 4.0 install. It returns to the pool only after it passes a health check. A crashed server takes a separate branch through panic recovery, and a replacement server joins the pool in its place.

Drain, rebuild and return path for one server, with the crash branch.

Sequence for taking one server out for patching

This sequence takes one BigBlueButton server out of a Scalelite pool, patches or rebuilds it, and returns it to service with meetings in progress allowed to finish. Each step closes with a check the operator can run, so the pool changes only when the previous state is confirmed. The sequence assumes the remaining servers keep enough capacity while one is out.

  1. Confirm capacity and book the window

    Before anything changes, the operator checks that the remaining servers can carry the expected peak load without the server being patched. Use the current meeting counts and the load each server reports in Scalelite, and compare them with the timetable of large classes and exams. Pick a window when the pool is least busy, and get sign-off from the people who run the front ends and the class schedule. Done when the capacity check and the agreed window are written down and the remaining servers show enough headroom for the busiest period in that window.

  2. Set the server to drained

    Mark the server as drained in Scalelite so the load balancer stops placing new meetings on it. Existing meetings keep running on the server, and the change affects only new meeting placement. Confirm the change by checking the server's status in Scalelite, and then by creating a test meeting that should land on a different server. If the test lands on the drained server, stop and check the Scalelite state before going further. Done when Scalelite shows the server as drained and new meetings are placed on the other servers only.

  3. Wait for running meetings to end

    Leave the server in place while meetings already on it finish. Do not restart services or the host during this period, because that would end sessions still in progress. Follow the count with a getMeetings call signed with the server's secret, and check that Scalelite no longer lists meetings on it. Teachers and students in these sessions finish on their own, so the operator's job is to watch and wait. Done when the count reaches zero, or when any remaining sessions have been raised with their owners and the window has been moved.

  4. Verify no active meetings remain

    Confirm that the server carries no meetings before any change is made. Run a getMeetings call against the server's API with a valid checksum, and check that it returns no running meetings. Then check in Scalelite that no meeting is still mapped to the server, since a stale record would otherwise look like a live session and block the work. Done when both the API response and Scalelite show zero meetings for this server, and the operator has saved the result with a time stamp.

  5. Apply patches or rebuild the server

    Apply operating system and BigBlueButton updates, or rebuild the server when the release requires it. BigBlueButton 4.0 does not support direct upgrades from 2.6, 2.7 or 3.0, so a move from those versions should use a clean server installation. Record the package and BigBlueButton versions before the change, apply the updates, and read the release notes for the branch you run. Done when updates finish without errors, the installed version matches the target, and both version records are saved for the change log.

  6. Check the server against install requirements

    Before the server returns to the pool, confirm it still meets the BigBlueButton 4.0 install requirements. Check Ubuntu 24.04 64-bit, at least 16 GB of RAM with swap, 8 CPU cores with high single-thread performance, 500 GB of disk (50 GB without recording), and 250 Mbit/s symmetrical bandwidth. Confirm TCP ports 80 and 443 and UDP ports 16384 to 32768 are reachable, the SSL hostname is valid, and Docker is available for document conversion. Done when each item is checked on the server itself and any gap is fixed or logged before re-enabling. Compare against the BigBlueButton install docs.

  7. Re-enable the server in Scalelite

    Set the server back to enabled in Scalelite only after the checks above pass. Confirm the change in Scalelite and in the server's own status, so the load balancer and the server agree on what is running. Check that the server's reported load is low and that no meetings appear on it. Keep the status in the change record. Done when Scalelite lists the server as enabled and a signed API call to the server returns without errors.

  8. Run a test meeting through Scalelite

    Create a meeting through the front end that uses the Scalelite URL and secret, so the request follows the path users take. Join from two devices and confirm that audio, video and slides work. Check in Scalelite which server the meeting was placed on. The load balancer sends each meeting to the least loaded server, so the test may land elsewhere, and that is acceptable if the placement matches the load. Done when the test meeting joins cleanly, its placement is recorded, and the server's meeting count returns to zero after the test ends.

Planning maintenance windows around meeting schedules

Choose the maintenance window from the timetable before you touch a server, and check that the drain will finish before the window opens. Start by finding the quietest period in the week, using the meeting schedule your front ends and LMS actually produce. Then account for classes that run late, because a session that overlaps the window keeps its server busy past the time you planned. Also look for overlaps between schedules from different departments or time zones, since a quiet campus-wide hour may still be the peak for one faculty. For each candidate window, estimate the latest start time of a class that could still be on the server when you begin, and confirm the drain will complete before the first class of the window starts.

The central trade-off is between draining long enough for sessions to end and keeping enough capacity to carry the meetings that still arrive. A drain that stops new meetings from landing on a server lets existing sessions finish naturally, but the pool loses that server's capacity for the whole time the drain runs. If you wait for the last session on a busy server to end, the window can run long. Cutting the drain short means the server still hosts live meetings when you patch or restart it, which turns a planned change into an unplanned interruption. Decide in advance how long you will wait, and write down the time after which you will stop and reschedule the remaining work to the next window.

While one server is out, the rest of the pool must carry its share of new meetings and the meetings already running on the others. Check that the remaining servers have spare capacity during the drain for the peak of the window you chose, including any large lecture tagged to specific hardware. Confirm how many spare servers you keep by reviewing the sizing topic and the high availability topic in this group, since the answer depends on your concurrent user figures and the hardware you run. If the spare capacity is not enough for the peak hour, shift the window or add a server before the work starts, and record the figures you used so the change review can check them.

Security and operational risks during drain and replacement

Draining and replacing a server touches the trust between Scalelite and each BigBlueButton node, the people who can change where meetings go, and the data on the server being retired. The five risks below are where rushed maintenance windows most often leave gaps. Check each one in the change plan and record the result before the next server is drained.

Shared secret when a replacement joins

Every API call from Scalelite to a BigBlueButton server carries a checksum built from a secret both sides share, so a replacement must hold the matching secret before it takes meetings. Move the value through a secure channel, never a shared document or chat thread, and confirm the new server's secret works before it is enabled. The API docs warn against placing the secret in any web page, so keep it out of front-end configuration too. If the retired server held the secret, plan to change it across the pool.

BigBlueButton API docs

Admin access to Scalelite

Draining, disabling and re-enabling servers changes where every new meeting lands, so the people who can make those changes are part of the risk. Limit Scalelite administrative access to named operators for the change window, and use individual accounts so each action traces to a person. Check which SSH keys and database credentials can reach the Scalelite host, including its PostgreSQL and Redis services, and remove any access the change does not need. Restore the normal access list once the replacement is live.

Leftover credentials and hostnames

A retired server often keeps working identities after it leaves the pool: its hostname in DNS, its TLS certificate, its firewall rules, its entries in front-end or TURN configuration, and the secret it was issued. Any of these can route users to a machine that no longer receives maintenance, or let an old credential reach the cluster. Inventory each item before shutdown, revoke or delete it, and confirm the retired hostname no longer resolves to the pool.

Recordings confirmed on shared storage

Scalelite serves recordings from an NFS shared volume, so a recording that exists only on a local disk disappears when that server is wiped. Before wiping, compare the server's recording list with the files on shared storage and spot-check playback for a sample from each recent day. Keep the check result with the change record. Ask your recordings administrator whether the server holds any spool or unpublished data that the shared volume does not show.

Scalelite repository

Change logging for drains

A drain without a record leaves you unable to explain why a server had no meetings for an hour or who removed it from rotation before a class. Log each drain, disable, re-enable and removal with the operator, server, time, reason and the meetings in progress at that moment. Store the log outside the servers being changed, so a wipe cannot erase it. Confirm what Scalelite itself records before relying on it, and fill any gap in your own log.

Ports checked before meetings return

A new server must accept TCP 80 and 443 for the web front end and UDP 16384 to 32768 for media before Scalelite sends it a meeting. Test each port from outside the server and from the network segment where users connect, since a rule that passes internally can still block them. Confirm the server has a valid hostname for SSL and check the TURN path for users behind restrictive firewalls. Make these checks a gate in the runbook, completed before the server is enabled.

BigBlueButton install docs

Questions operators ask before draining servers

Can our own team drain and replace BigBlueButton servers without a partner?

Yes, a team that already runs Linux servers, a PostgreSQL database and an NFS share can do this with the upstream documentation, provided one engineer owns the Scalelite pool and the change record. The hard part is rarely the drain command itself. It is confirming that the replacement server is built from a clean 4.0 installation, that recordings still reach the shared volume, and that nobody is scheduling a class onto a machine that is about to be patched. Teams without an operator who has already built a server on Ubuntu 24.04 usually want a written runbook before the first drain. DeployOpen plans, implements and documents this work under a fixed scope agreed in writing.

What does a drain project need from our team before work starts?

Four things must be ready before the first server leaves the pool: a spare server, a clean 4.0 build, pool access and a maintenance calendar. The spare server must meet the 4.0 minimums of 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. The replacement should be a fresh Ubuntu 24.04 64-bit installation, because direct upgrades from 2.6, 2.7 or 3.0 are not supported. Pool access means administrator access to Scalelite, the servers, the PostgreSQL database and the NFS volume. The maintenance calendar should list the class schedules and exam periods that the drain must avoid.

What makes a Scalelite server drain take more effort?

The effort grows with four factors: the number of servers in the pool, the volume of recordings, custom plugins, and the way meetings are tagged and weighted. Each server you drain means another build, another capacity check and another round of verification, so a large pool multiplies the work. Recording volume matters because recordings on the shared NFS volume must be checked for completeness, and local copies should be cleared only after they are safely published. Custom plugins must be tested against 4.0 before a rebuilt server takes classes, and a plugin written for an older branch may need changes. Tags that send large lectures to bigger hardware and load multipliers that shift work between mixed sizes must be re-verified after each replacement, because a changed server can quietly attract the wrong meetings. Ask for each factor to be counted in the written scope.

Can we drain a BigBlueButton server without a maintenance window?

Often yes for the drain step itself, though the rebuild or power-off that follows usually needs a planned time. A drained server stops receiving new meetings while meetings already running on it continue, so the drain alone does not end classes. The timing depends on what happens next: powering the server off, rebuilding it on 4.0, or changing shared components such as the PostgreSQL database, Redis or the NFS volume, which affect every server in the pool. Long sessions set the pace because a server may not empty until its last meeting ends, so check when the final class on that server finishes. Confirm the exact drain behavior for your Scalelite version in its project documentation before you promise teachers an uninterrupted change.

What happens to a class if a BigBlueButton server crashes?

Participants in the meetings on that server lose the session and must rejoin, and a rejoin reaches a healthy server only after the failed one has been removed from the pool or marked unavailable. Confirm how your Scalelite version handles a server that stops responding before you rely on any automatic behavior. Anything that existed only in the live session, such as whiteboard content or unsaved notes, should be treated as lost, so teachers should keep slides and files outside the meeting. A recording in progress may be incomplete, so check the shared volume after every incident. Agree the recovery path in writing and plan it before a class depends on it.

What should we ask a partner for in a fixed-scope quote?

Ask for a written scope that names every server to drain, every replacement to build and the exact steps covered, because a quote is only comparable when the scope is. Request the deliverables in writing: the build record for each new server, the pool configuration including tags and load multipliers, a runbook for draining and recovery, verification results and a rollback plan. Ask which items you provide, such as access, spare hardware, the maintenance calendar and approvals, and what happens if any of them arrive late. Clarify how recordings, custom plugins and tenants are handled, and whether ongoing support, upgrades or testing will be separate retainers. DeployOpen agrees scope, deliverables and timelines in writing before work starts and does not publish a price list, so its quote follows from the written scope.

Who keeps control of the servers and credentials after a drain project?

Settle ownership in the written scope before the first drain, because the servers run in your cloud accounts, data centers or air-gapped network and stay under your control. At handover, confirm who holds the administrator credentials, the Scalelite secrets, the build scripts and the runbook, and where those records are stored. Ask whether the rebuilt servers will be documented well enough that your own team can repeat the process for the next patch cycle. That answer decides how much ongoing help you need later. DeployOpen offers ongoing support, upgrades and continuous testing as retainers, so those are optional additions to a fixed-scope project rather than a requirement.

Limits to confirm in your own environment

Drain and replacement plans are only as sound as the limits behind them. The items below depend on the Scalelite release you run, the BigBlueButton version on the replacement and the classes you schedule, so verify each one in your own environment before you agree a maintenance window.

Drained and panic state handling

Confirm how the Scalelite version you run handles drained and panic states, since that decides whether a server marked for maintenance stops receiving new meetings and how a crashed server leaves the rotation. Read the release notes and documentation for your exact version, then test both states on a staging pool. Watch what the admin view shows and what a user sees when they create a meeting during each state. Do not assume behavior learned on an older release carries over to the one you run.

Scalelite repository

Ending or finishing running meetings

Find out whether a drained server lets you end running meetings early, or only lets them finish on their own schedule. That choice sets how long a maintenance window can take, because a class that runs past its slot can keep the server occupied. Confirm which command or admin action triggers each option in your version, and whether users receive any warning before a meeting is ended. Write the answer into the runbook before the first patch night.

Maximum drain time

Set a written limit for how long a server may stay drained before an operator must act, such as rebooting it, ending its remaining meetings or returning it to service. Base the number on your timetable: the longest patch you expect to run, the last session of the day and when your support team responds outside core hours. Confirm that monitoring alerts when a drained server passes that limit, since a drained server that nobody watches can quietly stay out of service. Name an owner and an escalation contact for each limit.

Spare capacity for your classes

Calculate the spare capacity your pool must hold while one server is out, using the peak concurrent users for each class type you run, measured on your busiest day. Large lectures, webinar-style sessions and classes with many webcams load a server differently, so a pool sized for ordinary seminars may not hold one large course. Check your numbers against the sizing guidance for your BigBlueButton version, and confirm users per server with your own load tests. Ask your team to agree the minimum spare capacity before the window is booked.

Replacement server hardware

Plan the replacement against the BigBlueButton 4.0 minimums: at least 16 GB of RAM with swap, 8 CPU cores with high single-thread performance, and 250 Mbit/s symmetrical bandwidth. Size disk for recordings at 500 GB, or 50 GB if you do not record. The install targets Ubuntu 24.04 64-bit, and direct upgrades from 2.6, 2.7 or 3.0 are not supported, so plan the replacement as a clean installation. These figures are floors, so the class sizes from the previous card may require more.

Install docs

Front end changes on replacement

Confirm whether your front ends need any change when a server is swapped out. If each front end points at the pool's load balancer, a replacement should only need to be registered and enabled there. If any front end holds a direct link to a single server's address or secret, that link will break when the server is removed. Check every Greenlight instance, LMS integration and API client, and test a new meeting from each one during a dry run. Record the hostname and shared secret each front end uses before the window opens.

Planned drain versus crashed server: different paths

A planned drain starts days before the maintenance window, while the server is still healthy and serving meetings. The goal is to let existing sessions finish naturally, so no class is cut off by your work. Only after the server is empty and its recordings are verified should you patch or rebuild it.

  • Timetable checks: List every scheduled meeting that could land on the target server, across all front ends that use the pool. Include recurring sessions, because a quiet hour today may hide a lecture on another day.
  • Drain before the window: Stop Scalelite from placing new meetings on the server and let running meetings end. Recheck the server's active meeting count shortly before the window opens.
  • Verified recordings: Confirm that recordings made on the server reached the shared storage and published correctly. Spot-check playback, not only file presence.
  • Clean rebuild: For a 4.0 build, the install guidance favors a clean installation over an in-place upgrade from 3.0. Rejoin the rebuilt server to the pool only after a test meeting succeeds.

Record each step with its time so you can roll back quickly if a class is affected. Confirm the window with the owners of the affected classes before you begin.

How DeployOpen scopes and delivers pool maintenance

DeployOpen plans each drain and replacement around the meeting schedule of your Scalelite pool, so patching a BigBlueButton server is timed around classes already in session. The work runs in your own infrastructure, and the pool's load balancer, database, cache and recordings volume are reviewed before any server leaves service. Scope, deliverables and timelines are agreed in writing before work starts.

How we scope

  • The written scope lists each pool server, its load settings, and the windows that avoid scheduled classes.
  • Scope names the Scalelite, PostgreSQL, Redis and NFS components that the drain touches, and who checks each one.
  • Engagements are fixed-scope, so deliverables and timelines are agreed in writing before any server is taken out of service.

How we build

  • Bring each replacement up on a clean 4.0 installation, because direct upgrades from 3.0 and older are unsupported.
  • Cordon the old server first, then disable it once its meetings finish, and confirm the pool shows the change.
  • Test the new server with a sample meeting, and check audio, video and recording before it joins the pool.

How we hand over

  • Hand over a runbook with the cordon, disable, drain and re-add steps for each server in your pool.
  • Document the maintenance window calendar mapped to your meeting schedule, with owners for each change.
  • Include a crash recovery procedure using panic, with the checks operators run before a server returns.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers for pool maintenance cycles.
  • A retainer can cover repeat drain cycles for point releases and patches in the same pool.
  • Crash recovery with panic can sit in the retainer, giving the pool a defined path for unplanned failures.

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.