Allow the Gitaly N+1 detector limit to be lowered
We now have the QA E2E tests running regularly in a production-like environment with the Gitaly N+1 detector enabled: https://gitlab.com/gitlab-org/gitlab-ce/issues/57911
Once all the code that makes too many requests is fixed (or mitigated via allow_n_plus_1_calls
blocks), we'll need the ability to lower the N+1 detector limit, without having to make a code change. E.g., as an environment variable, or as a feature flag (perhaps replacing the gitaly_enforce_requests_limits
, since that flag was added for the sake of the Gitaly N+1 E2E tests)