Add a new worker for wiki indexing
What does this MR do and why?
Instead of using ElasticCommitIndexerWorker we can use no ElasticWikiIndexerWorker to index wikis. This new worker is a cleaner way to index wikis.
How to set up and validate locally
- Run the gdk
gdk start
- Make sure the elasticsearch is enabled. Navigate to the elasticsearch settings and make sure the two checkboxes
Elasticsearch indexing
andSearch with Elasticsearch enabled
under theAdvanced Search
are enabled. - Monitor the
rails-background-jobs
logs
gdk tail rails-background-jobs
- Create a new Project Wiki, and verify that it gets indexed properly
curl -H 'Content-type: application/json' -XGET 'http://localhost:9200/gitlab-development/_search'
- In the
rails-background-jobs
logs notice that you will see the logs fromElasticWikiIndexerWorker
but not fromElasticCommitIndexerWorker
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #336100 (closed)