-
Notifications
You must be signed in to change notification settings - Fork 591
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
refactor(streaming): unify and refine rate_limit
related type
#19857
Comments
Any comments? cc @hzxa21 @StrikeW @kwannoel @tabVersion |
at least it should not be |
Fixed. 🫠 |
proposing
|
How about |
Proposings on naming accepted. Can I assume this refactor works for you? We need to keep both fields for a few versions. Because the streaming plan is stored as proto in meta |
LGTM, thanks for the initiative. |
Background
Currently, we are using two types to present "rate_limit".
In
.proto
files, all rate limit values areoptional uint32
:None
: infinite0
: pausev
: rate limit atv
However, when we are parsing the rate limit with SQL, we are using
i32
:-1
(and other negative value for compatibility): infinite0
: pausev
: rate limit atv
Although it looks wired, it works fine for now.
But things are getting worse when we want to introduce some new rate limit policy. It is too tricky to use more conventional values, especially with
u32
type. (e.g. To introduce the adaptive rate limiter for backfill, #19743 )Design
Use a new
message Throttle
to unify and refine all rate limits.e.g.
Future Optimizations
No response
Discussions
No response
Q&A
No response
The text was updated successfully, but these errors were encountered: