Allow to configure maxBloatFactor

Allow maxBloatFactor to be configured by reading
cache.<name>.maxBloatFactor configuration from gerrit.config

Tuning this value allow to specify how much the actual size of the cache
can differ from the configured number of entries.

Bug: Issue 13416
Change-Id: Ib9a95ec2ef3945a5e87a250b777ab41f97a18cb1
4 files changed
tree: cda63abeedd8e616ed4182b8e20d231c722baa92
  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.