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

Set custom values for azblob retries #33

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

cpuguy83
Copy link
Contributor

This just allows more retries with a bigger backoff.

Just taking a stab at values for this.
Defaults without this change are:

3 retries, 4 second delay, 60s max retry delay.

@cpuguy83
Copy link
Contributor Author

cpuguy83 commented Feb 28, 2025

For the reported 404's, I wonder if its a race condition and maybe we should retry on 404?

Default error codes to retry on are:

  • 408
  • 429
  • 500
  • 502
  • 503
  • 504

@tonistiigi
Copy link
Owner

For the reported 404's, I wonder if its a race condition and maybe we should retry on 404?

Unless it gets 404 because it has been deleted internally. Then it would not come back on retry. That seems to be the case for at least one of the 404 logs we sent to Github for investigation.

cache_v2.go Outdated
@@ -45,8 +48,18 @@ func (c *Cache) reserveV2(ctx context.Context, key string) (string, error) {
return cr.SignedUploadURL, nil
}

var clientOptions = &blockblob.ClientOptions{
Copy link
Owner

Choose a reason for hiding this comment

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

nit: azureOptions maybe.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

SGTM, updated.

This just allows more retries with a bigger backoff.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@tonistiigi tonistiigi merged commit 3e9a664 into tonistiigi:master Feb 28, 2025
5 checks passed
@cpuguy83 cpuguy83 deleted the set_azblob_retries branch February 28, 2025 23:18
renovate bot added a commit to hetznercloud/csi-driver that referenced this pull request Mar 5, 2025
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/moby/buildkit](https://redirect.github.com/moby/buildkit)
| `v0.20.0` -> `v0.20.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fmoby%2fbuildkit/v0.20.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fmoby%2fbuildkit/v0.20.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fmoby%2fbuildkit/v0.20.0/v0.20.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fmoby%2fbuildkit/v0.20.0/v0.20.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>moby/buildkit (github.com/moby/buildkit)</summary>

###
[`v0.20.1`](https://redirect.github.com/moby/buildkit/releases/tag/v0.20.1)

[Compare
Source](https://redirect.github.com/moby/buildkit/compare/v0.20.0...v0.20.1)

Welcome to the v0.20.1 release of buildkit!

Please try out the release binaries and report any issues at
https://github.com/moby/buildkit/issues.

##### Contributors

-   Tõnis Tiigi
-   Akihiro Suda
-   CrazyMax

##### Notable Changes

- Fix panic during CDI manager initialization.
[#&#8203;5769](https://redirect.github.com/moby/buildkit/issues/5769)
[cncf-tags/container-device-interface#254](https://redirect.github.com/cncf-tags/container-device-interface/issues/254)
- Fix gRPC message size when writing SBOMs.
[#&#8203;5798](https://redirect.github.com/moby/buildkit/issues/5798)
[containerd/containerd#11457](https://redirect.github.com/containerd/containerd/issues/11457)
- Update azblob client retries for GitHub Actions cache backend.
[#&#8203;5797](https://redirect.github.com/moby/buildkit/issues/5797)
[tonistiigi/go-actions-cache#33](https://redirect.github.com/tonistiigi/go-actions-cache/issues/33)
- Embedded binfmt emulators in the release image have been updated to
QEMU v9.2.2.
[#&#8203;5808](https://redirect.github.com/moby/buildkit/issues/5808)
- Update documentation and examples for rootless mode.
[#&#8203;5765](https://redirect.github.com/moby/buildkit/issues/5765)

##### Dependency Changes

-   **github.com/containerd/containerd/v2**      v2.0.2 -> v2.0.3
- **github.com/tonistiigi/go-actions-cache**
[`1a5174a`](https://redirect.github.com/moby/buildkit/commit/1a5174abd055)
->
[`3e9a664`](https://redirect.github.com/moby/buildkit/commit/3e9a6642607f)
-   **tags.cncf.io/container-device-interface**  v0.8.0 -> v0.8.1

Previous release can be found at
[v0.20.0](https://redirect.github.com/moby/buildkit/releases/tag/v0.20.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/hetznercloud/csi-driver).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xODUuNCIsInVwZGF0ZWRJblZlciI6IjM5LjE4NS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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