Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitely set ulimits for mq to ERL_MAX_PORTS #258

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

yvanzo
Copy link
Contributor

@yvanzo yvanzo commented Sep 5, 2023

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 docker-library/rabbitmq#545 for details.

Resolve #257

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.

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

See docker-library/rabbitmq#545 for details.
@yvanzo yvanzo merged commit 796eb09 into metabrainz:master Oct 2, 2023
@yvanzo yvanzo deleted the mq-ulimits branch October 2, 2023 10:39
danielunderwood pushed a commit to Lidarr/musicbrainz-docker that referenced this pull request Oct 24, 2023
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.

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

See docker-library/rabbitmq#545 for details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider adding a recommendation to explicitly set an ulimit value in docker-compose.yml
1 participant