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

[CLD-7290] Add retry mechanism for Thanos queries to mitigate random network connectivity issues #31

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

stylianosrigas
Copy link
Contributor

Summary

  • Add retry mechanism for Thanos queries to mitigate random network connectivity issues

Copy link
Contributor

@stafot stafot left a comment

Choose a reason for hiding this comment

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

Thanks for this work!

lastErr = err
logger.Warnf("Query failed: %v", err)
if attempt+1 < 10 {
time.Sleep(time.Second * time.Duration(2<<attempt)) // Exponential backoff
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

@stylianosrigas stylianosrigas merged commit 0f3be4c into main Mar 14, 2024
3 checks passed
@stylianosrigas stylianosrigas deleted the CLD-7290 branch March 14, 2024 09:25
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.

3 participants