Skip to content

Show backend extensions in the load balancer example - #1009

Open
pederbe wants to merge 1 commit into
cloudflare:mainfrom
pederbe:learn/545-backend-extensions
Open

pederbe wants to merge 1 commit into
cloudflare:mainfrom
pederbe:learn/545-backend-extensions

Conversation

@pederbe

@pederbe pederbe commented Sep 12, 2026

Copy link
Copy Markdown

The load balancer example uses try_from_iter, which does not show how to attach backend extensions. Construct the static backends explicitly, attach typed names, and retrieve those names when logging the selected upstream. Initialize discovery before selection and retain the existing background TCP health checks.

The example includes a deterministic test covering metadata through initialization, selection, and health filtering. It passes when run explicitly with cargo test -p pingora-proxy --example load_balancer --features openssl.

Closes #545.

@pederbe
pederbe marked this pull request as ready for review September 12, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create an example of constructing a load balancer with extensions included

1 participant