support override host status restriction for stateful session (#19665)
Stateful session will try to parse upstream address from downstream request directly and override the result of load balancing algorithm by the LoadBalancerContext::overrideHostToSelect API. To avoid the load balancer selecting hosts that in unexpected statuses, specifying some expected statuses are necessary. In the previous design, we will provide expected statuses of override host by the LoadBalancerContext::overrideHostToSelect API. And in the PR #18207, after some discussion with @htuch, we found may be cluster-level config may be more reasonable design and implementation. Ref some more details: #18207 (comment) So this PR try to close previous discussion in the #18207: Refactoring LoadBalancerContext::overrideHostToSelect API to remove expected statuses for the return value. Add new common lb config override_host_status and related implementation. Risk Level: Mid. Testing: N/A. Docs Changes: N/A. Release Notes: N/A. Platform Specific Features: N/A. @wbpcode Signed-off-by: wbpcode <wbphub@live.com> Mirrored from https://github.com/envoyproxy/envoy @ 1575185d14abc3bc508ce5a6ba45422393322551pull/626/head
parent
41ca3c7ef9
commit
afda4c0b3e
2 changed files with 15 additions and 1 deletions
Loading…
Reference in new issue