From f5ba2fc1b9960b4b2d4c2f5f890cd9e314059f99 Mon Sep 17 00:00:00 2001 From: Martin Sumner Date: Mon, 1 Nov 2021 19:29:28 +0000 Subject: [PATCH] Amend defaults (#367) * Amend defaults 3.0.9 testing has used different defaults for cache_size and penciller_cache_size. There has been no noticeable drop in the performance of Riak using these defaults, so adopting here. The new defaults have a lower memory requirement per vnode, which is useful as recent changes and performance test results are changing the standard recommendations for ring_size. It is now preferred to choose larger ring_sizes by default (e.g. 256 for 6 - 12 nodes, 512 for 12 - 20 nodes, 1024 for 20 +). By choosing larger ring sizes, the benefits of scaling up a cluster will continue to make a difference even as the node count goes beyond the recommended "correct" setting. e.g. It might be reasonable (depending on hardware choices) to grow a ring_size=512 cluster to beyond 30 nodes, yet still be relatively efficient and performant at 8 nodes. * Comment correction --- priv/leveled.schema | 10 +++++----- priv/leveled_multi.schema | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/priv/leveled.schema b/priv/leveled.schema index 4b7c273..1582f41 100644 --- a/priv/leveled.schema +++ b/priv/leveled.schema @@ -21,14 +21,14 @@ %% @doc The key size of the Bookie's in-memory cache {mapping, "leveled.cache_size", "leveled.cache_size", [ - {default, 2500}, + {default, 2000}, {datatype, integer}, hidden ]}. %% @doc The key size of the Penciller's in-memory cache {mapping, "leveled.penciller_cache_size", "leveled.penciller_cache_size", [ - {default, 28000}, + {default, 20000}, {datatype, integer}, hidden ]}. @@ -102,9 +102,9 @@ %% @doc The number of times per day to score an individual file for compaction. %% The default value will lead to each file, on average, being scored once -%% every 8 hours +%% every 12 hours {mapping, "leveled.compaction_scores_perday", "leveled.compaction_scores_perday", [ - {default, 3}, + {default, 2}, {datatype, integer} ]}. @@ -170,7 +170,7 @@ ]}. %% @doc Snapshot timeout (long) -%% Maximum expected time for any othe rfold. A fold which is taking longer +%% Maximum expected time for any other fold. A fold which is taking longer %% than this may fail as it will be released - potentially allowing for some %% file processes to delete. Timeout is in seconds. {mapping, "leveled.snapshot_timeout_long", "leveled.snapshot_timeout_long", [ diff --git a/priv/leveled_multi.schema b/priv/leveled_multi.schema index faa825d..0b4c854 100644 --- a/priv/leveled_multi.schema +++ b/priv/leveled_multi.schema @@ -23,14 +23,14 @@ %% @doc The key size of the Bookie's in-memory cache {mapping, "multi_backend.$name.leveled.cache_size", "riak_kv.multi_backend", [ - {default, 4000}, + {default, 2000}, {datatype, integer}, hidden ]}. %% @doc The key size of the Penciller's in-memory cache {mapping, "multi_backend.$name.leveled.penciller_cache_size", "riak_kv.multi_backend", [ - {default, 28000}, + {default, 20000}, {datatype, integer}, hidden ]}. @@ -98,9 +98,9 @@ %% @doc The number of times per day to score an individual file for compaction %% The default value will lead to each file, on average, being scored once -%% every 8 hours +%% every 12 hours {mapping, "multi_backend.$name.leveled.compaction_scores_perday", "riak_kv.multi_backend", [ - {default, 3}, + {default, 2}, {datatype, integer} ]}. @@ -169,7 +169,7 @@ ]}. %% @doc Snapshot timeout (long) -%% Maximum expected time for any othe rfold. A fold which is taking longer +%% Maximum expected time for any other fold. A fold which is taking longer %% than this may fail as it will be released - potentially allowing for some %% file processes to delete. Timeout is in seconds. {mapping, "multi_backend.$name.leveled.snapshot_timeout_long", "riak_kv.multi_backend", [