Skip to content

chore(v2): add segment upload timeout #3988

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

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

kolesnikovae
Copy link
Collaborator

@kolesnikovae kolesnikovae commented Mar 11, 2025

This change adds an explicit, configurable static timeout for segment uploads.

Currently, the timeout is inherited from the distributor and is too high (5s by default). This makes retries inefficient if the bucket client happens to connect to a slow server or encounters other high-latency issues.

Additionally, I have disabled the FailFast option for hedged requests to prevent a situation where a failed hedged request (which is not retried) cancels the upload.

Copy link
Contributor

@simonswine simonswine left a comment

Choose a reason for hiding this comment

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

LGTM

@kolesnikovae kolesnikovae marked this pull request as ready for review March 12, 2025 05:17
@kolesnikovae kolesnikovae requested a review from a team as a code owner March 12, 2025 05:17
@kolesnikovae kolesnikovae merged commit 9c6e896 into main Mar 12, 2025
21 checks passed
@kolesnikovae kolesnikovae deleted the chore/segment-upload-timeout branch March 12, 2025 06:24
shelldandy pushed a commit to shelldandy/pyroscope that referenced this pull request Mar 14, 2025
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.

3 participants