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

Increase copy timeout #548

Merged
merged 1 commit into from
Mar 29, 2023
Merged

Increase copy timeout #548

merged 1 commit into from
Mar 29, 2023

Conversation

mjh1
Copy link
Contributor

@mjh1 mjh1 commented Mar 29, 2023

This is to improve the chances of us being able to download >2GiB files from IPFS.
Moved retryableHttpClient to input_copy.go since it was only used there.

@codecov
Copy link

codecov bot commented Mar 29, 2023

Codecov Report

Merging #548 (09673e6) into main (11ebfb4) will not change coverage.
The diff coverage is 100.00000%.

Impacted file tree graph

@@              Coverage Diff              @@
##                main        #548   +/-   ##
=============================================
  Coverage   55.02793%   55.02793%           
=============================================
  Files             45          45           
  Lines           3580        3580           
=============================================
  Hits            1970        1970           
  Misses          1450        1450           
  Partials         160         160           
Impacted Files Coverage Δ
clients/mediaconvert.go 71.71429% <ø> (-0.93764%) ⬇️
clients/arweave_ipfs_s3.go 75.00000% <100.00000%> (ø)
clients/input_copy.go 28.70370% <100.00000%> (+8.91203%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 11ebfb4...09673e6. Read the comment docs.

Impacted Files Coverage Δ
clients/mediaconvert.go 71.71429% <ø> (-0.93764%) ⬇️
clients/arweave_ipfs_s3.go 75.00000% <100.00000%> (ø)
clients/input_copy.go 28.70370% <100.00000%> (+8.91203%) ⬆️

"github.com/livepeer/catalyst-api/config"
xerrors "github.com/livepeer/catalyst-api/errors"
"github.com/livepeer/catalyst-api/log"
"github.com/livepeer/catalyst-api/video"
"github.com/livepeer/go-tools/drivers"
)

const MAX_COPY_FILE_DURATION = 30 * time.Minute
const MaxCopyFileDuration = 2 * time.Hour
Copy link
Contributor Author

@mjh1 mjh1 Mar 29, 2023

Choose a reason for hiding this comment

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

@thomshutt I'm going to up this even more I think, i guess we should be basing it on supporting up to 30GiB which is our set maximum? In which case it might need to go up to 6-8 hours 😬
I tried a few different gateways and was only able to get about 1.5MB/s

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, let's up this to something reasonable for pulling from Google Storage / S3 / a decent HTTP gateway - I think we can include a disclaimer that you shouldn't try and ingest a 40Gb file from IPFS

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah.. since GCS/S3 are so much faster I think sticking with 2 hours is ok. That allows for ~4MB/s to download 30GB, which is still very slow.

@mjh1 mjh1 merged commit 32e1200 into main Mar 29, 2023
@mjh1 mjh1 deleted the mh/copy-timeout branch March 29, 2023 14:04
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