Open mike-r-mclaughlin opened 8 months ago
This might be documented a bit confusingly (suggestions welcome)
GitMaxCodehostRequestsPerSecond description: Maximum number of remote code host git operations (e.g. clone or ls-remote) to be run per second per gitserver. Default is -1, which is unlimited.
but what this flag does it limits Git activity, not code host API access. So this will apply to git clones and fetches.
What you are looking for is probably the rateLimit
field under the code host config.
OK. But, the linked doc says this:
It may be the case that you'd like to temporarily disable all git and API requests from Sourcegraph to a code host.
Maybe we should update that doc (once we get to the bottom of this) so it's more clear how to stop ALL traffic in cases like this
Details
Follow Disabling requests to code hosts to disable all requests to GHE. If there are repositories that are not accessible, you will see errors like this in the repo-updater log:
and
We tried restarting repo-updater and the log messages continue.