Set a default limit for the in-memory code owner config cache

For Android and Chrome at Google p95 is mostly below 50 code owner
config reads for change. However the worst peek that we observed for p99
is ~6.3k code owner config reads per change. Set a default limit of 10k
for the cache that is well above the worst peek. The only purpose of
this limit is to ensure that we are not running into out-of-memory
errors if a projects has a crazy amount of OWNERS files. If the limit is
reached the latency for code owner computations goes down, but that's
better then running out of memory. According to a back-of-the-envelope
calculation 10k entries should consume about 34 MiB of memory.

Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: Iad98f176b1aea558294e89ee7995a79827bb5bfc
3 files changed
tree: 20cbd0fa8a7de878542144900f0e29c47c78547b
  1. java/
  2. javatests/
  3. proto/
  4. resources/
  5. test/
  6. ui/
  7. .eslintrc.json
  8. .gitignore
  9. .gitreview
  10. bower.json
  11. BUILD
  12. LICENSE
  13. package-lock.json
  14. package.json
  15. README.md
README.md

Gerrit Code Review code-owners plugin

This plugin provides support for defining code owners for files in a repository.

If the code-owners plugin is enabled, changes can only be submitted if all touched files are covered by approvals from code owners.

Also see resources/Documentation/about.md.

IMPORTANT: Before installing/enabling the plugin follow the instructions from the setup guide, see resources/Documentation/setup-guide.md.