Skip to content

Commit 5dddea2

Browse files
yroblaCopilot
andauthored
Update docs/toolhive/guides-k8s/run-mcp-k8s.mdx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent cdcccfe commit 5dddea2

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

docs/toolhive/guides-k8s/run-mcp-k8s.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -455,11 +455,12 @@ actual MCP server and executes tools.
455455

456456
### Session routing for backend replicas
457457

458-
MCP connections are stateful: once a client establishes a session with a
459-
specific backend pod, all subsequent requests in that session must reach the
460-
same pod. When `backendReplicas > 1` and Redis session storage is configured,
461-
the proxy runner uses Redis to store a session-to-pod mapping so every proxy
462-
runner replica knows which backend pod owns each session.
458+
For stateful MCP servers, once a client establishes a session with a specific
459+
backend pod, subsequent requests in that session need to reach the same pod.
460+
When `backendReplicas > 1` and Redis session storage is configured, the proxy
461+
runner uses Redis to store a session-to-pod mapping so every proxy runner
462+
replica knows which backend pod owns each session. Stateless backends can use
463+
non-sticky routing by setting `sessionAffinity` to `None`.
463464

464465
When Redis session storage is configured and a backend pod is restarted or
465466
replaced, its entry in the Redis routing table is invalidated and the next

0 commit comments

Comments
 (0)