Skip to content

docs(config): list all six load_balancing values, mark UDP LB as shipped#1277

Merged
FlorentinDUBOIS merged 1 commit into
mainfrom
docs/lb-udp-staleness
Jun 5, 2026
Merged

docs(config): list all six load_balancing values, mark UDP LB as shipped#1277
FlorentinDUBOIS merged 1 commit into
mainfrom
docs/lb-udp-staleness

Conversation

@FlorentinDUBOIS

Copy link
Copy Markdown
Collaborator

What

Doc/comment-only fixes for three spots that contradicted the code, found while triaging open issues:

  • doc/configure.md — the [clusters] block described the load-balancing key as load_balancing_policy with values "roundrobin"/"random". The actual key is load_balancing (SCREAMING_SNAKE_CASE) and six algorithms exist: ROUND_ROBIN, RANDOM, LEAST_LOADED, POWER_OF_TWO, HRW, MAGLEV (lib/src/load_balancing.rs, LoadBalancingAlgorithms in command.proto). The comment now also points at the #### UDP clusters section for the flow-affine pair.
  • bin/config.toml — the sample config comment listed four values, omitting HRW/MAGLEV.
  • doc/upgrade/1.x-to-2.0.md — the "not in 2.0.0" table still listed UDP load balancing (UDP load balancing #654) as future; it landed via feat(udp): first-class UDP load balancing (#1273) #1274.

Why

These lines are the evidence base for closing #409, #654 and #1273 — the docs argued against the closure.

Validation

  • cargo test -p sozu-command-lib --locked config — 34 passed (sample config still parses).
  • No code change; comments + markdown only.

Three stale spots contradicted the code:

- doc/configure.md described the cluster load-balancing key as
  `load_balancing_policy` with values "roundrobin"/"random". The key
  is `load_balancing` (SCREAMING_SNAKE_CASE) and six algorithms exist:
  ROUND_ROBIN, RANDOM, LEAST_LOADED, POWER_OF_TWO, HRW, MAGLEV
  (lib/src/load_balancing.rs, command.proto LoadBalancingAlgorithms).
- bin/config.toml listed only four values, omitting HRW/MAGLEV.
- doc/upgrade/1.x-to-2.0.md still listed UDP load balancing (#654) as
  "future"; it landed via #1274.

Doc/comment-only change, no behavior impact.

Signed-off-by: Florentin Dubois <florentin.dubois@clever.cloud>
@FlorentinDUBOIS FlorentinDUBOIS merged commit 6965475 into main Jun 5, 2026
17 checks passed
@FlorentinDUBOIS FlorentinDUBOIS deleted the docs/lb-udp-staleness branch June 5, 2026 13:28
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.

1 participant