Permalink
Browse files

Merge pull request #397 from basho/feature/object-limits

Add warning/max object limits
  • Loading branch information...
2 parents 59fd5d8 + bdf09d4 commit 27bfe8d69973e3d12e702eddd46956fc6865f114 @engelsanchez engelsanchez committed Oct 17, 2013
Showing with 29 additions and 0 deletions.
  1. +29 −0 rel/files/riak.schema
View
@@ -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.