# This file is sourced by /etc/init.d/rabbitmq-server. Its primary
# reason for existing is to allow adjustment of system limits for the
# rabbitmq-server process.
#
# Maximum number of open file handles. This will need to be increased
# to handle many simultaneous connections. Refer to the system
# documentation for ulimit (in man bash) for more information.
#
# Default value is 1024, but it's absolutely unreasonable default in a
# modern world, as rabbitmq consumes file descriptors for everything:
# for client connections, for per-queue files, etc. Its documentation
# recommends to allow for at least 65536 open file descriptors in
# production. Values were chosen in
# https://bugs.launchpad.net/fuel/+bug/1279594
ulimit -H -n 105472
ulimit -S -n 102400
