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: shard aware pruning of peer store #1193

Merged
merged 5 commits into from
Aug 21, 2024
Merged

Conversation

chaitanyaprem
Copy link
Collaborator

@chaitanyaprem chaitanyaprem commented Aug 14, 2024

Description

Peer store is not being pruned in go-waku rather new peer addition was being blocked once capacity is hit. This would cause issues once community sharding would be implemented.

Replicating changes made in nwaku waku-org/nwaku#2167 to address this. Since algorithm is tested in nwaku, not adding any specific tests.

Please do thorough review 🙏

Changes

  • Periodic loop to prune peer store
  • pubsubTopic aware peer store pruning
  • run peerstore pruning for lightclients

closes #925

waku/v2/peermanager/peer_manager.go Outdated Show resolved Hide resolved
waku/v2/peermanager/peer_manager.go Outdated Show resolved Hide resolved
Copy link
Member

@richard-ramos richard-ramos left a comment

Choose a reason for hiding this comment

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

Good work!

waku/v2/peermanager/peer_manager.go Outdated Show resolved Hide resolved
@chaitanyaprem chaitanyaprem merged commit 8ff8779 into master Aug 21, 2024
11 of 12 checks passed
@chaitanyaprem chaitanyaprem deleted the feat/shard-aware-pruning branch August 21, 2024 12:38
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.

feat: shard aware peer store pruning
3 participants