Skip to content

Meilisearch 1.12.7 OOMs and Crashloops when Bar-Assistant Connects #407

Description

@reefland

FYI - something changed with Meilisearch v1.12.7 from version 11. It used to start just fine with a RAM limit of 384Mi. I did the normal upgrade steps (stop, wipe volume, start, etc) and it got OOM killed. No problem, bumped it to 512Mi and it started. Logs look clean:

Config file path: "none"
Database path: "./data.ms"
Server listening on: "http://0.0.0.0:7700"
Environment: "production"
Commit SHA: "e20b91210d1b5da82072289a9198435276661174"
Commit date: "2025-01-23T13:41:34Z"
Package version: "1.12.7"
Anonymous telemetry: "Disabled"
A master key has been set. Requests to Meilisearch won't be authorized unless you provide an authentication key.
Check out Meilisearch Cloud! https://www.meilisearch.com/cloud?utm_campaign=oss&utm_source=engine&utm_medium=cli
Documentation: https://www.meilisearch.com/docs
Source code: https://github.com/meilisearch/meilisearch
Discord: https://discord.meilisearch.com
2025-01-24T00:51:04.169377Z INFO actix_server::builder: starting 8 workers
2025-01-24T00:51:04.169401Z INFO actix_server::server: Actix runtime found; starting in Actix runtime
2025-01-24T00:51:13.491270Z INFO HTTP request{method=GET host="10.42.6.32:7700" route=/health query_parameters= user_agent=kube-probe/1.31 status_code=200}: meilisearch: close time.busy=258µs time.idle=13.3µs
2025-01-24T00:51:13.985094Z INFO HTTP request{method=GET host="10.42.6.32:7700" route=/health query_parameters= user_agent=kube-probe/1.31 status_code=200}: meilisearch: close time.busy=39.6µs time.idle=11.3µs

Then tried to start bar-assistant and Meilisearch is OOM killed instantly. I bumped Meilisearch to 1Gi RAM and again OOM killed as soon as bar-assistant tried to connect. I had to remove the resource limits on Meilisearch in order for bar-assistant to connect and complete its sync.

It seems it's just the initial in-rush of connections/data during the initial sync causes it. A heads up if others now have a problem. Perhaps a rate limit is needed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions