Skip to content
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

load shed: add load shed check in downstream decoder filters #33366

Merged
merged 11 commits into from Apr 15, 2024

Conversation

botengyao
Copy link
Member

@botengyao botengyao commented Apr 5, 2024

Make load shed check available in downstream decoder callbacks by adding one more lsp to filter manager, and added the check in router.

The idea is to make the filters in the filter chain can shed load since we may have a lot of side streams, and creating upstream can also be heavy. Not sure if we want to make it configureable for router with a bool button, not only for the load shed point.

Happy to hear any thoughts.

Commit Message:
Additional Description:
Risk Level: Low
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

Signed-off-by: Boteng Yao <boteng@google.com>
Copy link

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #33366 was opened by botengyao.

see: more, trace.

Signed-off-by: Boteng Yao <boteng@google.com>
…sp_callback

Signed-off-by: Boteng Yao <boteng@google.com>
Signed-off-by: Boteng Yao <boteng@google.com>
@botengyao botengyao marked this pull request as ready for review April 9, 2024 19:37
Signed-off-by: Boteng Yao <boteng@google.com>
@botengyao
Copy link
Member Author

/assign @yanavlasov

@botengyao
Copy link
Member Author

/assign @KBaichoo

Copy link
Contributor

@KBaichoo KBaichoo left a comment

Choose a reason for hiding this comment

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

nice!

/wait

changelogs/current.yaml Outdated Show resolved Hide resolved
source/common/http/filter_manager.h Outdated Show resolved Hide resolved
test/integration/overload_integration_test.cc Outdated Show resolved Hide resolved
@botengyao botengyao changed the title load shed: add load shed check in downstream filters load shed: add load shed check in downstream decoder filters Apr 11, 2024
Signed-off-by: Boteng Yao <boteng@google.com>
Signed-off-by: Boteng Yao <boteng@google.com>
…sp_callback

Signed-off-by: Boteng Yao <boteng@google.com>
KBaichoo
KBaichoo previously approved these changes Apr 11, 2024
Signed-off-by: Boteng Yao <boteng@google.com>
Copy link
Contributor

@yanavlasov yanavlasov left a comment

Choose a reason for hiding this comment

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

LGTM with a spelling fix and a question.

/wait

envoy/http/filter.h Outdated Show resolved Hide resolved
Signed-off-by: Boteng Yao <boteng@google.com>
Signed-off-by: Boteng Yao <boteng@google.com>
@yanavlasov yanavlasov merged commit 7efd6c3 into envoyproxy:main Apr 15, 2024
53 checks passed
cainelli pushed a commit to cainelli/envoy that referenced this pull request Apr 18, 2024
…oxy#33366)

---------

Signed-off-by: Boteng Yao <boteng@google.com>
Signed-off-by: Fernando Cainelli <fernando.cainelli-external@getyourguide.com>
alyssawilk pushed a commit to alyssawilk/envoy that referenced this pull request Apr 29, 2024
…oxy#33366)


---------

Signed-off-by: Boteng Yao <boteng@google.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.

None yet

3 participants