netbird icon indicating copy to clipboard operation
netbird copied to clipboard

Too many open files on the client

Open braginini opened this issue 2 years ago • 0 comments

When running the client app with many peers in the network (100+) we observe too many open sockets on a single machine. This is caused mostly by the ICE trickle process that creates a separate listener for each candidate type and local interface.

Our own Wireguard proxy creates an additional socket as well.

We observed that roughly 4 sockets per-peer are created making it a resource waste. We could use a UDPMux from pion to reduce the number of connections, however, it only works for the host candidates.

We need to come up with some solution to that. The best option so far is to extend the Pion ICE gathering mechanism.

braginini avatar Dec 03 '21 14:12 braginini