-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
dynamic_forward_proxy: DNS Cache circuit breaker #11028
Conversation
Signed-off-by: shikugawa <[email protected]>
Signed-off-by: shikugawa <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flushing out a few API comments. Note that this will require documentation and release notes. We also need to figure out how to gracefully handle the existing use case. I think potentially if the new config is not set we should use the cluster circuit breaker for some period of time in the existing HTTP code. Need to discuss. Thank you!
/wait
Signed-off-by: shikugawa <[email protected]>
Signed-off-by: shikugawa <[email protected]>
Signed-off-by: shikugawa <[email protected]>
api/envoy/extensions/common/dynamic_forward_proxy/v3/dns_cache.proto
Outdated
Show resolved
Hide resolved
Signed-off-by: shikugawa <[email protected]>
Signed-off-by: shikugawa <[email protected]>
Signed-off-by: shikugawa <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few API/doc comments to get started. Please also fix tidy. Thank you!
/wait
api/envoy/config/common/dynamic_forward_proxy/v2alpha/dns_cache.proto
Outdated
Show resolved
Hide resolved
Signed-off-by: shikugawa <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the right track. Flushing out a few comments. Thank you!
/wait
source/extensions/common/dynamic_forward_proxy/dns_cache_impl.cc
Outdated
Show resolved
Hide resolved
source/extensions/common/dynamic_forward_proxy/dns_cache_resource_manager.h
Outdated
Show resolved
Hide resolved
source/extensions/common/dynamic_forward_proxy/dns_cache_resource_manager.h
Outdated
Show resolved
Hide resolved
Signed-off-by: Shikugawa <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/wait
source/extensions/common/dynamic_forward_proxy/dns_cache_impl.cc
Outdated
Show resolved
Hide resolved
source/extensions/filters/http/dynamic_forward_proxy/proxy_filter.cc
Outdated
Show resolved
Hide resolved
Signed-off-by: Shikugawa <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo final nits, thanks!
/wait
Signed-off-by: Shikugawa <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@Shikugawa can you merge master? it conflicts with security patches. |
Signed-off-by: Shikugawa <[email protected]>
Signed-off-by: Shikugawa <[email protected]>
Signed-off-by: Shikugawa <[email protected]>
Signed-off-by: Shikugawa <[email protected]>
@lizan @mattklein123 Windows CI is failing. This seems that there is potential problems in Windows building. |
…-circuit-breaker Signed-off-by: Shikugawa <[email protected]>
Signed-off-by: Shikugawa <[email protected]>
Signed-off-by: shikugawa [email protected]
For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md
Commit Message: In the current implementation of the DNS cache, circuit breaker is derived from cluster config. It seems unnatural. In this PR, I implemented the DNS cache specific circuit breaker by adding resource manager to that.
Additional Description:
Risk Level: Mid
Testing: Unit / Integration
Docs Changes: Required
Release Notes: Required
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]