Repository navigation
Set default rate limit for fact - #2197
Open
JoukoVirtanen wants to merge 2 commits into
Open
JoukoVirtanen wants to merge 2 commits into
JoukoVirtanen wants to merge 2 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2197 +/- ##
=======================================
Coverage 33.45% 33.45%
=======================================
Files 22 22
Lines 3623 3623
Branches 3623 3623
=======================================
Hits 1212 1212
Misses 2402 2402
Partials 9 9 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Member
|
I don't think rate limiting is needed by default. Fact is designed to monitor paths that are rarely changed and should not be sending hundreds (maybe not event tens) of events a second, the rate limiter is there for people that want to use fact in a way it is not intended to be used as, not for us to drop events on people's behalf. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Rate limiting for Fact has been implemented, but it is not enabled by default. This PR sets the default rate limit to 400 events per second.
Checklist
Automated testing
If any of these don't apply, please comment below.
Testing Performed
CI failures are not related to the changes in this PR.
TODO(replace-me)
Use this space to explain how you tested your PR, or, if you didn't test it, why you did not do so. (Valid reasons include "CI is sufficient" or "No testable changes")
In addition to reviewing your code, reviewers must also review your testing instructions, and make sure they are sufficient.
For more details, ref the Confluence page about this section.
Summary by CodeRabbit
New Features
Documentation