[PR #956] Reduce the peer status notifications #13181

Closed
opened 2026-08-05 02:07:41 -04:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/netbirdio/netbird/pull/956

State: closed
Merged: Yes


Reduce the peer status notifications

Describe your changes

When receive new network map invoked multiple notifications for
every single peers. It cause high cpu usage We handle the in a batch
the peer notification in update network map.

  • Remove the unnecessary UpdatePeerFQDN calls in addNewPeer
  • Fix notification in RemovePeer function
  • Involve FinishPeerListModifications logic

NB-284

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary
**Original Pull Request:** https://github.com/netbirdio/netbird/pull/956 **State:** closed **Merged:** Yes --- Reduce the peer status notifications ## Describe your changes When receive new network map invoked multiple notifications for every single peers. It cause high cpu usage We handle the in a batch the peer notification in update network map. - Remove the unnecessary **UpdatePeerFQDN** calls in **addNewPeer** - Fix notification in **RemovePeer** function - Involve **FinishPeerListModifications** logic ## Issue ticket number and link NB-284 ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary
saavagebueno added the pull-request label 2026-08-05 02:07:41 -04:00
saavagebueno changed title from [PR #956] [MERGED] Reduce the peer status notifications to [PR #956] Reduce the peer status notifications 2026-08-05 03:08:18 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#13181