Would automatic detection of stale MeiliSearch sync flags be a useful improvement? #12192
Unanswered
sruthi-sixt-26
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello LibreChat community, I am quite new to LibreChat and running it with MeiliSearch in Kubernetes without persistent storage for MeiliSearch.
After a MeiliSearch pod restart, I am hitting the documented scenario where LibreChat reports data as fully synced even though MeiliSearch is empty:
I understand from the MeiliSearch documentation that the reset-meili-sync script exists for exactly this case, and it works.
However, in a Kubernetes environment where MeiliSearch pods can be rescheduled or restarted at any time (without persistent volumes), this requires manual intervention each time.
The docs cover running the reset script for local and Docker setups, but not Kubernetes. For anyone else running in K8s, what is your go to approach? It would be great if the docs could include a Kubernetes section alongside the existing local and Docker instructions.
Idea
Would it be worthwhile for performSync() in
indexSync.jsto automatically detect this situation?For example, comparing MeiliSearch's actual document count (via
index.getStats()) against what MongoDB reports as synced. If MeiliSearch has 0 documents but MongoDB says "N" are synced, the_meiliIndexflags could be automatically reset essentially doing what reset-meili-sync does, but without manual intervention.This would make LibreChat more resilient in container environments where MeiliSearch data loss is expected.
Questions for the community
I also had a look into feat: add opensearch and typesense support, and looking forward to exploring it further
Thank you for the support!
Beta Was this translation helpful? Give feedback.
All reactions