Skip to content

Commit

Permalink
Merge pull request #397 from basho/feature/object-limits
Browse files Browse the repository at this point in the history
Add warning/max object limits
  • Loading branch information
engelsanchez committed Oct 17, 2013
2 parents 59fd5d8 + bdf09d4 commit 27bfe8d
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions rel/files/riak.schema
Original file line number Diff line number Diff line change
Expand Up @@ -1072,3 +1072,32 @@ end}.
{mapping, "erlang.swiffy", "vm_args.+sfwi", [
{commented, "500"}
]}.


%% @doc Reading or writing objects bigger than this size will write
%% a warning in the logs.
{mapping, "warn_object_size", "riak_kv.warn_object_size", [
{datatype, bytesize},
{default, "5MB"}
]}.

%% @doc Writing an object bigger than this will fail.
{mapping, "max_object_size", "riak_kv.max_object_size", [
{datatype, bytesize},
{default, "50MB"}
]}.

%% @doc Writing an object with more than this number of siblings
%% will generate a warning in the logs.
{mapping, "warn_siblings", "riak_kv.warn_siblings", [
{datatype, integer},
{default, 25}
]}.

%% @doc Writing an object with more than this number of siblings
%% will fail.
{mapping, "max_siblings", "riak_kv.max_siblings", [
{datatype, integer},
{default, 100}
]}.

0 comments on commit 27bfe8d

Please sign in to comment.