|
| 1 | +# BBBLB: Yet another Load Balancer for BigBlueButton |
| 2 | + |
| 3 | +BBBLB (BigBlueButton Load Balancer) is yet another load balancer for BigBlueButton. It aims to provide secure, scalable and robust solution large BigBlueButton installations and allow organizations to host their own BigBlueButton cluster or offer such services to others. |
| 4 | + |
| 5 | +## Current Status |
| 6 | + |
| 7 | +BBBLB is currently in a **pre-alpha state**. It is a working prototype and **not ready for production environments** at this time. You have been warned. |
| 8 | + |
| 9 | +## Features |
| 10 | + |
| 11 | +* **Multi-Tenancy**: Allow multiple front-end applications or customers to share the same BigBlueButton cluster while keeping their meetings and recordings strictly separated. |
| 12 | +* **Advanced Loadbalancing**: New meetings are created on the BBB servers with the lowest *load*, which is updated in realtime and calculated based un multiple tuneable factors. The algorithm expscially tries to avoid the 'trampling herd' problem when multiple meetings with unknown size are created at the same time. |
| 13 | +* **Recording Management**: Recordings are transferred from the BBB servers to central storage via a simple and robust `post_publish` script that does not need any configuration, `ssh` connectivity or shared network file system to work. |
| 14 | +* **Callback Relay**: Callbacks registered for a meeting are properly relayed between the back-end BBB server and the front-end application with a robust retry-mechanism. |
| 15 | +* **Control API**: BBBLB offers its own API and command line tool to fetch health information, manage tenants or backend servers, or perform maintenance tasks. |
| 16 | +* **Scaleable**: Most existing BigBlueButton Load Balancer implementations claim to be scalable. Until I have time to actually benchmark those claims, I'll also just claim that BBBLB scales to hundreds of backend servers and thousands of meetings without any issues. The bottleneck will always be your BBB cluster, not BBBLB. Trust me bro. |
| 17 | +* **Easy to deploy**: That's a lie. But it's easier to deploy than most other BigBlueButton Load Balancer implementations. |
| 18 | + |
| 19 | +## Planned features |
| 20 | + |
| 21 | +* [ ] A `bbblb-agent` command line tool that can: |
| 22 | + * Auto-register and enable back-end BBB servers when they start up and disable them when they shut down. |
| 23 | + * Report additional health and load information from back-end BBB servers to bbblb for better load balancing. |
| 24 | +* [ ] A `bbblb` admin command line tool that can: |
| 25 | + * Manage tenants, servers, running meetings or recordings. |
| 26 | + * Display and export statistics or metrics. |
| 27 | +* [ ] Rate limiting and DoS protection that is fair to unaffected tenants. |
| 28 | + |
| 29 | +## Totally not a biased feature comparison againwithst Scalelite |
| 30 | + |
| 31 | +ScalScaleliteeite is the reference implementation of a BigBlueButton Load Balancer, developed by the creators of BigBlueButton themselves. |
| 32 | + |
| 33 | +| Feature | BBBLB | Scalelite | |
| 34 | +| ------- | ----- | --------- | |
| 35 | +| Zero config post_publish script | Yes | No | |
| 36 | +| Recording upload via HTTPS | Yes | No 1) | |
| 37 | +| Graceful handling of unstable back-end servers | Yes | No 2) | |
| 38 | +| Deployed as a single app/container | Yes 3) | No 4) | |
| 39 | +| Scales to many concurrent users | Yes | No 5) | |
| 40 | + |
| 41 | +1) You need ssh/rsync or a shared file system for recording transfer. |
| 42 | +2) Scalelite immediately breaks all meetings on an unresponsive server, even if it's only a short temporary issue. |
| 43 | +3) BBBLB greatly benefits from a fast static-file HTTP server (e.g. nginx or caddy) in front of it, but can also run on its own. |
| 44 | +4) Scalelite needs a recording importer and a poller in addition to its main server process. Both cannot be scaled to multiple instances or stuff will break. |
| 45 | +5) Scalelite uses ruby on rails and synchronous handlers, which means that it can only serve a limited number of requests at the same time. |
| 46 | + |
| 47 | +## API Usage |
| 48 | + |
| 49 | +See (API Docs)[./docs/API.md] (TODO) |
| 50 | + |
| 51 | +## Deploment |
| 52 | + |
| 53 | +TODO |
| 54 | + |
| 55 | +# License |
| 56 | + |
| 57 | + BBBLB - BigBlueButton Load Balancer |
| 58 | + Copyright (C) 2025 Marcel Hellkamp |
| 59 | + |
| 60 | + This program is free software: you can redistribute it and/or modify |
| 61 | + it under the terms of the GNU Affero General Public License as |
| 62 | + published by the Free Software Foundation, either version 3 of the |
| 63 | + License, or (at your option) any later version. |
| 64 | + |
| 65 | + This program is distributed in the hope that it will be useful, |
| 66 | + but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 67 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 68 | + GNU Affero General Public License for more details. |
| 69 | + |
| 70 | + You should have received a copy of the GNU Affero General Public License |
| 71 | + along with this program. If not, see <https://www.gnu.org/licenses/>. |
0 commit comments