Skip to content

feat(p2p-07): add read acceleration baseline (#671)#11

Open
jlon wants to merge 2 commits into
p2p-06-service-lifecycle-shellfrom
p2p-07-read-acceleration-baseline
Open

feat(p2p-07): add read acceleration baseline (#671)#11
jlon wants to merge 2 commits into
p2p-06-service-lifecycle-shellfrom
p2p-07-read-acceleration-baseline

Conversation

@jlon

@jlon jlon commented Mar 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add the first feature-flagged P2P read path for remote block reads.
  • Preserve worker fallback and local chunk caching so disabled mode and miss handling stay correct.

Design

  • Key read reuse by file_id + version_epoch + block_id + off to avoid stale cross-version hits.
  • Probe local cache first, then P2P, then worker reads, with single-flight protection around shared chunk fetches.

Implementation

  • Thread file identity and mtime into BlockReader and FsReaderBase.
  • Publish worker-fetched chunks into P2pService, populate local read cache, and add registry/cache integration tests.

Verification

  • cargo test -p curvine-client worker_chunk_read_populates_local_cache_and_p2p_registry
  • cargo test -p curvine-client running_services_share_published_chunks_and_cleanup_on_stop

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@jlon jlon force-pushed the p2p-06-service-lifecycle-shell branch from 2d9bc06 to 564aa24 Compare March 26, 2026 10:26
@jlon jlon force-pushed the p2p-07-read-acceleration-baseline branch from 1376195 to b2a02bc Compare March 26, 2026 10:26
@jlon jlon force-pushed the p2p-06-service-lifecycle-shell branch from 564aa24 to dab5fb3 Compare March 27, 2026 09:32
@jlon jlon force-pushed the p2p-07-read-acceleration-baseline branch from b2a02bc to 3be7b3b Compare March 27, 2026 09:32
@jlon jlon force-pushed the p2p-06-service-lifecycle-shell branch from dab5fb3 to 311b4d6 Compare March 30, 2026 00:55
@jlon jlon force-pushed the p2p-07-read-acceleration-baseline branch from 3be7b3b to 9a154ce Compare March 30, 2026 00:55
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.

1 participant