Mas d31 i416 (#418)
* Add compression controls (#417) * Add compression controls Add configuration options to allow for a compression algorithm of `none` to disable compression altogether. Also an option to change the point in the LSM tree when compression is applied. * Handle configurable defaults consistently Move them into leveled.hrl. This forces double-definitions to be resolved. There are some other constants in leveled_bookie that are relevant outside of leveled_bookie. These are all now in the non-configurable startup defaults section. * Clarify referred-to default is OTP not leveled * Update leveled_bookie.erl Handle xref issue with eunit include
This commit is contained in:
parent
b96518c32a
commit
9e804924a8
11 changed files with 338 additions and 163 deletions
|
@ -39,8 +39,8 @@
|
|||
%% Can be lz4 or native (which will use the Erlang native zlib compression)
|
||||
%% within term_to_binary
|
||||
{mapping, "multi_backend.$name.leveled.compression_method", "riak_kv.multi_backend", [
|
||||
{default, lz4},
|
||||
{datatype, atom},
|
||||
{datatype, {enum, [native, lz4, none]}},
|
||||
{default, native}
|
||||
hidden
|
||||
]}.
|
||||
|
||||
|
@ -55,6 +55,16 @@
|
|||
hidden
|
||||
]}.
|
||||
|
||||
%% @doc Compresstion Level (Ledger LSM)
|
||||
%% Specify the level in the LSM tree from which compression should occur.
|
||||
%% Defaults to L1, so only L0 writes are uncompressed.
|
||||
{mapping, "multi_backend.$name.leveled.compression_level", "riak_kv.multi_backend", [
|
||||
{default, 1},
|
||||
{datatype, integer},
|
||||
{validators, ["range:0-7"]},
|
||||
hidden
|
||||
]}.
|
||||
|
||||
|
||||
%% @doc The approximate size (in bytes) when a Journal file should be rolled.
|
||||
%% Normally keep this as around the size of o(100K) objects. Default is 1GB.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue