meilisearch: Unable to add documents and endpoints timeout/unresponsive
Describe the bug
Since running v0.21.0 I’ve been noticing that after a short while, there are no more documents being added. This is because the document endpoint simply times out (HttpTimeout of 100 seconds is hit on our backend). Also trying to call the /stats
endpoint for an index does not respond.
However, other endpoints like /indexes/{index_uid}
and /indexes/{index_uid}/search
respond fine.
To Reproduce Steps to reproduce the behavior:
- Not found.
Expected behavior
That documents can be added and /stats
returns the index statistics.
Screenshots
Timeout from our backend:
Example of curl from inside the container on localhost. First showing the index exists/returns. Second with short 10 second timeout.
MeiliSearch version: v0.21.0rc3
Additional context Running on kubernetes, using the meilisearch chart. Deletion of the volume/fresh run doesn’t fix anything (have to do this on upgrades anyway)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 25 (13 by maintainers)
I tried another change this morning during meetings. I simply set my resources for meilisearch to be:
After that, meilisearch probably performed for the longest it has since updating to v0.21 as shown below:
Then it died all of a sudden, so I do think it’s most likely related to some kind of consumption issue (before the resource scaled as “Burstable”). This is only for around 8000 documents on the index. If I inspect the usage on the node, it’s nothing close to the 3 CPU + 4GB RAM:

I close this issue due to lack of feedback regarding it FYI v0.27.0 will be release next week including indexation performance improvement. Feel free to ask to reopen if needed
Oops! I indeed miss read, sorry 😅
If you can share (in private) your dataset and the steps @Jure-BB it would be awesome. We desperately try to reproduce this bug
I’ve encountered (probably) the same bug.
Here’s a sample that tries to reproduce the bug. It doesn’t always fail, but if you try to run it a few times, it should fail at least once.
I tested it using meilisearch-dotnet & NUnit, running inside WSL2 docker on windows
Hey @MarinPostma, thanks for the effort! I am still sorry that I couldn’t seem to create something reproducible and do hope that someone does figure it out, also for my own ease of mind 😄
Hello @carlreid ! I have unsuccessfully tried to reproduce your bug with minikube. I have setup a cluster with the same configuration as you did, and repeatedly sent the documents you provided, 1 by 1 about every 200ms, and then waited multiple hours querying the stats route every now and then. We’ll put this issue in standby for now, until someone encounters the same problem as you and can give us additional context.
Thank you @carlreid for your investigation! I’ll keep you informed on the issue!