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

profiler: randomize wait duration before retrying upload #1396

Merged
merged 1 commit into from
Jul 21, 2022

Conversation

nsrip-dd
Copy link
Contributor

PR #827 introduced a randomized wait duration before retrying a failed
profile upload. This was done to reduce the likelihood of flooding the
backend with uploads. The wait was done to be an average of half the
profiling perdio. However, PR #961 lost this behavior when introducing
interruptible sleeps. This commit restores the lost behavior.

Fixes #1395

PR #827 introduced a randomized wait duration before retrying a failed
profile upload. This was done to reduce the likelihood of flooding the
backend with uploads. The wait was done to be an average of half the
profiling perdio. However, PR #961 lost this behavior when introducing
interruptible sleeps. This commit restores the lost behavior.

Fixes #1395
@nsrip-dd nsrip-dd requested a review from a team as a code owner July 21, 2022 14:59
@nsrip-dd nsrip-dd added this to the 1.41.0 milestone Jul 21, 2022
Copy link
Member

@felixge felixge left a comment

Choose a reason for hiding this comment

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

LGTM. #961 was stupid of me 🤦.

@nsrip-dd nsrip-dd merged commit 4dddec0 into main Jul 21, 2022
@nsrip-dd nsrip-dd deleted the fix-profiler-upload-sleep branch July 21, 2022 15:12
Kyle-Verhoog pushed a commit that referenced this pull request Jul 21, 2022
PR #827 introduced a randomized wait duration before retrying a failed
profile upload. This was done to reduce the likelihood of flooding the
backend with uploads. The wait was done to be an average of half the
profiling perdio. However, PR #961 lost this behavior when introducing
interruptible sleeps. This commit restores the lost behavior.

Fixes #1395
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.

profiler upload does always wait a second before retrying upload
2 participants