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

fullrt rework batching #720

Merged
merged 19 commits into from
Jun 17, 2021
Merged

fullrt rework batching #720

merged 19 commits into from
Jun 17, 2021

Conversation

aschmahmann
Copy link
Contributor

@aschmahmann aschmahmann commented Jun 8, 2021

Reworked full batching so that it's more explicitly peer oriented rather than key oriented.

There's still room for improvement here on dealing with slow peers (e.g. having more message-based rather than peer-based parallelism).

Some tests on a 2 core machine with about 800k CIDs being provided (after a fresh crawl, although that is hopefully not super relevant)

  • Using the current heuristic: 20-30 minutes to provide and about 17/20 peers received each record
  • Waiting a full timeout for each message: ~1hr to provide and about 19-20/20 peers received each record
  • Aborting after rough 7/20 peers received each record: 5 minutes

Copy link
Contributor

@gammazero gammazero left a comment

Choose a reason for hiding this comment

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

Left a couple of comments to consider, but looks good overall.

fullrt/dht.go Outdated Show resolved Hide resolved
fullrt/dht.go Show resolved Hide resolved
fullrt/dht.go Outdated Show resolved Hide resolved
fullrt/dht.go Outdated Show resolved Hide resolved
fullrt/dht.go Outdated Show resolved Hide resolved
Copy link
Contributor

@gammazero gammazero left a comment

Choose a reason for hiding this comment

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

Looks good. Improvements to tuning parallelism and timeouts can be made after further observation of performance.

fullrt/dht.go Show resolved Hide resolved
@aschmahmann aschmahmann marked this pull request as ready for review June 11, 2021 01:14
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.

2 participants