#meilisearch crashing on railway.

2 messages · Page 1 of 1 (latest)

placid idol
#

I've followed this guide: https://funkyton.com/how-to-add-meilisearch-to-your-medusa-2-0-project-2/ and all works, but as soon as I start typing, eventually it crashes. I'm using hobby plan on railway. Do I need to upgrade the plan to make it work? It seems it's running out of memory really fast.

Funkyton

Enhance your Medusa 2.0 project with powerful search functionality using MeiliSearch. This guide walks you through setting up a MeiliSearch instance, configuring the backend with a community plugin, and integrating it into your storefront for seamless product search.

novel drift
#

Hey, this is due to MeiliSearch getting into a weird state where it keeps consuming more and more memory, until Railway kills the service.

To fix it, just add a limit in the environment variables of the MeiliSearch container:

MEILI_MAX_INDEXING_MEMORY="2GiB"

Let me know if it works out!