Skip to content

global rate limit: supported ratelimits in the typed per filter config#37684

Merged
wbpcode merged 41 commits intoenvoyproxy:mainfrom
wbpcode:dev-global-ratelimit-support-per-descriptor
Dec 19, 2024
Merged

global rate limit: supported ratelimits in the typed per filter config#37684
wbpcode merged 41 commits intoenvoyproxy:mainfrom
wbpcode:dev-global-ratelimit-support-per-descriptor

Conversation

@wbpcode
Copy link
Copy Markdown
Member

@wbpcode wbpcode commented Dec 16, 2024

Commit Message: global rate limit: support per descriptor custom hits addend
Additional Description:

  1. implemented the rate_limits in the RateLimitPerRoute. Now, we can configure the global rate limit filter in the type_per_filter_config of route.
  2. added the per descriptor custom hits addend support (only for rate_limits in the RateLimitPerRoute for now).

Risk Level: low.
Testing: unit.
Docs Changes: n/a.
Release Notes: n/a.
Platform Specific Features: n/a.

mathetake and others added 25 commits December 6, 2024 21:58
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
…both for clarity

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
…nd for future extension

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: wangbaiping(wbpcode) <wangbaiping@bytedance.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: wangbaiping(wbpcode) <wangbaiping@bytedance.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: wangbaiping(wbpcode) <wangbaiping@bytedance.com>
@repokitteh-read-only
Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @markdroth
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #37684 was opened by wbpcode.

see: more, trace.

Comment on lines +179 to +191
// :ref:`RouteAction.rate_limits<envoy_v3_api_field_config.route.v3.RouteAction.rate_limits>` fields
// will be ignored.
//
// .. note::
// Not all configuration fields of
// :ref:`rate limit config <envoy_v3_api_msg_config.route.v3.RateLimit>` is supported at here.
// Following fields are not supported:
//
// 1. :ref:`rate limit stage <envoy_v3_api_field_config.route.v3.RateLimit.stage>`.
// 2. :ref:`dynamic metadata <envoy_v3_api_field_config.route.v3.RateLimit.Action.dynamic_metadata>`.
// 3. :ref:`disable_key <envoy_v3_api_field_config.route.v3.RateLimit.disable_key>`.
// 4. :ref:`override limit <envoy_v3_api_field_config.route.v3.RateLimit.limit>`.
repeated config.route.v3.RateLimit rate_limits = 3;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a break change to the API to avoid the redundant RateLimitConfig message. But this field is never be implemented and is only extension API, so, I think this should be fine. cc @envoyproxy/api-shepherds

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If never implemented sounds good.

mathetake and others added 4 commits December 18, 2024 04:33
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
@wbpcode
Copy link
Copy Markdown
Member Author

wbpcode commented Dec 18, 2024

/wait #37548

wangbaiping(wbpcode) added 2 commits December 18, 2024 12:08
…into dev-global-ratelimit-support-per-descriptor
Signed-off-by: wangbaiping(wbpcode) <wangbaiping@bytedance.com>
@wbpcode wbpcode changed the title global rate limit: support per descriptor custom hits addend global rate limit: supported ratelimits in the typed per filter config Dec 18, 2024
wangbaiping(wbpcode) added 2 commits December 18, 2024 15:03
Signed-off-by: wangbaiping(wbpcode) <wangbaiping@bytedance.com>
@wbpcode
Copy link
Copy Markdown
Member Author

wbpcode commented Dec 18, 2024

This PR implemented the rate_limits in the RateLimitPerRoute that added by @tyxia

Addressed offlinely, the API change is fine to @tyxia

Copy link
Copy Markdown
Member

@tyxia tyxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep API LGTM.

Thanks!

@wbpcode
Copy link
Copy Markdown
Member Author

wbpcode commented Dec 19, 2024

/retest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants