diff options
author | Alban Lecocq <alban@lempire.co> | 2022-12-05 19:28:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-05 11:28:12 -0700 |
commit | d4a7d89f564234e44012a763cc28c5a3991bd98e (patch) | |
tree | 30a17b7cfaaa5f6bd6a71d599af8621fe1948cb7 /caddyconfig/caddyfile/dispenser_test.go | |
parent | ae77a56ac8761bfe064904bd7098a952d3221034 (diff) |
reverseproxy: Improve hostByHashing distribution (#5229)
* If upstreams are all using same host but with different ports
ie:
foobar:4001
foobar:4002
foobar:4003
...
Because fnv-1a has not a good enough avalanche effect
Then the hostByHashing result is not well balanced over
all upstreams
As last byte FNV input tend to affect few bits, the idea is to change
the concatenation order between the key and the upstream strings
So the upstream last byte have more impact on hash diffusion
Diffstat (limited to 'caddyconfig/caddyfile/dispenser_test.go')
0 files changed, 0 insertions, 0 deletions