meilisearch / meilisearch-php

PHP wrapper for the Meilisearch API

Home Page:https://meilisearch.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OOM error in docker getmeili/meilisearch:latest

rzakhanov opened this issue · comments

Hello. Why does Meilisearch service down after few seconds ? Giving error 137 (out of memory - docker doc.)

Inside meili data.ms have 44.000 item and one index.

This is content for meilisearch service :

meilisearch:
  container_name: meilisearch
  image: 'getmeili/meilisearch:latest'
  ports:
  - '7700:7700'
  volumes:
  - './Docker/meilisearch/volume/:/meili_data'
  networks:
  customnetwork:
  ipv4_address: 172.20.0.13
  healthcheck:
  test: ["CMD", "wget", "--no-verbose", "--spider",  "5"]
  retries: 3
  timeout: 5s
  deploy:
  resources:
  limits:
  memory: 6g
  reservations:
  memory: 5g

I tried docker stats . Unlike other containers meilisearch requires at least 4GB ram (others only MB) . By the way, this cases did not happen before.

WhatsApp Image 2022-09-18 at 04 26 06

Hello @rzakhanov

Sorry for the inconvenience. What changed, and when did you begin to notice this? When exactly does this happen? During the indexing process? If yes, how are the documents being sent? This frequently occurs when your machine runs out of RAM, which means your computer does not have adequate memory to handle your dataset. For more information about Meilisearch memory usage please see this guide. This is an issue that we are actively working to improve, and you should notice significant improvements with the next version (v0.29). For the time being, I suggest that you enable auto-batching to reduce memory usage and indexing time, as well as follow the performance optimization recommendations in the dedicated documentation.

Let us know if this helps. Thank you.

Thanks for attention. In my opinion, it is loop-infinite bug that related either your software or container docker. This happened after restart container . Inside meilisearch i dont know what is happening. Item contain as simple like :

TITLE title
ID 95
STORE_ID 6
URL 1234.com
price 189.99
CREATED_AT
1663534007

Hi @rzakhanov. Could you please give more context? Are you able to reproduce this problem?

Hi @oluademola . Unfortunally i willl can not reproduce it. Because i removed containers which are related meilisearch and i restarted them . After it ram and cpu normalized . But it was bad i didn't know - what was it problem...

If you saw this problem again @rzakhanov feel free to report it 🤝

Thanks for using Meilisearch 🤘