turn icon indicating copy to clipboard operation
turn copied to clipboard

Distributed solution ?

Open iammeizu opened this issue 4 years ago • 3 comments

Summary

Need distributed turn solution to achieve high performance and High availability.

Describe alternatives you've considered

coturn solution: https://github.com/coturn/coturn/wiki/TURN-Performance-and-Load-Balance

iammeizu avatar Jan 21 '21 06:01 iammeizu

I'm thinking to use Dockerized and use AWS Network Load Balancer,

-- edit I already try using AWS NLB and its working

the problem is the cost of bandwidth. planning to test on DigitalOcean

putrafajarh avatar Feb 16 '21 14:02 putrafajarh

I'm not sure what this issue is requesting.

There's nothing preventing you from deploying an army of TURN servers, and using a frontend that returns alternate server replies. A cleaner solution would be to have the clients load distribute, by having a different ICEConfiguration for each client.

jech avatar Feb 28 '21 16:02 jech

I try to deploying a cluster of turn servers behind a load balancer, but it's not work, because turn seems to use different ports to provide relay candidate and transfer data. Maybe I need a service finder to monitor turn servers and provide high performance.

I'm not sure what this issue is requesting.

There's nothing preventing you from deploying an army of TURN servers, and using a frontend that returns alternate server replies. A cleaner solution would be to have the clients load distribute, by having a different ICEConfiguration for each client.

iammeizu avatar Mar 02 '21 02:03 iammeizu

STUNner solves this exact problem with Kubernetes: https://github.com/l7mp/stunner

rg0now avatar Jan 17 '23 21:01 rg0now

Load-balancing using a 5-tuple should work as each client gets assigned to the same TURN server as long its tuple stays the same. So there is no need to synchronize allocations/permissions between the servers.

I dont think synchronizing state between a fleet of distributed TURN servers is necessary here.

I will close the issue unless the issue creator further details what feature he is missing.

stv0g avatar Apr 20 '23 10:04 stv0g