Skip to content

codeintel: Rate limit auto-indexing requests to repo-updater/gitserver

Warren Gifford requested to merge ef/ratelimit-internal into main

Created by: efritz

Limit the (significant) requests we make to gitserver and repo-updater for auto-indexing tasks. We can control the rate of requests from a service with the following envvars:

  • PRECISE_CODE_INTEL_AUTO_INDEX_MAXIMUM_REPOSITORIES_INSPECTED_PER_SECOND
  • PRECISE_CODE_INTEL_AUTO_INDEX_MAXIMUM_REPOSITORIES_UPDATED_PER_SECOND
  • PRECISE_CODE_INTEL_AUTO_INDEX_MAXIMUM_INDEX_JOBS_PER_INFERRED_CONFIGURATION

Fixes https://github.com/sourcegraph/sourcegraph/issues/12380.

Merge request reports

Loading