Expand description
Modules§
- proxy
- Per-request handler. Looks up the routing table, rebuilds the URI for the chosen upstream, streams the request straight through via the shared hyper client, records metrics, and turns transport failures into circuit-breaker trips.
- reload
- Filesystem-watch driven hot-reload of the routing table.
- tls
- Optional TLS termination.
Constants§
- LATENCY_
BUCKETS - Latency buckets (seconds) for
ferryman_request_duration_seconds, spanning sub-millisecond proxy hops up toupstream_timeout_secs’s default of 30s, so the slowest (about-to-time-out) requests still land in a real bucket instead of falling into+Inf.
Functions§
- serve
- Accept connections on
listenerand serve the proxy untilshutdownresolves, then stop accepting and wait (up toGRACEFUL_SHUTDOWN_TIMEOUT, 25s) for in-flight connections to finish.
Type Aliases§
- Proxy
Client - Shared hyper client used to forward requests to upstreams. Bodies are
streamed straight through (
Incomingin,Incomingout), no buffering.