diff options
| author | Michael Klishin <mklishin@pivotal.io> | 2015-06-03 20:06:59 +0300 |
|---|---|---|
| committer | Michael Klishin <mklishin@pivotal.io> | 2015-06-03 20:06:59 +0300 |
| commit | 8ac770285b464c93930c6c27ce9dd01a13fc3a62 (patch) | |
| tree | fb11a2b87143563304277fc6aa2e8b39f470abef /scripts/rabbitmq-env | |
| parent | 73f47630aa566d6ae7f4849aa36d0243195d7713 (diff) | |
| download | rabbitmq-server-git-8ac770285b464c93930c6c27ce9dd01a13fc3a62.tar.gz | |
Make it possible to override the +A VM flag with an env variable
For easier tweaking. References #178.
Diffstat (limited to 'scripts/rabbitmq-env')
| -rwxr-xr-x | scripts/rabbitmq-env | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/rabbitmq-env b/scripts/rabbitmq-env index eede788a93..c37f3e2b48 100755 --- a/scripts/rabbitmq-env +++ b/scripts/rabbitmq-env @@ -43,8 +43,11 @@ RABBITMQ_HOME="${SCRIPT_DIR}/.." ## Set defaults . ${SCRIPT_DIR}/rabbitmq-defaults +DEFAULT_IO_THREAD_POOL_SIZE=30 +[ "x" = "x$RABBITMQ_IO_THREAD_POOL_SIZE" ] && RABBITMQ_IO_THREAD_POOL_SIZE=${DEFAULT_IO_THREAD_POOL_SIZE} + ## Common defaults -SERVER_ERL_ARGS="+K true +A30 +P 1048576 \ +SERVER_ERL_ARGS="+K true +A $RABBITMQ_IO_THREAD_POOL_SIZE +P 1048576 \ -kernel inet_default_connect_options [{nodelay,true}]" # warn about old rabbitmq.conf file, if no new one |
