Add read/write metrics to TimedValueMarshaller The following metrics were added: * cache/chroniclemap/store_serialize_latency_<cache-name> the latency of serializing entries in chronicle-map store * cache/chroniclemap/store_deserialize_latency_<cache-name> the latency of deserializing entries in chronicle-map store Notes: * metrics are not serializable hence as such they have to be transient * in case 'readResolve' method is used instead of constructor fallback to metrics cache to get metrics; it is safe operation as store is created only after the TimeValueMarshaller is created for a cache in question hence metricsCache is going to have the corresponding entry Change-Id: I195d83d4ebf351ad82925130d4e0c77231c3ec07
Non-blocking and super-fast on-disk cache libModule for Gerrit Code Review based on ChronicleMap on-disk implementation.
This libModule is built like a Gerrit in-tree plugin, using Bazelisk. See the build instructions for more details.
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.
You can check how to migrate from H2 to chronicle-map here.