You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
evaluation order of cluster sub parts after config reload #952
@iceisfun friendly ping on @Keksoj's question above — could you share the [clusters] config snippet (or the relevant frontend entries) before and after reordering, plus the matching reload command? With those we can repro the eval-order behavior you saw and decide whether to add an explicit ordering knob or fix the reload pipeline.
The explicit ordering asked for here exists: every frontend takes position = "PRE" | "TREE" | "POST" (bin/config.toml, command.proto#L899). Router::lookup tries PRE rules, then the routing tree, then POST rules, first match wins within PRE and POST (lib/src/router/mod.rs). TREE rules (the default) resolve by specificity — exact hostname, then wildcard, longest path prefix — so reordering [clusters] does not change them.
#1681 documents this, including the current limits: a configuration reload does not re-add or update an existing frontend and does not reorder PRE/POST rules, and a newly started worker replays frontends in key order (doc/configure.md). To pin an order, put the frontends that must win first in PRE and fallbacks in POST.
Closing as answered by position; please reopen with a config sample if a case is not covered.
Activity
Keksoj commentedon Jul 25, 2023
I'm curious: what does your config look like, before and after this reordering?
FlorentinDUBOIS commentedon May 4, 2026
@iceisfun friendly ping on @Keksoj's question above — could you share the
[clusters]config snippet (or the relevant frontend entries) before and after reordering, plus the matching reload command? With those we can repro the eval-order behavior you saw and decide whether to add an explicit ordering knob or fix the reload pipeline.docs(config): document frontend rule order and reload limits (#1681)
FlorentinDUBOIS commentedon Sep 29, 2026
The explicit ordering asked for here exists: every frontend takes
position = "PRE" | "TREE" | "POST"(bin/config.toml, command.proto#L899).Router::lookuptries PRE rules, then the routing tree, then POST rules, first match wins within PRE and POST (lib/src/router/mod.rs). TREE rules (the default) resolve by specificity — exact hostname, then wildcard, longest path prefix — so reordering[clusters]does not change them.#1681 documents this, including the current limits: a configuration reload does not re-add or update an existing frontend and does not reorder PRE/POST rules, and a newly started worker replays frontends in key order (doc/configure.md). To pin an order, put the frontends that must win first in
PREand fallbacks inPOST.Closing as answered by
position; please reopen with a config sample if a case is not covered.