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

ulimit default #13

Open
opennomad opened this issue Feb 19, 2015 · 1 comment
Open

ulimit default #13

opennomad opened this issue Feb 19, 2015 · 1 comment

Comments

@opennomad
Copy link

I was runnning into an issue where new connections were being refused and tracked it back to the ulimit -n 1024 in the rabbitmq-start script.

Is there a reason for setting that? Perhaps making it based on an ENV value with default if it's not provided would be a good alternative?

@opennomad
Copy link
Author

I tried the following and it seems to work like a charm in my test case:

#!/bin/bash

if [[ "${RABBIT_ULIMIT}" ]]; then
    ulimit -n "${RABBIT_ULIMIT}"
else
    ulimit -n 1024
fi
chown -R rabbitmq:rabbitmq /data
exec rabbitmq-server $@

Then I just add -e "RABBIT_ULIMIT=unlimited" or some value instead of unlimited and I am able to handle the number of connections I need.

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

No branches or pull requests

1 participant