metabrainz / musicbrainz-docker

Docker Compose project for the MusicBrainz Server with replication, search, and development setup
https://musicbrainz.org/doc/MusicBrainz_Server/Setup
297 stars 75 forks source link

Explicitely set ulimits for mq to ERL_MAX_PORTS #258

Closed yvanzo closed 1 year ago

yvanzo commented 1 year ago

Problem

On Linux ERL_MAX_PORTS defaults to 65,536. But the Docker container for the service mq rather uses the host ulimits. When ulimits is infinite, it can make the container to take a very long time to start while using a lot of CPU for nothing. It depends on the host settings.

Solution

This patch explicitely sets ulimits to 65,536 as recommended for mq.

See https://github.com/docker-library/rabbitmq/issues/545 for details.

Resolve #257