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

feat: modify retryablehttp retry setting values #135

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

rriski
Copy link
Contributor

@rriski rriski commented Sep 19, 2024

About this change - What it does

Modify retryablehttp retry setting values:

  • RetryWaitMin: increase to 2 seconds (library default is 1 second)
  • RetryWaitMax: decrease to 10 seconds (library default is 30 seconds)
  • RetryMax: increase to 6 (library default is 4)

Explanation of chosen values:

Retry Settings Explanation

Run Default Values (retryWaitMin = 1s, retryWaitMax = 30s, retryMax = 4) Changed Values (retryWaitMin = 2s, retryWaitMax = 10s, retryMax = 6)
0 0.000 0.000
1 1.000 2.000
2 3.000 6.000
3 7.000 10.000
4 15.000 10.000 (capped at retryWaitMax)
5 10.000 (capped at retryWaitMax)
6 10.000 (capped at retryWaitMax)

Maximum Wait Time if All Attempts Fail

  • Default values: 26 seconds
  • Changed values: 48 seconds

Why this way

Attempt to fix flaky aiven-operator tests: https://github.com/aiven/aiven-operator/actions/runs/10938155919/job/30365698081. Kafka connect schema version API didn't respond with 200 in time with the old retry settings.

@rriski rriski marked this pull request as ready for review September 19, 2024 12:08
@rriski rriski requested a review from a team as a code owner September 19, 2024 12:08
@rriski rriski force-pushed the rriski-increase-retry-settings branch from 5395533 to 3c7d12e Compare September 19, 2024 12:30
@rriski rriski changed the title feat: double retryablehttp retry setting values feat: modify retryablehttp retry setting values Sep 19, 2024
@rriski rriski force-pushed the rriski-increase-retry-settings branch from 3c7d12e to cb851a1 Compare September 19, 2024 12:30
* RetryWaitMin: increase to 2 seconds (library default is 1 second)
* RetryWaitMax: decrease to 10 seconds (library default is 30 seconds)
* RetryMax: increase to 6 (library default is 4)
@rriski rriski force-pushed the rriski-increase-retry-settings branch from cb851a1 to dad1fab Compare September 19, 2024 12:32
@ssuomi-aiven ssuomi-aiven merged commit 7fe80df into main Sep 19, 2024
6 checks passed
@ssuomi-aiven ssuomi-aiven deleted the rriski-increase-retry-settings branch September 19, 2024 12:37
rriski added a commit that referenced this pull request Sep 19, 2024
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