Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scale TURN servers #683

Open
howardchung opened this issue Jan 30, 2023 · 2 comments
Open

Scale TURN servers #683

howardchung opened this issue Jan 30, 2023 · 2 comments
Labels
Milestone

Comments

@howardchung
Copy link
Owner

We'll need to scale the TURN server soon to support screen/file share and video chat traffic.

Options:

  • Vertically scale the server
  • Horizontally scale the servers (need to update the iceServers config--can we randomly assign servers based on room shard or just randomly per client?
@howardchung howardchung added this to the Backlog milestone Mar 12, 2023
@evangineer
Copy link

This is what the Coturn docs actually have to say on the topic:

Performance and Load Balancing:

When used as a part of an ICE solution, for VoIP connectivity, this TURN server can handle thousands simultaneous calls per CPU (when TURN protocol is used) or tens of thousands calls when only STUN protocol is used. For virtually unlimited scalability a load balancing scheme can be used. The load balancing can be implemented with the following tools (either one or a combination of them):

  • DNS SRV based load balancing;
  • built-in 300 ALTERNATE-SERVER mechanism (requires 300 response support by the TURN client);
  • network load-balancer server.

@evangineer
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants