POST /signalexchange.SignalExchange/Send API frequently #524

Open
opened 2025-11-20 05:12:59 -05:00 by saavagebueno · 11 comments
Owner

Originally created by @xiaolei0125 on GitHub (Nov 29, 2023).

Describe the problem
I use nginx proxy netbird signal, and got /signalexchange.SignalExchange/Send API call frequently when netbird android client disconnected

It seems that other netbird clients are still trying to exchange information with netbird client on android through signal server.

Expected behavior
If the management service knows which clients are offline, can make other clients stop to call/signalexchange.SignalExchange/Send API for the offline android client?

NetBird status -d output:
Daemon version: 0.24.3
CLI version: 0.24.3
Management: Connected to https://nb.xxx.com:8443
Signal: Connected to https://nb.xxx.com:8443
FQDN: m1.nb.iot
NetBird IP: 100.64.0.3/16
Interface type: Kernel
Peers count: 3/4 Connected

Originally created by @xiaolei0125 on GitHub (Nov 29, 2023). **Describe the problem** I use nginx proxy netbird signal, and got /signalexchange.SignalExchange/Send API call frequently when netbird android client disconnected It seems that other netbird clients are still trying to exchange information with netbird client on android through signal server. **Expected behavior** If the management service knows which clients are offline, can make other clients stop to call/signalexchange.SignalExchange/Send API for the offline android client? **NetBird status -d output:** Daemon version: 0.24.3 CLI version: 0.24.3 Management: Connected to https://nb.xxx.com:8443 Signal: Connected to https://nb.xxx.com:8443 FQDN: m1.nb.iot NetBird IP: 100.64.0.3/16 Interface type: Kernel Peers count: 3/4 Connected
saavagebueno added the enhancementclient labels 2025-11-20 05:12:59 -05:00
Author
Owner

@bcmmbaga commented on GitHub (Nov 30, 2023):

Hello @xiaolei0125, this is the current behavior of the client. We have plans to optimize this in the next quarter and prevent constant attempts to connect, even if the peer is offline.

@bcmmbaga commented on GitHub (Nov 30, 2023): Hello @xiaolei0125, this is the current behavior of the client. We have plans to optimize this in the next quarter and prevent constant attempts to connect, even if the peer is offline.
Author
Owner

@xiaolei0125 commented on GitHub (Mar 5, 2024):

Any update?

@xiaolei0125 commented on GitHub (Mar 5, 2024): Any update?
Author
Owner

@dkrhodes commented on GitHub (May 8, 2024):

+1 we still got this prob with version v0.27.4

@dkrhodes commented on GitHub (May 8, 2024): +1 we still got this prob with version v0.27.4
Author
Owner

@xiaolei0125 commented on GitHub (May 15, 2024):

@bcmmbaga I have created netbirds on many devices, but most of them are offline most of the time. I have received a large number of requests for these offline devices, and I think this is unreasonable.

@xiaolei0125 commented on GitHub (May 15, 2024): @bcmmbaga I have created netbirds on many devices, but most of them are offline most of the time. I have received a large number of requests for these offline devices, and I think this is unreasonable.
Author
Owner

@dkrhodes commented on GitHub (May 15, 2024):

@bcmmbaga I have created netbirds on many devices, but most of them are offline most of the time. I have received a large number of requests for these offline devices, and I think this is unreasonable.

That's true, we have 150 servers, when only a few of them got offline, the caddy and signal service used almost 100% CPU usage of a 4C8G server.

@dkrhodes commented on GitHub (May 15, 2024): > @bcmmbaga I have created netbirds on many devices, but most of them are offline most of the time. I have received a large number of requests for these offline devices, and I think this is unreasonable. That's true, we have 150 servers, when only a few of them got offline, the caddy and signal service used almost 100% CPU usage of a 4C8G server.
Author
Owner

@thorleifjacobsen commented on GitHub (May 29, 2024):

Any update on this? We have 2500 servers planned to install. This sounds scary?

@thorleifjacobsen commented on GitHub (May 29, 2024): Any update on this? We have 2500 servers planned to install. This sounds scary?
Author
Owner

@xiaolei0125 commented on GitHub (Jun 24, 2024):

still got this prob with version v0.28.2

@xiaolei0125 commented on GitHub (Jun 24, 2024): still got this prob with version v0.28.2
Author
Owner

@xiaolei0125 commented on GitHub (Jun 27, 2024):

@bcmmbaga @mlsmaycon @lixmal
Do you have a plan when to solve this problem?
I think when the number of devices is large, this problem becomes very obvious.

@xiaolei0125 commented on GitHub (Jun 27, 2024): @bcmmbaga @mlsmaycon @lixmal Do you have a plan when to solve this problem? I think when the number of devices is large, this problem becomes very obvious.
Author
Owner

@mlsmaycon commented on GitHub (Jun 27, 2024):

The signal reconnection shouldn't be an issue for connectivity as it happens automatically and it only does that, it shouldn't interrupt any existing peer connection.

We are looking at optimizing network map updates as now it is just brute force as it sends to all peers all the time there is an update even if there is no update for the peer.

@mlsmaycon commented on GitHub (Jun 27, 2024): The signal reconnection shouldn't be an issue for connectivity as it happens automatically and it only does that, it shouldn't interrupt any existing peer connection. We are looking at optimizing network map updates as now it is just brute force as it sends to all peers all the time there is an update even if there is no update for the peer.
Author
Owner

@nazarewk commented on GitHub (Apr 23, 2025):

is this still an issue in the latest NetBird version?

@nazarewk commented on GitHub (Apr 23, 2025): is this still an issue in the latest NetBird version?
Author
Owner

@jacobalberty commented on GitHub (Apr 23, 2025):

@nazarewk I'm seeing it. I just put a message about it in the slack

@jacobalberty commented on GitHub (Apr 23, 2025): @nazarewk I'm seeing it. I just put a message about it in the slack
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#524