Disable ElasticSearch integration for specific repositories
Problem to solve
Allow certain repositories to be excluded from ElasticSearch indexing.
Further details
We have an ES instance running for our Gitlab EE server and use it for the improved code search for our own repositories. However recently we have started mirroring some pretty large external repositories (e.g. https://github.com/golang/go). These are now being indexed to our ES index as well. This is causing large, and unnecessary load on both Gitlab and ES; we are noticing MR's being stuck in merge state, unresponsiveness entirely ... Furthermore, our index will now contain huge amounts of useless data.
Proposal
We don't need the ES features for these mirrored repos. We'll never use the issues / MR's or any other part of it. We even don't need the ES code search for that code, as all these things will be available on the source repository. We only need the code to be available so we can use and potentially modify it internally.
I'd like to disable ES integration for specific repositories.
What does success look like, and how can we measure that?
Checkbox in the settings of a repo, no indexing should happen for these repos.