Introduce per-cache default values

Number of entries, average key and value size, max bloat factor might
differ greatly from cache to cache, so having one single default is not
enough to allow a smooth out of the box execution of chronicle-map
cache.

Introduce per-cache defaults, so that default configurations are
tailored for each specific cache.

Bug: Issue 13414
Change-Id: I0fbd5ffcc35976438fe9aa2d10aec5d55abf3141
5 files changed
tree: 939f370c89b9177551466153270d7f5e73b4a9ae
  1. src/
  2. .gitignore
  3. BUILD
  4. build.md
  5. config.md
  6. external_plugin_deps.bzl
  7. LICENSE
  8. README.md
README.md

Persistent cache for Gerrit, based on ChronicleMap

Non-blocking and super-fast on-disk cache libModule for Gerrit Code Review based on ChronicleMap on-disk implementation.

How to build

This libModule is built like a Gerrit in-tree plugin, using Bazelisk. See the build instructions for more details.

Setup

  • Install cache-chronicalmap module

Install the chronicle-map module into the $GERRIT_SITE/lib directory.

Add the cache-chroniclemap module to $GERRIT_SITE/etc/gerrit.config as follows:

[gerrit]
  installModule = com.googlesource.gerrit.modules.cache.chroniclemap.ChronicleMapCacheModule

For further information and supported options, refer to config documentation.