summaryrefslogtreecommitdiff
path: root/src/rabbit.erl
diff options
context:
space:
mode:
authorkjnilsson <knilsson@pivotal.io>2019-04-11 16:39:50 +0100
committerkjnilsson <knilsson@pivotal.io>2019-04-11 16:39:50 +0100
commite2919659cb0e6537d4b43c3ad7cebf08ad1414be (patch)
treefb5d70cd2c98a2de41160a4eaf76e5d5495c8a40 /src/rabbit.erl
parent1c182e755f35b0b65a9137cb9d0c4ea027d01e97 (diff)
downloadrabbitmq-server-git-e2919659cb0e6537d4b43c3ad7cebf08ad1414be.tar.gz
Correct log effect return type
It should return a list of effects in recent Ra versions. Also increase ra segments size as this appears beneficial for use with low in-memory limits.
Diffstat (limited to 'src/rabbit.erl')
-rw-r--r--src/rabbit.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index dafdaed5c9..867a72f0b6 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -540,6 +540,8 @@ start_loaded_apps(Apps, RestartTypes) ->
%% make Ra use a custom logger that dispatches to lager instead of the
%% default OTP logger
application:set_env(ra, logger_module, rabbit_log_ra_shim),
+ %% use a larger segments size for queues
+ application:set_env(ra, segment_max_entries, 32768),
ConfigEntryDecoder = case application:get_env(rabbit, config_entry_decoder) of
undefined ->
[];