Document sessionAffinity in MCPServer scaling#956
Open
danbarr wants to merge 2 commits into
Open
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
4 tasks
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Kubernetes Operator guide to document the MCPServer.spec.sessionAffinity scaling knob alongside the other MCPServer horizontal scaling controls, clarifying that it applies to client-to-proxy routing (proxy Service) and is distinct from backend session routing.
Changes:
- Add a new “Session affinity for proxy replicas” subsection under Horizontal scaling in
run-mcp-k8s.mdx. - Document
spec.sessionAffinitybehaviors (ClientIPvsNone) with a focused YAML example. - Cross-link the recommendation to configure Redis session storage for reliable scaled operation.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Documents the
spec.sessionAffinityfield in the "Horizontal scaling" section ofrun-mcp-k8s.mdx, where the rest of the MCPServer scaling knobs (spec.replicas,spec.backendReplicas, session storage) already live. This mirrors howMCPRemoteProxy(remote-mcp-proxy.mdx) andVirtualMCPServer(vMCP scaling guide) document scaling on their own pages.The new "Session affinity for proxy replicas" subsection clarifies that
spec.sessionAffinitycontrols the proxy Service (client-to-proxy connections whenspec.replicas > 1), which is distinct from the backend session routing already described in the following subsection.Supersedes #951, which added a parallel section to
redis-session-storage.mdx. That was the wrong home: the Redis page documents the session store, and its scaling content already overlapped with the affinity/Redis discussion inrun-mcp-k8s.mdx. This PR puts the field where the scaling guidance lives and leaves the Redis page focused on the backend.Type of change
Related issues/PRs
Addresses the
sessionAffinitygap in #655. Supersedes #951.Submitter checklist
Content and formatting
Reviewer checklist
Content