Skip to content

Remove read_timeout from S3 client#35

Open
rdettai-sk wants to merge 2 commits intosekoiafrom
decrease-target-part-size
Open

Remove read_timeout from S3 client#35
rdettai-sk wants to merge 2 commits intosekoiafrom
decrease-target-part-size

Conversation

@rdettai-sk
Copy link
Copy Markdown
Collaborator

Description

We had some timeouts when uploading larger merged splits.

With the 900s timeout configured in #27, the hard coded part size of 5GB is too big (times out if bandwidth <5MB/s). It seems more robust to decrease the part size than increase this generous timeout even further.

Copilot AI review requested due to automatic review settings April 27, 2026 07:50
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjust multipart upload defaults to avoid timeouts on large uploads by reducing the default target part size.

Changes:

  • Update MultiPartPolicy default target_part_num_bytes from 5GB to 2GB.
  • Refresh the inline rationale comment for the default part sizing choice.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +70 to +74
// QW originally used 5GB to limit the number of PUT requests. This
// is a bit excessive, and many cloud providers don't bill by
// request. We don't want it to be too small either because parts
// incure a performance overhead when a range request spans 2 parts.
target_part_num_bytes: 2_000_000_000, // 2GB
Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

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

The PR title/description mention removing read_timeout from the S3 client, but this change only adjusts the default multipart target part size. Please align the PR title/description with the actual change (or include the missing read_timeout removal if it was intended).

Copilot uses AI. Check for mistakes.
// QW originally used 5GB to limit the number of PUT requests. This
// is a bit excessive, and many cloud providers don't bill by
// request. We don't want it to be too small either because parts
// incure a performance overhead when a range request spans 2 parts.
Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

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

Typo in comment: "incure" should be "incur".

Suggested change
// incure a performance overhead when a range request spans 2 parts.
// incur a performance overhead when a range request spans 2 parts.

Copilot uses AI. Check for mistakes.
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