Skip to content

Support drop_overload API#30827

Merged
yanavlasov merged 21 commits intoenvoyproxy:mainfrom
yanjunxiang-google:drop_overload
Dec 8, 2023
Merged

Support drop_overload API#30827
yanavlasov merged 21 commits intoenvoyproxy:mainfrom
yanjunxiang-google:drop_overload

Conversation

@yanjunxiang-google
Copy link
Copy Markdown
Contributor

@yanjunxiang-google yanjunxiang-google commented Nov 10, 2023

This PR implement envoy drop_overload support as in:
#3823

For Envoy, it is decided to only support one category at this moment. So, the implementation has size check for drop_overloads configuration.

Commit Message:
Additional Description:
Risk Level:
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: Yanjun Xiang <yanjunxiang@google.com>
@yanjunxiang-google yanjunxiang-google marked this pull request as draft November 10, 2023 19:52
Signed-off-by: Yanjun Xiang <yanjunxiang@google.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: #30827 was synchronize by yanjunxiang-google.

see: more, trace.

Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Comment thread source/common/upstream/health_discovery_service.h Outdated
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
@yanjunxiang-google yanjunxiang-google marked this pull request as ready for review November 28, 2023 00:35
@yanjunxiang-google
Copy link
Copy Markdown
Contributor Author

/assign @yanavlasov @vishalpowar @adisuissa @KBaichoo

Comment thread api/envoy/config/endpoint/v3/endpoint.proto Outdated
Copy link
Copy Markdown
Contributor

@adisuissa adisuissa left a comment

Choose a reason for hiding this comment

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

Thanks for working on this!
Here's a first pass.

Comment thread envoy/upstream/upstream.h Outdated
Comment thread source/common/router/router.cc Outdated
Comment thread source/common/upstream/upstream_impl.cc Outdated
Comment thread source/common/upstream/upstream_impl.cc Outdated
Comment thread source/common/upstream/upstream_impl.cc Outdated
Comment thread test/common/upstream/upstream_impl_test.cc Outdated
Comment thread source/common/upstream/upstream_impl.h
Comment thread source/common/upstream/cluster_manager_impl.cc Outdated
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Comment thread envoy/stream_info/stream_info.h
Comment thread source/common/upstream/cluster_manager_impl.cc Outdated
Comment thread test/integration/eds_integration_test.cc Outdated
Comment thread test/integration/eds_integration_test.cc
Comment thread api/envoy/config/endpoint/v3/endpoint.proto Outdated
Comment thread api/envoy/config/endpoint/v3/endpoint.proto Outdated
Comment thread source/common/router/router.cc Outdated
Comment thread api/envoy/config/endpoint/v3/endpoint.proto Outdated
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
…overload

Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
@markdroth
Copy link
Copy Markdown
Contributor

/lgtm api

@repokitteh-read-only repokitteh-read-only Bot removed the api label Dec 4, 2023
Copy link
Copy Markdown
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.

Looks good apart from outstanding comments. Thank you.

Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
adisuissa
adisuissa previously approved these changes Dec 5, 2023
Copy link
Copy Markdown
Contributor

@adisuissa adisuissa left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Comment thread source/common/upstream/cluster_manager_impl.cc
@yanjunxiang-google
Copy link
Copy Markdown
Contributor Author

/retest

1 similar comment
@yanjunxiang-google
Copy link
Copy Markdown
Contributor Author

/retest

Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Copy link
Copy Markdown
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.

Looks very good. Thanks. I just have one more suggestion and it is ready to be submitted.

/wait

Comment thread source/common/router/router.cc Outdated
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
@yanjunxiang-google
Copy link
Copy Markdown
Contributor Author

/retest

Copy link
Copy Markdown
Contributor

@adisuissa adisuissa left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!
/assign-from @envoyproxy/senior-maintainers

@repokitteh-read-only
Copy link
Copy Markdown

@envoyproxy/senior-maintainers assignee is @yanavlasov

🐱

Caused by: a #30827 (review) was submitted by @adisuissa.

see: more, trace.

@yanjunxiang-google
Copy link
Copy Markdown
Contributor Author

Kind ping!

@yanavlasov yanavlasov merged commit ae8a529 into envoyproxy:main Dec 8, 2023
@yanjunxiang-google yanjunxiang-google deleted the drop_overload branch December 13, 2023 16:27
yanavlasov pushed a commit that referenced this pull request Mar 4, 2025
…38408)

This is a follow up commit of drop_overload
support:#30827.

It is observed that in some situations, EDS sends drop_overload ratio as
100% for some clusters do not have healthy endpoints in the cluster. For
such cases, it is preferred that the RCD of the local reply set to
"unconditional drop overload" to make it a little bit different from the
normal "drop overload" case.

---------

Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
update-envoy Bot added a commit to envoyproxy/data-plane-api that referenced this pull request Mar 4, 2025
…38408)

This is a follow up commit of drop_overload
support:envoyproxy/envoy#30827.

It is observed that in some situations, EDS sends drop_overload ratio as
100% for some clusters do not have healthy endpoints in the cluster. For
such cases, it is preferred that the RCD of the local reply set to
"unconditional drop overload" to make it a little bit different from the
normal "drop overload" case.

---------

Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ 5ff9f03e3af26fad5fd444a4a166c7d8d9b44ffc
phlax pushed a commit to phlax/envoy-openssl that referenced this pull request Mar 7, 2025
…38408)

This is a follow up commit of drop_overload
support:envoyproxy/envoy#30827.

It is observed that in some situations, EDS sends drop_overload ratio as
100% for some clusters do not have healthy endpoints in the cluster. For
such cases, it is preferred that the RCD of the local reply set to
"unconditional drop overload" to make it a little bit different from the
normal "drop overload" case.

---------

Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
jewertow pushed a commit to jewertow/envoy that referenced this pull request Apr 2, 2025
…nvoyproxy#38408)

This is a follow up commit of drop_overload
support:envoyproxy#30827.

It is observed that in some situations, EDS sends drop_overload ratio as
100% for some clusters do not have healthy endpoints in the cluster. For
such cases, it is preferred that the RCD of the local reply set to
"unconditional drop overload" to make it a little bit different from the
normal "drop overload" case.

---------

Signed-off-by: Yanjun Xiang <yanjunxiang@google.com>
agrawroh pushed a commit to agrawroh/envoy that referenced this pull request Apr 9, 2025
…nvoyproxy#38408)

This is a follow up commit of drop_overload
support:envoyproxy#30827.

It is observed that in some situations, EDS sends drop_overload ratio as
100% for some clusters do not have healthy endpoints in the cluster. For
such cases, it is preferred that the RCD of the local reply set to
"unconditional drop overload" to make it a little bit different from the
normal "drop overload" case.

---------

Signed-off-by: Yanjun Xiang <yanjunxiang@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.

6 participants