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

Basic Peer manager to manage connections for relay peers #621

Closed
Tracked by #594
chaitanyaprem opened this issue Aug 3, 2023 · 0 comments
Closed
Tracked by #594

Basic Peer manager to manage connections for relay peers #621

chaitanyaprem opened this issue Aug 3, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@chaitanyaprem
Copy link
Collaborator

Implement a basic peer manager similar to nwaku.

Start with below capabilities to handle relay peer connections:

  1. Ensure a given in/out ratio for relay peers.
  2. Relay peer connection pruning similar to feat(networking): prune peers from peerstore exceeding capacity nwaku#1513
@chaitanyaprem chaitanyaprem self-assigned this Aug 3, 2023
This was referenced Aug 3, 2023
chaitanyaprem added a commit that referenced this issue Aug 3, 2023
* chore: refactor existing code into peer maanger package

* feat: move peer connection related code into peer manager

* feat: in relay peer connection pruning

* feat: add max-connections CLI flag and limit outRelayPeers based on max-connections #621

* tested both in and out relay connection limits

Co-authored-by: richΛrd <[email protected]>

* Review comment, use context to pause connectivity loop during node shutdown.

Co-authored-by: richΛrd <[email protected]>

* address review comments


---------

Co-authored-by: richΛrd <[email protected]>
@fryorcraken fryorcraken added enhancement New feature or request E:2023-peer-mgmt and removed E:2023-peer-mgmt labels Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants