-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
x-pack/filebeat/input/httpjson: Apply rate limiting to all responses #38161
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
…mits as no limit If a rate limit header is not present, do not fail the request, but rather optimistically assume that we are within limits.
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
@chrisberkhout Can we get a Changelog update, otherwise looks pretty good to me, I'm approving to unblock, please add the Changelog before merging. |
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.
Approving to unblock, LGTM
…38161) - Drain the body before rate limiting. - Apply rate limiting to all responses, waiting immediately. Retry if the response was not successful and there was a rate limit wait (even if immediately expired), otherwise return. - Improve names of variables `epoch` and `activeLimit`. Co-authored-by: Dan Kortschak <dan.kortschak@elastic.co> (cherry picked from commit ca07b8e)
Missed the changelog. Will add in new PR. |
…38161) (#38236) - Drain the body before rate limiting. - Apply rate limiting to all responses, waiting immediately. Retry if the response was not successful and there was a rate limit wait (even if immediately expired), otherwise return. - Improve names of variables `epoch` and `activeLimit`. Co-authored-by: Dan Kortschak <dan.kortschak@elastic.co> (cherry picked from commit ca07b8e) Co-authored-by: Chris Berkhout <chris.berkhout@elastic.co>
Draft discussion
I didn't find a solution to the failing
request_honors_rate_limit
test. The context is okay when processing the first response, and remains okay after the wait time is applied, then it appears as cancelled after the retry request is run (that is, after this line).Proposed commit message
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Related issues