Skip to content

admission control: Filter implementation with no-op controller#11414

Merged
mattklein123 merged 120 commits intoenvoyproxy:masterfrom
tonya11en:admctl_pt1
Jun 17, 2020
Merged

admission control: Filter implementation with no-op controller#11414
mattklein123 merged 120 commits intoenvoyproxy:masterfrom
tonya11en:admctl_pt1

Conversation

@tonya11en
Copy link
Member

First patch in a series implementing #9658. The basic filter logic, HTTP/gRPC code evaluation, and configuration are implemented. Still requires the actual admission control logic implementation and documentation.

This is a break-up of PR #10985.

Risk Level: Low (new filter)
Testing: Unit test
Docs Changes: Only proto documenation implemented.
Release Notes: n/a
Progress toward: #9658

Tony Allen and others added 30 commits January 10, 2020 15:13
wip
Signed-off-by: Tony Allen <tallen@lyft.com>
wip
Signed-off-by: Tony Allen <tallen@lyft.com>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tallen@lyft.com>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Tony Allen <tallen@lyft.com>
Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: Tony Allen <tony@allen.gg>
@tonya11en tonya11en requested a review from mattklein123 June 16, 2020 21:22
mattklein123
mattklein123 previously approved these changes Jun 17, 2020
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Nice, looks good to ship and iterate. LMK if you want to add the TODO in this PR or do it in a follow up.

/**
* A filter that probabilistically rejects requests based on upstream success-rate.
*/
class AdmissionControlFilter : public Http::PassThroughFilter,
Copy link
Member

Choose a reason for hiding this comment

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

Do you want to add a TODO in code somewhere about the reset thread? I think you do want to handle that. Feel free to add the TODO in a follow up if you want.

Copy link
Member Author

Choose a reason for hiding this comment

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

Went ahead and threw in the comment. Thanks for reminding me.

Signed-off-by: Tony Allen <tony@allen.gg>
@mattklein123 mattklein123 merged commit 83433ae into envoyproxy:master Jun 17, 2020
florincoras added a commit to florincoras/envoy that referenced this pull request Jun 18, 2020
Test added by envoyproxy#11414 uses RequestHeaderMapImpl constructor made private
in envoyproxy#11546

Signed-off-by: Florin Coras <fcoras@cisco.com>
@tonya11en tonya11en deleted the admctl_pt1 branch June 18, 2020 05:36
lizan pushed a commit that referenced this pull request Jun 18, 2020
Test added by #11414 uses RequestHeaderMapImpl constructor made private
in #11546

Signed-off-by: Florin Coras <fcoras@cisco.com>
yashwant121 pushed a commit to yashwant121/envoy that referenced this pull request Jun 24, 2020
…proxy#11414)

Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: yashwant121 <yadavyashwant36@gmail.com>
yashwant121 pushed a commit to yashwant121/envoy that referenced this pull request Jun 24, 2020
Test added by envoyproxy#11414 uses RequestHeaderMapImpl constructor made private
in envoyproxy#11546

Signed-off-by: Florin Coras <fcoras@cisco.com>
Signed-off-by: yashwant121 <yadavyashwant36@gmail.com>
songhu pushed a commit to songhu/envoy that referenced this pull request Jun 25, 2020
songhu pushed a commit to songhu/envoy that referenced this pull request Jun 25, 2020
Test added by envoyproxy#11414 uses RequestHeaderMapImpl constructor made private
in envoyproxy#11546

Signed-off-by: Florin Coras <fcoras@cisco.com>
yashwant121 pushed a commit to yashwant121/envoy that referenced this pull request Jul 24, 2020
…proxy#11414)

Signed-off-by: Tony Allen <tony@allen.gg>
Signed-off-by: yashwant121 <yadavyashwant36@gmail.com>
yashwant121 pushed a commit to yashwant121/envoy that referenced this pull request Jul 24, 2020
Test added by envoyproxy#11414 uses RequestHeaderMapImpl constructor made private
in envoyproxy#11546

Signed-off-by: Florin Coras <fcoras@cisco.com>
Signed-off-by: yashwant121 <yadavyashwant36@gmail.com>
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