Expose hot keys metrics

Expose metrics related to the hot keys in memory cache:
- Capacity: number of hot keys that can be kept in memory.
- Size: number of hot keys that are currently in memory.

Feature: Issue 13940
Change-Id: I8813eb5f404289aa57a2ad008d5cfa5a5bf62e13
4 files changed
tree: b48c116548c5e639854f1a44df1fb38bb1e69e56
  1. .gitignore
  2. BUILD
  3. Jenkinsfile
  5. README.md
  6. build.md
  7. config.md
  8. external_plugin_deps.bzl
  9. metrics.md
  10. src/
  11. tuning.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.


  • 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:

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

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