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.
This commit is contained in:
Michael Klishin 2017-02-17 22:25:09 +03:00
parent 23d6291c1d
commit 5e2af6d415
1 changed files with 2 additions and 2 deletions

View File

@ -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">>]).