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: truncate poll exponential backoff function to max 10s #674

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

jooola
Copy link
Member

@jooola jooola commented Jul 25, 2024

Related to #346 and #380

The initial exponential back off algorithm introduced in #380 was not truncated, which could lead to very long intervals. The recent release of hcloud-go truncated the default exponential back off algorithm to 60s: hetznercloud/hcloud-go@fd1f46c

If we take the scenario described in #346, I think we can still reduce the max interval value for the exponential back off algorithm to <30s.

@jooola jooola requested a review from a team as a code owner July 25, 2024 15:41
@jooola
Copy link
Member Author

jooola commented Jul 25, 2024

Happy to increase the max to something between 5s and 30s

@jooola jooola changed the title feat: truncate poll exponential backoff function to max 5s feat: truncate poll exponential backoff function to max 10s Jul 26, 2024
@jooola jooola force-pushed the fix-poll-backoff branch from 72341d0 to 6f80195 Compare July 26, 2024 13:09
Copy link

codecov bot commented Jul 26, 2024

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Project coverage is 33.92%. Comparing base (8ec4683) to head (6f80195).

Files Patch % Lines
internal/app/app.go 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #674      +/-   ##
==========================================
- Coverage   34.01%   33.92%   -0.09%     
==========================================
  Files          19       19              
  Lines        1623     1627       +4     
==========================================
  Hits          552      552              
- Misses       1037     1041       +4     
  Partials       34       34              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@apricote apricote left a comment

Choose a reason for hiding this comment

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

10-30 seconds sounds good.

If we have too many users running into rate limits, we could also make it configurable in the future.

@jooola jooola merged commit 5785418 into main Aug 5, 2024
8 checks passed
@jooola jooola deleted the fix-poll-backoff branch August 5, 2024 08:39
jooola pushed a commit that referenced this pull request Aug 8, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.9.0](v2.8.0...v2.9.0)
(2024-08-08)


### Features

* truncate poll exponential backoff function to max 10s
([#674](#674))
([5785418](5785418))


### Bug Fixes

* xfs options compatibility between alpine and node kernel
([#689](#689))
([13d853b](13d853b)),
closes [#648](#648)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
lukasmetzner pushed a commit that referenced this pull request Oct 10, 2024
Related to #346 and #380

The initial exponential back off algorithm introduced in #380 was not
truncated, which could lead to very long intervals. The recent release
of hcloud-go truncated the default exponential back off algorithm to
60s:
hetznercloud/hcloud-go@fd1f46c

If we take the scenario described in #346, I think we can still reduce
the max interval value for the exponential back off algorithm to <30s.
lukasmetzner pushed a commit that referenced this pull request Oct 10, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.9.0](v2.8.0...v2.9.0)
(2024-08-08)


### Features

* truncate poll exponential backoff function to max 10s
([#674](#674))
([5785418](5785418))


### Bug Fixes

* xfs options compatibility between alpine and node kernel
([#689](#689))
([13d853b](13d853b)),
closes [#648](#648)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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