Closed ydh926 closed 3 years ago
Before solving this problem, we should try to avoid setting the port commonly used by external services as wormhole Port.
Is there any plan to fix this bug?
@caitong93 , Did you have any ideas?
The cause of this problem is that global sidecar send traffic to external services to the Passthrough Cluster, but it cannot get the original destination and return 503. To solve that we need to pass original destination to global sidecar. A simple workaround is configure request_headers_to_add
in RouteConfiguration
as following and set use_http_header
in OriginalDstLbConfig
to true , but that only works for Http. For non-http traffic we need to investigate other possible techniques(maybe we can try to passthrough traffic to external service before it goes to the global sidecar).
request_headers_to_add:
- header:
key: x-envoy-original-dst-host
value: "%DOWNSTREAM_LOCAL_ADDRESS%"
I feel that It's unexpected behavior to forward external service traffic to global sidecar, which will introduce another hop and bring more latency. The external service traffic should be routed to PassthroughCluster
in the sidecar itself.
I feel that It's unexpected behavior to forward external service traffic to global sidecar, which will introduce another hop and bring more latency. The external service traffic should be routed to PassthroughCluster in the sidecar itself.
Agree with you. I feel we can use some matching rules like cidr to identify external traffic and route that to PassthroughCluster
.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
we've provided an approach and will'be released at the v0.2.1 version.
Bug description After enabling configuration lazy loading, external services cannot be accessed normally
Affected sub-moudle (please put an X in all that apply)
[x] Configuration Lazy Loading [ ] Http Plugin Management [ ] Adaptive Ratelimit [ ] Slime Boot
Steps to reproduce the bug
apt-get update
command, it will return 503, as follows: