Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Record Peer latency & speed distribution & record with accurate car size fetch buckets #77

Merged
merged 4 commits into from
Apr 5, 2023

Conversation

aarshkshah1992
Copy link
Contributor

@aarshkshah1992 aarshkshah1992 commented Apr 5, 2023

Closes #75 as well.

@aarshkshah1992 aarshkshah1992 changed the title [WIP] Record Peer latency & speed distribution & record with accurate car size fetch buckets Record Peer latency & speed distribution & record with accurate car size fetch buckets Apr 5, 2023
fetcher.go Outdated
@@ -65,14 +65,16 @@ func (p *pool) doFetch(ctx context.Context, from string, c cid.Cid, attempt int)
return
}

func (p *pool) fetchResource(ctx context.Context, from string, resource string, mime string, attempt int, cb DataCallback) (err error) {
// TODO Refactor to use a metrics collector that encapsulates block vs CAR and metrics being collected from the request making
Copy link
Contributor

Choose a reason for hiding this comment

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

finish this sentence?

@aarshkshah1992 aarshkshah1992 merged commit 275f198 into main Apr 5, 2023
@aarshkshah1992 aarshkshah1992 deleted the feat/latency-reduction branch April 5, 2023 08:15
lidel added a commit to ipfs-inactive/bifrost-gateway that referenced this pull request Apr 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Caboose limits CAR responses to 4MiB
2 participants