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
|
@ -46,11 +46,10 @@
|
|||
%% Can be lz4 or native (which will use the Erlang native zlib compression)
|
||||
%% within term_to_binary
|
||||
{mapping, "leveled.compression_method", "leveled.compression_method", [
|
||||
{default, native},
|
||||
{datatype, atom}
|
||||
{datatype, {enum, [native, lz4, none]}},
|
||||
{default, native}
|
||||
]}.
|
||||
|
||||
|
||||
%% @doc Compression point
|
||||
%% The point at which compression is applied to the Journal (the Ledger is
|
||||
%% always compressed). Use on_receipt or on_compact. on_compact is suitable
|
||||
|
@ -61,6 +60,16 @@
|
|||
{datatype, atom}
|
||||
]}.
|
||||
|
||||
%% @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, "leveled.compression_level", "leveled.compression_level", [
|
||||
{default, 1},
|
||||
{datatype, integer},
|
||||
{validators, ["range:0-7"]},
|
||||
hidden
|
||||
]}.
|
||||
|
||||
%% @doc Log level
|
||||
%% Can be debug, info, warn, error or critical
|
||||
%% Set the minimum log level to be used within leveled. Leveled will log many
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue