Hubs-Foundation / dialog

Mediasoup based WebRTC SFU
Mozilla Public License 2.0
71 stars 84 forks source link

Feature/pipetorouter1 #36

Closed tanfarming closed 1 year ago

tanfarming commented 2 years ago

Use pipeToRouter to improve dialog scalability. A global workerLoadMan module maintains stats for all the active rooms, iterating through their peers and workers. workerLoadMan is used to run this survey of rooms periodically. The stats from the survey are then used to get the least-used worker when new rooms are created, and when new connections are made to a room.

More detailed changes:

PRD: https://mana.mozilla.org/wiki/display/Hubs/PRD%3A+dialog+scalability TDD: https://mana.mozilla.org/wiki/display/Hubs/TDD%3A+dialog+scalability (this is the last piece)