add per min throttling support to fpc #5241
Merged
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
Could use some help verifying this actually works as I'm not totally familiar with the entitlement code path, but I'm pretty sure I have what is needed here since the
FPCEntitlementProvider
just extends from the original overriding thecheckThrottles
.So FPC currently doesn't support per minute throttling of namespaces. While the system no longer needs these throttles to protect itself with the new fpc scheduler enhancement, it is still a valuable feature to allow for user functions to protect their downstream by having reasonable per minute limits. And it's just a feature that I think is unnecessarily lost if still needed for certain use cases. Ideally people can slowly move away from using this feature, but having the option at least available makes it easier for people to more quickly migrate to fpc from their existing cluster that might be dependent on it.
Since the contributors of FPC to the open source repository do not use the feature, I've set the default config value to not include the per minute throttling. I personally think the default should probably be to have it still turned on right now, but I will let them decide on that.
Related issue and scope
My changes affect the following components
Types of changes
Checklist: