)]}'
{
  "commit": "257a57f9f6243c99469db562415fc4a9e58f31d9",
  "tree": "fcfd87c220e07253fac0f1b3e6aad10b64f6536b",
  "parents": [
    "c8b39c2fe54129a1a624c083a64ce4b3c193d48e"
  ],
  "author": {
    "name": "Jacek Centkowski",
    "email": "geminica.programs@gmail.com",
    "time": "Wed Sep 14 08:35:20 2022 +0200"
  },
  "committer": {
    "name": "Jacek Centkowski",
    "email": "geminica.programs@gmail.com",
    "time": "Thu Nov 03 11:13:24 2022 +0100"
  },
  "message": "Introduce metric for caches that fall back to default config\n\nCache chroniclemap relies heavily on configuration (especially on\naverage key and values sizes) so that its performance can be optimal.\nWhat is more starting with `stable-3.4` there are 7 core caches that\nare missing their configuration in Defaults and use fall-back\nconfiguration. It is strongly adviced to auto-tune them (see\n\u0027tuning.md\u0027) and store dedicated configuration in \u0027gerrit.config\u0027.\n\nIssuing a warning in such case is not a perfect solution as Gerrit core\ncaches are initiated very early during the server start hence messages\nare not always visible in the log. For this reason the following metric\nwas introduced:\n\n* \u0027cache/chroniclemap/caches_without_configuration\u0027 that could be used\n  as an alarm source as it contains the total number of caches that\n  miss the dedicated configuration in \u0027gerrit.config\u0027 and use defaults\n\nNotes:\n* adding cache configuration to `gerrit.config` is not considered as\n  default configuration\n* additionally, the \u0027auto-adjust-caches\u0027 command was extended with\n  \u0027adjust-caches-on-defaults\u0027 option (see the tuning.md for details)\n  that it can be used to tune all caches that fall back to defaults\n\nBug: Issue 15865\nChange-Id: I8b0835c6d8a8ae96832371b79afd2a11f69f09b9\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e7e14152389accdf04714200c15c17be22222a0c",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/AutoAdjustCaches.java",
      "new_id": "a07d8c4ecfd963552f965da27edf22a001c3d9f6",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/AutoAdjustCaches.java"
    },
    {
      "type": "modify",
      "old_id": "580bd988eb512c2b27a21f8783d622c0aa87a972",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/AutoAdjustCachesCommand.java",
      "new_id": "9e7efd397efb2db0e89fcd16d332095c54d0edde",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/AutoAdjustCachesCommand.java"
    },
    {
      "type": "modify",
      "old_id": "49f7a977c624aa92b5088d4a266d10abe7c60168",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/AutoAdjustCachesServlet.java",
      "new_id": "91950ec3957d50ef44944209d0839dfb781279a2",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/AutoAdjustCachesServlet.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "0443fc664d8fcaaa4089800ba1cf76ca245ac9ba",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/CachesWithoutChronicleMapConfigMetric.java"
    },
    {
      "type": "modify",
      "old_id": "429d2cc1c63ad034383f5b310d81a0ffa71e638f",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/ChronicleMapCacheConfig.java",
      "new_id": "96d7ac301ca066bad688cde1eedc0d77c47574fc",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/ChronicleMapCacheConfig.java"
    },
    {
      "type": "modify",
      "old_id": "99fe5c1ead5e57cf7c181bf102b6795cde164c70",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/ChronicleMapCacheModule.java",
      "new_id": "a9b3856702bd4c710348c8b8a49d20e64f08d022",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/modules/cache/chroniclemap/ChronicleMapCacheModule.java"
    },
    {
      "type": "modify",
      "old_id": "e1ff2730935603a68ecc31818621afa5fe566b25",
      "old_mode": 33188,
      "old_path": "src/main/resources/Documentation/metrics.md",
      "new_id": "0dca3687012e0a87042ffd07fea7bf19128cd969",
      "new_mode": 33188,
      "new_path": "src/main/resources/Documentation/metrics.md"
    },
    {
      "type": "modify",
      "old_id": "77078a418b9549d26ab7d050e6e344d3bec06c08",
      "old_mode": 33188,
      "old_path": "src/main/resources/Documentation/tuning.md",
      "new_id": "7abb4d0fd428142d71c9f47214276918339ed0ba",
      "new_mode": 33188,
      "new_path": "src/main/resources/Documentation/tuning.md"
    },
    {
      "type": "modify",
      "old_id": "71cb86e3e1f20da92ea4ba75d1f6546a69b1afbc",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/modules/cache/chroniclemap/AutoAdjustCachesIT.java",
      "new_id": "39e832a1d2148ff97290058a5d7ded76b79432d7",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/modules/cache/chroniclemap/AutoAdjustCachesIT.java"
    },
    {
      "type": "modify",
      "old_id": "7f705f308cb8adabbff640fc609d0a82e06508ff",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/modules/cache/chroniclemap/ChronicleMapCacheConfigTest.java",
      "new_id": "d030732944559e70d2ba9896f26e05207164ae4f",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/modules/cache/chroniclemap/ChronicleMapCacheConfigTest.java"
    },
    {
      "type": "modify",
      "old_id": "72f23e5e0b3f8f743885cb2f8ac91004f629f10d",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/modules/cache/chroniclemap/ChronicleMapCacheTest.java",
      "new_id": "b943c07e2607a0ca837f15a5799e346552ab6ad1",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/modules/cache/chroniclemap/ChronicleMapCacheTest.java"
    }
  ]
}
