Skip to content

Commit c39240f

Browse files
yvanzodanielunderwood
authored andcommitted
Explicitely set ulimits for mq to ERL_MAX_PORTS (metabrainz#258)
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.
1 parent 78cbcb9 commit c39240f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: docker-compose.yml

+2
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ services:
113113
max-size: "10m"
114114
max-file: "10"
115115
restart: unless-stopped
116+
ulimits:
117+
nofile: 65536
116118
volumes:
117119
- mqdata:/var/lib/rabbitmq
118120
expose:

0 commit comments

Comments
 (0)