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

CDF-20778: add jitter to retry and backpressure throttlers #716

Merged
merged 2 commits into from
Jan 25, 2024

Conversation

dmivankov
Copy link
Contributor

@dmivankov dmivankov commented Jan 23, 2024

For later consideration: do we even need BackpressureThrottleBackend? If yes should it be improved somehow?

CDF-20778

@dmivankov dmivankov requested a review from a team as a code owner January 23, 2024 10:55
@dmivankov dmivankov self-assigned this Jan 23, 2024
- switching to FullJitter from https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/
- in backpressure throttler split fixed delay into constant half and random half
- touch src/test RetryWhile too just for more context

For later consideration: do we even need BackpressureThrottleBackend? If yes should it be improved somehow?

[CDF-20778]
Copy link

codecov bot commented Jan 23, 2024

Codecov Report

Merging #716 (2743dd4) into master (a80506e) will decrease coverage by 0.10%.
The diff coverage is 50.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #716      +/-   ##
==========================================
- Coverage   77.52%   77.43%   -0.10%     
==========================================
  Files          94       94              
  Lines        2768     2770       +2     
  Branches       27       33       +6     
==========================================
- Hits         2146     2145       -1     
- Misses        622      625       +3     
Files Coverage Δ
...a/com/cognite/sdk/scala/sttp/RetryingBackend.scala 91.66% <100.00%> (-0.34%) ⬇️
...e/sdk/scala/sttp/BackpressureThrottleBackend.scala 52.38% <0.00%> (-8.74%) ⬇️

@dmivankov dmivankov enabled auto-merge (squash) January 25, 2024 06:59
Copy link
Contributor

@mr-celo mr-celo left a comment

Choose a reason for hiding this comment

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

Jitter!

@dmivankov dmivankov merged commit 1c1e9af into master Jan 25, 2024
6 checks passed
@dmivankov dmivankov deleted the CDF-20778 branch January 25, 2024 11:19
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