Skip to content

Add a new worker for wiki indexing

Ravi Kumar requested to merge 336100-wiki-indexer-worker into master

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

  1. Run the gdk
    gdk start
  2. Make sure the elasticsearch is enabled. Navigate to the elasticsearch settings and make sure the two checkboxes Elasticsearch indexing and Search with Elasticsearch enabled under the Advanced Search are enabled.
  3. Monitor the rails-background-jobs logs
gdk tail rails-background-jobs
  1. 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'
  1. In the rails-background-jobs logs notice that you will see the logs from ElasticWikiIndexerWorker but not from ElasticCommitIndexerWorker

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #336100 (closed)

Merge request reports

Loading