diff options
| author | Michael Klishin <mklishin@pivotal.io> | 2015-08-24 15:54:08 +0300 |
|---|---|---|
| committer | Michael Klishin <mklishin@pivotal.io> | 2015-08-24 15:54:12 +0300 |
| commit | bad018b1a307528e9a18ce2c8eabac20f18a1a96 (patch) | |
| tree | 514148cb4e3171b9db39fb6863054e86565d22b9 | |
| parent | 9e588f63965413fd31a1f952af14b78989591919 (diff) | |
| download | rabbitmq-server-git-bad018b1a307528e9a18ce2c8eabac20f18a1a96.tar.gz | |
Restore SEGMENT_ENTRY_COUNT, lower QI journal size but not as much
This preserves index recovery but still reduces journal size by
a noticeable amount.
| -rw-r--r-- | ebin/rabbit_app.in | 2 | ||||
| -rw-r--r-- | src/rabbit_queue_index.erl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ebin/rabbit_app.in b/ebin/rabbit_app.in index 83bafc1b24..37658d7312 100644 --- a/ebin/rabbit_app.in +++ b/ebin/rabbit_app.in @@ -30,7 +30,7 @@ {msg_store_file_size_limit, 16777216}, {fhc_write_buffering, true}, {fhc_read_buffering, true}, - {queue_index_max_journal_entries, 8192}, + {queue_index_max_journal_entries, 32768}, {queue_index_embed_msgs_below, 4096}, {default_user, <<"guest">>}, {default_pass, <<"guest">>}, diff --git a/src/rabbit_queue_index.erl b/src/rabbit_queue_index.erl index 6673139a3c..3687a04ccd 100644 --- a/src/rabbit_queue_index.erl +++ b/src/rabbit_queue_index.erl @@ -127,7 +127,7 @@ %% binary generation/matching with constant vs variable lengths. -define(REL_SEQ_BITS, 14). --define(SEGMENT_ENTRY_COUNT, 2048). +-define(SEGMENT_ENTRY_COUNT, 16384). %% seq only is binary 01 followed by 14 bits of rel seq id %% (range: 0 - 16383) |
