summaryrefslogtreecommitdiff
path: root/deps/rabbit_common/include/rabbit.hrl
diff options
context:
space:
mode:
authorMichael Klishin <mklishin@pivotal.io>2017-02-17 22:25:09 +0300
committerMichael Klishin <mklishin@pivotal.io>2017-02-17 22:25:09 +0300
commit5e2af6d415b6822bbf0005bcee4c422484886b57 (patch)
tree3010eb4c2263065043f434fb632ce0aefc543704 /deps/rabbit_common/include/rabbit.hrl
parent23d6291c1d1841249eab86ace185e7a6cf3ada9e (diff)
downloadrabbitmq-server-git-5e2af6d415b6822bbf0005bcee4c422484886b57.tar.gz
Adjust fallback credit disc bound value
4000 is not meaningfully different from 3000 but is closer to the new IO_BATCH_SIZE value. References rabbitmq/rabbitmq-server#1098.
Diffstat (limited to 'deps/rabbit_common/include/rabbit.hrl')
-rw-r--r--deps/rabbit_common/include/rabbit.hrl4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/rabbit_common/include/rabbit.hrl b/deps/rabbit_common/include/rabbit.hrl
index a2bee9088b..130c92f2c1 100644
--- a/deps/rabbit_common/include/rabbit.hrl
+++ b/deps/rabbit_common/include/rabbit.hrl
@@ -154,11 +154,11 @@
-define(HIBERNATE_AFTER_MIN, 1000).
-define(DESIRED_HIBERNATE, 10000).
--define(CREDIT_DISC_BOUND, {2000, 500}).
+-define(CREDIT_DISC_BOUND, {4000, 800}).
%% When we discover that we should write some indices to disk for some
%% betas, the IO_BATCH_SIZE sets the number of betas that we must be
%% due to write indices for before we do any work at all.
--define(IO_BATCH_SIZE, 2048). %% next power-of-2 after ?CREDIT_DISC_BOUND
+-define(IO_BATCH_SIZE, 4096). %% next power-of-2 after ?CREDIT_DISC_BOUND
-define(INVALID_HEADERS_KEY, <<"x-invalid-headers">>).
-define(ROUTING_HEADERS, [<<"CC">>, <<"BCC">>]).