Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve initial connection times #6343

Conversation

hansieodendaal
Copy link
Contributor

Description

Improved initial connection times from a dht perspective for nodes at startup when all previous connections to peers failed, as well as when a node lost all connectivity. With this PR a node will attempt to connect to peers with previously failed attempts under such circumstances, improving general connectivity. Nodes will refresh their dht neighbour list without discriminating against those peers so that all nodes can be tried again.

Motivation and Context

When a node starts up or loses all connectivity and all known peers have had a failed connection, the node will wait for a 24-hour cooldown period before the same nodes are contacted again.

How Has This Been Tested?

System-level testing.

What process can a PR reviewer use to test or verify this change?

Code review.

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

Improved initial connection times for nodes when previous connections to peers failed, as well as
when a node loses all connectivity.
Copy link

Test Results (Integration tests)

33 tests   33 ✅  13m 16s ⏱️
11 suites   0 💤
 2 files     0 ❌

Results for commit e641428.

@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels May 16, 2024
Copy link

Test Results (CI)

    3 files    120 suites   37m 8s ⏱️
1 280 tests 1 280 ✅ 0 💤 0 ❌
3 832 runs  3 832 ✅ 0 💤 0 ❌

Results for commit e641428.

@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label May 16, 2024
@SWvheerden SWvheerden merged commit 64e650b into tari-project:development May 16, 2024
15 of 16 checks passed
@hansieodendaal hansieodendaal deleted the ho_more_responsive_connections branch May 17, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants