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

[Epic] 1.4: Sharded peer management and discovery #67

Closed
8 tasks done
chair28980 opened this issue Sep 1, 2023 · 2 comments
Closed
8 tasks done

[Epic] 1.4: Sharded peer management and discovery #67

chair28980 opened this issue Sep 1, 2023 · 2 comments
Assignees
Labels
E:1.4: Sharded peer management and discovery See https://github.com/waku-org/pm/issues/67 for details Epic Tracks a sub-team Epic.

Comments

@chair28980
Copy link
Contributor

chair28980 commented Sep 1, 2023

Epic label: E:1.4: Sharded peer management and discovery

Summary

This epic tracks work necessary to allow applications to interact with shards in a transparent manner. Relay nodes should preferably be subscribed to the shards carrying the content topic(s) the application is interested in. Where this is not the case, the application should be able to interact with service peers within the shards it's interested in via a peer management scheme. The peer manager should be tracking peers from all public shards or be able to discover such peers on demand.

Acceptance Criteria

Tasks

@chair28980 chair28980 added the Epic Tracks a sub-team Epic. label Sep 1, 2023
@fryorcraken fryorcraken added this to Waku Sep 1, 2023
@fryorcraken fryorcraken added this to the Waku Network Gen 0 milestone Sep 5, 2023
@fryorcraken fryorcraken added the E:1.4: Sharded peer management and discovery See https://github.com/waku-org/pm/issues/67 for details label Sep 8, 2023
@fryorcraken fryorcraken moved this to In Progress in Waku Sep 12, 2023
@SionoiS
Copy link

SionoiS commented Sep 14, 2023

Ok! Dropping my thoughts here.

Goal:
Keep a healthy mix of peers from different shards and capability support.

Input:
Peer scoring system (unrelated to GossipSub) would take as input the peers from discovery. Each peers has an ENR with shards subscribed to and capabilities.

State:
It maybe be useful to keep the score, I'm not sure yet. Other states should be kept like shard subscriptions and own capabilities.

Output:
This system's output would be decisions about which peer to connect OR disconnect from.

MVP:
Scoring "engine" implemented but no "rule" AKA all peers get the same score.

Future:
Adding bonus/malus to peer score based on "rules".
egg. +10 score for peers that support STORE on a shard I'm subscribed to.

@chair28980
Copy link
Contributor Author

chair28980 commented Nov 27, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E:1.4: Sharded peer management and discovery See https://github.com/waku-org/pm/issues/67 for details Epic Tracks a sub-team Epic.
Projects
Status: Done
Development

No branches or pull requests

5 participants