Too many ICE Servers
configurationnetwork
Having more than 3 STUN/TURN URLs can significantly increase ICE connectivity checks across available network interfaces. This may slow down connection setup and generate unnecessary network traffic. Limit the configuration to 2-3 servers.
Description
Having more than 3 STUN and TURN servers multiply ICE connectivity checks. This can slow down the connection setup and flood the network with unnecessary load.
What do we do here?
We count for any of the peer connections the number of ICE server URLs contained in the iceServers parameter without distinction between STUN and TURN.
Our suggestions
- Review and limit the number of servers you place in iceServers
- Use DNS load balancing for scaling out and geolocating TURN servers
- Don't have STUN in iceServers (TURN/UDP does that functionality already)