Skip to content

Add norotate session mode to public docs#30

Draft
valentin-naboka wants to merge 6 commits intomainfrom
docs/add-norotate-session-mode
Draft

Add norotate session mode to public docs#30
valentin-naboka wants to merge 6 commits intomainfrom
docs/add-norotate-session-mode

Conversation

@valentin-naboka
Copy link
Contributor

@valentin-naboka valentin-naboka commented Mar 16, 2026

Summary

  • Add norotate session mode documentation to sticky sessions page, including behavior description, warnings about auth string re-parsing, and curl examples
  • Update KB article "When do sticky sessions change nodes?" with norotate mode behavior (returns 502 instead of rotating)
  • Update KB article "How do I implement sticky sessions?" with norotate example and updated parameter notes

Related

PROXY-263 / PR #601

Test plan

  • Verify rendered MDX formatting for Warning/Info blocks in sticky-sessions.mdx
  • Confirm all three session modes (strict, flex, norotate) are consistently referenced across all three files
  • Review curl examples for correctness

@valentin-naboka valentin-naboka self-assigned this Mar 16, 2026
@valentin-naboka valentin-naboka marked this pull request as draft March 16, 2026 13:36
This means changing these parameters on subsequent requests with the same session ID will have no effect until the session rotates to a new node.

<Warning>
**Runtime re-parsing:** Session parameters are re-parsed from the auth string on every request. If you omit a parameter like `sessionmode-norotate` on a subsequent request, the session silently reverts to the default behavior (strict mode). Always use consistent auth strings for all requests within a session.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we double check this is correct also for sessionerr and sessionttl? Afaik it's not.

Document the new norotate session mode (PROXY-263) across sticky session
docs and knowledge base articles. Includes behavior description, curl
examples, 502 error semantics, and warning about auth string re-parsing.
- Correct status codes: 502 for tunnel errors, 503 for node unavailable
  (was incorrectly showing 502 for all cases)
- Move sessionmode out of "creation-only" params into new "re-parsed on
  every request" section, matching actual dispatcher behavior
- Document that sessionerr is ignored in norotate mode
- Fix KB article status code accuracy
Correct remaining discrepancies between code and docs: TTL expiry
creates a new session (not 503), rate-limit exceeded replaces the
session, and node-gone is the only case that returns 503. Remove
duplicate warnings, redundant bullet points, and the second curl
example to keep the docs concise.
@valentin-naboka valentin-naboka force-pushed the docs/add-norotate-session-mode branch from 4354017 to b91619a Compare March 18, 2026 13:24
Signed-off-by: Valentyn Naboka <valentin.naboka@gmail.com>
Signed-off-by: Valentyn Naboka <valentin.naboka@gmail.com>
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.

2 participants