upstream: Optimize subset_lb for case of a single host per subset (#12594)
This can be used in similar situations to maglev/ring, but can be used when the host selection must remain the same for existing sessions even if more hosts are added to the cluster. In a test with 1500 endpoints, updating 50 (remove 50, add 50 different ones) took: without new setting: ~500ms with new setting (this PR): ~4ms Signed-off-by: Greg Greenway <ggreenway@apple.com> Mirrored from https://github.com/envoyproxy/envoy @ 724df08c329c8270509e2a8568be90fd43d597c1master-ci-test
parent
b7824e3010
commit
088a3436fe
2 changed files with 28 additions and 0 deletions
Loading…
Reference in new issue