fix(helm): let the UI serve the server's index (ui.useServerIndex)#57
Merged
Merged
Conversation
The web UI deployed as an independent instance with its own PVC (…-ui-data), while the init/reindex Jobs only ever index the server's PVC (…-server-data) over HTTP. Nothing populated the UI's volume, so a deployed UI — especially in demo mode, where the in-app Reindex button is disabled — showed an empty index (0 files / 0 chunks / 0 vectors) even though the server was fully indexed. Add ui.useServerIndex: when true the UI mounts the server's index volume read-only at CODERAG_STORE_DIR, so it serves exactly what the index Jobs built and can never corrupt the single-writer LanceDB store. No …-ui-data PVC is created. The embedding-model cache is redirected to the writable home volume so query embedding still works under the read-only mount. ui.coLocateWithServer pins the UI onto the server's node via podAffinity, required when the shared volume is ReadWriteOnce; omit it for a ReadWriteMany storageClass. Rendering fails fast if useServerIndex is set without server.enabled or persistence.enabled. Docs and CI full-values updated to exercise the shared topology. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JPY56pX54CybUWA9ibdHny
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
The web UI deployed as an independent instance with its own PVC
(…-ui-data), while the init/reindex Jobs only ever index the server's
PVC (…-server-data) over HTTP. Nothing populated the UI's volume, so a
deployed UI — especially in demo mode, where the in-app Reindex button is
disabled — showed an empty index (0 files / 0 chunks / 0 vectors) even
though the server was fully indexed.
Add ui.useServerIndex: when true the UI mounts the server's index volume
read-only at CODERAG_STORE_DIR, so it serves exactly what the index Jobs
built and can never corrupt the single-writer LanceDB store. No …-ui-data
PVC is created. The embedding-model cache is redirected to the writable
home volume so query embedding still works under the read-only mount.
ui.coLocateWithServer pins the UI onto the server's node via podAffinity,
required when the shared volume is ReadWriteOnce; omit it for a
ReadWriteMany storageClass. Rendering fails fast if useServerIndex is set
without server.enabled or persistence.enabled.
Docs and CI full-values updated to exercise the shared topology.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01JPY56pX54CybUWA9ibdHny