chainweb-node icon indicating copy to clipboard operation
chainweb-node copied to clipboard

Limit concurrency when fetching dependencies from "origin"

Open mercadoa opened this issue 6 years ago • 3 comments

When pulling dependencies of a Cut, it is first attempted to request those from the origin node of the cut. Dependencies are queried in parallel as they are discovered.

Due to task sharing Concurrency for block headers is (big-O) bounded by the width of the chainweb. However, block headers are small and can be queried quickly. Payloads are potentially large and fetching them could pile up parallel tasks.

This is only an issue for fetching from "origin". If the origin query fails, dependencies are queried through the P2P network with has bounded concurrency.

mercadoa avatar Apr 12 '19 15:04 mercadoa

Need Lars to opine on whether this is still needed

mercadoa avatar Apr 12 '19 15:04 mercadoa

As per discussion with Lars - keep issue, but not a high priority

mercadoa avatar Apr 12 '19 15:04 mercadoa

Moved issue over to chainweb-node (103)

mercadoa avatar Apr 16 '19 15:04 mercadoa