0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/modules/caddyhttp
Matt Holt 40b193fb79
reverseproxy: Improve hashing LB policies with HRW (#4724)
* reverseproxy: Improve hashing LB policies with HRW

Previously, if a list of upstreams changed, hash-based LB policies
would be greatly affected because the hash relied on the position of
upstreams in the pool. Highest Random Weight or "rendezvous" hashing
is apparently robust to pool changes. It runs in O(n) instead of
O(log n), but n is very small usually.

* Fix bug and update tests
2022-04-27 10:39:22 -06:00
..
caddyauth go.mod: Migrate to golang.org/x/term (#4073) 2021-03-29 12:39:08 -06:00
encode encode: ignore flushing until after first write (#4318) 2021-08-31 13:36:36 -06:00
fileserver httpcaddyfile: Deprecate paths in site addresses; use zap logs (#4728) 2022-04-25 10:12:10 -06:00
headers headers: Fix + in Caddyfile to properly append rather than set (#4506) 2022-01-04 10:10:11 -07:00
map map: Evaluate placeholders in output vals (#4650) 2022-03-21 17:05:38 -06:00
push caddyhttp: Make logging of credential headers opt-in (#4438) 2021-12-02 13:26:24 -07:00
requestbody requestbody: Return HTTP 413 (fix #4558) 2022-03-11 12:34:55 -07:00
reverseproxy reverseproxy: Improve hashing LB policies with HRW (#4724) 2022-04-27 10:39:22 -06:00
rewrite rewrite: Add method Caddyfile directive (#4528) 2022-01-18 12:17:35 -07:00
standard tracing: New OpenTelemetry module (#4361) 2022-03-08 12:18:32 -07:00
templates templates: Switch to BurntSushi/toml (#4700) 2022-04-12 13:48:42 -06:00
tracing tracing: New OpenTelemetry module (#4361) 2022-03-08 12:18:32 -07:00
app.go reverseproxy: Add _ms placeholders for proxy durations (#4666) 2022-04-11 13:04:05 -06:00
autohttps.go go.mod: Upgrade CertMagic to v0.16.0 2022-03-25 11:28:54 -06:00
caddyhttp.go fileserver: do not double-escape paths (#4447) 2021-12-11 09:26:21 -05:00
caddyhttp_test.go caddyhttp: Refactor and export SanitizedPathJoin for use in fastcgi (#4207) 2021-06-17 09:59:08 -06:00
celmatcher.go caddyfile: Support for raw token values; improve map, expression (#4643) 2022-03-18 15:08:23 -06:00
celmatcher_test.go caddyhttp: Add support to resolve DN in CEL expression (#3608) 2020-07-31 15:06:30 -06:00
errors.go requestbody: Return HTTP 413 (fix #4558) 2022-03-11 12:34:55 -07:00
httpredirectlistener.go caddyhttp: Move HTTP redirect listener to an optional module (#4585) 2022-02-19 15:36:36 -07:00
marshalers.go caddyhttp: Make logging of credential headers opt-in (#4438) 2021-12-02 13:26:24 -07:00
matchers.go caddyhttp: Support zone identifiers in remote_ip matcher (#4597) 2022-03-01 15:50:12 -07:00
matchers_test.go caddyhttp: Sanitize the path before evaluating path matchers (#4407) 2021-11-08 13:45:03 -07:00
metrics.go move common metrics-related funcs to internal package 2022-01-25 15:07:17 -05:00
metrics_test.go move common metrics-related funcs to internal package 2022-01-25 15:07:17 -05:00
replacer.go reverseproxy: Add _ms placeholders for proxy durations (#4666) 2022-04-11 13:04:05 -06:00
replacer_test.go caddyfile: Fix caddy fmt nesting not decrementing (#4157) 2021-05-10 12:01:27 -06:00
responsematchers.go General minor improvements to docs 2021-09-24 18:31:01 -06:00
responsematchers_test.go reverseproxy: Add handle_response blocks to reverse_proxy (#3710) (#4021) 2021-05-02 12:39:06 -06:00
responsewriter.go caddyhttp: Fix trailers when recording responses (fixes #3236) 2020-04-22 11:10:13 -06:00
routes.go caddyhttp: Add support for triggering errors from try_files (#4346) 2021-09-17 00:52:32 -06:00
server.go reverseproxy: Add _ms placeholders for proxy durations (#4666) 2022-04-11 13:04:05 -06:00
staticerror.go httpcaddyfile: Add error directive for the existing handler (#4034) 2021-03-12 13:25:49 -07:00
staticresp.go caddyhttp: Check for invalid subdirectives of static_response 2021-02-02 16:19:58 -07:00
staticresp_test.go Move from deprecated ioutil to os and io packages (#4364) 2021-09-29 11:17:48 -06:00
subroute.go reverseproxy: Enable changing only the status code (close #2920) 2020-06-04 12:06:38 -06:00
vars.go httpcaddyfile: Add 'vars' directive 2022-03-22 10:47:21 -06:00