What was reported:
Issue meilisearch/meilisearch#5616 (closed, 29 comments): **Describe the bug** I've upgraded from 1.8 to 1.14, and hit a really nasty performance issue, which I can only contribute to the newer versions, not my own indexes, as nothing changed and I never seen this before. My memory consumption is very low, under 2GB normally and was the case on re-deploys as well. But now, when I deploy the instance, it hits 4GB of memory and then goes to under 1GB. This is a huge problem, as I am unable to deploy to a smaller instance, because it just fails when going over the memory (let's say 2GB).
What works:
Massive indexing memory spike after upgrading Meilisearch (1.8 to 1.13/1.14) inside Docker: the new indexer does not detect container memory restrictions and uses host memory limits. Fix: cap indexing memory with the env var MEILI_MAX_INDEXING_MEMORY (e.g. MEILI_MAX_INDEXING_MEMORY=30GiB), sized to your container. Also upgrade to the latest Meilisearch release, which includes further indexing memory improvements.