[PR #2609] [MERGED] [relay] Add health check attempt threshold #15401

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2609
Author: @mlsmaycon
Created: 9/16/2024
Status: Merged
Merged: 9/17/2024
Merged by: @mlsmaycon

Base: mainHead: add-healthcheck-attempt-threshold


📝 Commits (4)

  • a7cd3f6 Add health check attempt threshold for receiver
  • 4148b1f Add health check attempt threshold for sender
  • 0b4d105 ignore tenv linter
  • 3ff3f1b ensure sender timeout follows the same interval

📊 Changes

6 files changed (+240 additions, -29 deletions)

View changed files

📝 relay/client/client.go (+1 -1)
📝 relay/healthcheck/receiver.go (+23 -11)
📝 relay/healthcheck/receiver_test.go (+58 -3)
📝 relay/healthcheck/sender.go (+51 -9)
📝 relay/healthcheck/sender_test.go (+106 -4)
📝 relay/server/peer.go (+1 -1)

📄 Description

Describe your changes

Add support to relay heath check threshold using the environment variable NB_RELAY_HC_ATTEMPT_THRESHOLD. By default that is set to 1 try.

It is recommended to change this setting on both the server and clients connecting to the relay.

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/2609 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 9/16/2024 **Status:** ✅ Merged **Merged:** 9/17/2024 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `add-healthcheck-attempt-threshold` --- ### 📝 Commits (4) - [`a7cd3f6`](https://github.com/netbirdio/netbird/commit/a7cd3f699d858b06436b3a1fc1074de6ab4550a9) Add health check attempt threshold for receiver - [`4148b1f`](https://github.com/netbirdio/netbird/commit/4148b1f3190a7913fefd73930548adf451edb0dd) Add health check attempt threshold for sender - [`0b4d105`](https://github.com/netbirdio/netbird/commit/0b4d1052ec15ec3199109f2996a68af032d6d4a3) ignore tenv linter - [`3ff3f1b`](https://github.com/netbirdio/netbird/commit/3ff3f1b0e518992419a2ae688666968fca201647) ensure sender timeout follows the same interval ### 📊 Changes **6 files changed** (+240 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `relay/client/client.go` (+1 -1) 📝 `relay/healthcheck/receiver.go` (+23 -11) 📝 `relay/healthcheck/receiver_test.go` (+58 -3) 📝 `relay/healthcheck/sender.go` (+51 -9) 📝 `relay/healthcheck/sender_test.go` (+106 -4) 📝 `relay/server/peer.go` (+1 -1) </details> ### 📄 Description ## Describe your changes Add support to relay heath check threshold using the environment variable NB_RELAY_HC_ATTEMPT_THRESHOLD. By default that is set to 1 try. It is recommended to change this setting on both the server and clients connecting to the relay. ## Issue ticket number and link ### 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:07:33 -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#15401