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(swarm): improve PeerAddresses configurability #5574

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

stormshield-frb
Copy link
Contributor

Description

Our average peer has over 10 advertised addresses. Doing so, identify was continuously (every 1 minute) emitting ToSwarm::NewExternalAddrOfPeer which was overflowing our logs and was making the PeerCache kind of useless.

For this reason, we made some changes in order to be able to configure the number of addresses that should be cached for a peer. We are upstreaming this changes.

Notes & open questions

N/A

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

@stormshield-frb stormshield-frb force-pushed the feat/identify-make-peer-cache-configurable branch 3 times, most recently from 8fbd19b to be31d42 Compare August 28, 2024 15:22
@stormshield-frb stormshield-frb force-pushed the feat/identify-make-peer-cache-configurable branch from be31d42 to e5435fc Compare August 28, 2024 15:36
Copy link
Member

@dariusc93 dariusc93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Left a couple of comments

protocols/identify/src/behaviour.rs Outdated Show resolved Hide resolved
swarm/src/behaviour/peer_addresses.rs Show resolved Hide resolved
Copy link
Contributor

mergify bot commented Sep 5, 2024

This pull request has merge conflicts. Could you please resolve them @stormshield-frb? 🙏

@stormshield-frb stormshield-frb force-pushed the feat/identify-make-peer-cache-configurable branch from 14c1974 to 4d17c21 Compare September 6, 2024 07:57
@stormshield-frb stormshield-frb force-pushed the feat/identify-make-peer-cache-configurable branch from 1b14122 to 457c063 Compare September 6, 2024 08:04
Copy link
Contributor

mergify bot commented Sep 26, 2024

This pull request has merge conflicts. Could you please resolve them @stormshield-frb? 🙏

Copy link
Member

@jxs jxs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi François, thanks for this! And sorry for the delay, left some comments

swarm/src/behaviour/peer_addresses.rs Outdated Show resolved Hide resolved
Copy link
Contributor

mergify bot commented Nov 6, 2024

This pull request has merge conflicts. Could you please resolve them @stormshield-frb? 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants