diff options
| author | Alvaro Videla <videlalvaro@gmail.com> | 2015-08-25 18:30:31 +0200 |
|---|---|---|
| committer | Alvaro Videla <videlalvaro@gmail.com> | 2015-08-27 13:00:31 +0200 |
| commit | 58e5b3848df61a1e804a01a359b51ee7650fc9dd (patch) | |
| tree | 68d13cd5a819748f581663519f451e5a1b52c12e /include | |
| parent | b61c80d1d75d162b8fd9e2958f03bd5b4ad96b82 (diff) | |
| download | rabbitmq-server-git-58e5b3848df61a1e804a01a359b51ee7650fc9dd.tar.gz | |
Makes CREDIT_DISC_BOUND and IO_BATCH_SIZE configurable
Fixes #284
Diffstat (limited to 'include')
| -rw-r--r-- | include/rabbit.hrl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl index ddcfd6a648..8da29d4e65 100644 --- a/include/rabbit.hrl +++ b/include/rabbit.hrl @@ -122,6 +122,10 @@ -define(HIBERNATE_AFTER_MIN, 1000). -define(DESIRED_HIBERNATE, 10000). -define(CREDIT_DISC_BOUND, {2000, 500}). +%% 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(INVALID_HEADERS_KEY, <<"x-invalid-headers">>). -define(ROUTING_HEADERS, [<<"CC">>, <<"BCC">>]). |
