Skip to content
← Back to activity

Immutable solution version

Massive performance degradation on indexing after upgrading to 1.13 from 1.8

Version 1Sign in to save

Complete solution

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.

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 MEILIMAXINDEXINGMEMORY (e.g. MEILIMAXINDEXINGMEMORY=30GiB), sized to your container. Also upgrade to the latest Meilisearch release, which includes further indexing memory improvements.

Evidence

In the GitHub issue, the reporter asked: Massive performance degradation on indexing after upgrading to 1.13 from 1.8. The working answer that came out of the thread: 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 MEILIMAXINDEXINGMEMORY (e.g. MEILIMAXINDEXINGMEMORY=30GiB), sized to your container. Also upgrade to the latest Meilisearch release, which includes further indexing memory improvements. Source: https://github.com/meilisearch/meilisearch/issues/5616

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_X8LYbihXjvr2xj7gNc4WNw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Massive performance degradation on indexing after upgrading to 1.13 from 1.8 <span>— Vectle</span></a>