-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix: RateLimiterService #13997
base: develop
Are you sure you want to change the base?
fix: RateLimiterService #13997
Conversation
このPRによるapi.jsonの差分 差分はこちら |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #13997 +/- ##
===========================================
- Coverage 40.16% 40.07% -0.10%
===========================================
Files 1521 1521
Lines 188552 188535 -17
Branches 3509 3512 +3
===========================================
- Hits 75735 75553 -182
- Misses 112246 112439 +193
+ Partials 571 543 -28 ☔ View full report in Codecov by Sentry. |
ちょっとoutofscopeかもしれないけどrefactorついでにpolicyでrateLimitFactorを調整すると |
正確には2乗に比例するはずです。 |
mark this pull request as "ready for review": #13994 is merged |
実装しました |
This comment was marked as resolved.
This comment was marked as resolved.
IDEのeslintがコンフィグのロードに失敗してましたすみません |
あ、セマンティックコミットじゃない 🙇🏻 |
これは意図した挙動だった |
二乗の効果にした意図は何なのでしょうか |
強さを変更したらdurationも変わる方が自然に思った(別に「factor」は回数のみに影響するとは決まっていない) |
強さが線形(2倍にしたら2倍アクセスできる)のほうが私は直感的だと私は思いました。(少なくとも過去の自分は線形の影響度を持つと解釈してました。) また、両方に影響するべきという話であれば、今の実装以外の線形の方法としてはsqrt(factor)をdurationも回数も影響させるというのが実装可能だと思います。 |
rate limitのfactorの影響が線形であるほうがわかりやすいという話と、 duration / max の両方影響受けるべきという話について、影響割合をFactorの二乗に影響するように戻すべきでしょうか。(戻した場合にはUIの説明テキストの方を更新します) |
What
#13994 (comment)
を実装しました
Why
What参照
Additional info (optional)
diffとしては大きいですが、小さな作業単位にcommitを分けたので、レビューするときはコミット単位にみてもらうとおそらく見やすいと思います。
#13994を先にマージする必要があるため、マージされるまでDraftにしますが Ready for Review です
Checklist