-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add support for retries on 429 rate limited requests #193
Conversation
d851c91
to
6396c9d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution! Overall the PR looks good. There are only a few minor comments to address.
loki-logback-appender/src/test/java/com/github/loki4j/logback/Loki4jAppenderTest.java
Outdated
Show resolved
Hide resolved
loki-logback-appender/src/test/java/com/github/loki4j/logback/Loki4jAppenderTest.java
Outdated
Show resolved
Hide resolved
@nehaev thanks for the review, I've replied to your comments, let me know if you want any other changes. |
Adds an option to enable/disable retries on rate limit errors: `dropRateLimitedBatches`. It's enabled by default to keep consistency with Promtail options. Also because Loki scales less aggressively and relies on retries when the load is spiky. Resolves: loki4j#192
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good! Grafana Cloud tests are failing, but it's unrelated to this PR.
I'll try to fix tests and then will merge this.
Great, thanks @nehaev. |
Adds an option to enable/disable retries on rate limit errors:
dropRateLimitedBatches
. It's enabled by default to keep consistency with Promtail options. Also because Loki scales less aggressively and relies on retries when the load is spiky.Resolves: #192