Skip to content

Migrate wikis to reindex

Ravi Kumar requested to merge 422693-migrate-wikis-reindex into master

What does this MR do and why?

Due to a bug Force reindexing of wikis does not delete the e... (#422693 - closed) the wikis got the wrong routing. We need to do force reindexing of all the wikis. There was an MR which tried to reindex but due to a bug that got stuck and had to revert. So this is the second trial to reindex after fixing the bug.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

  • Tail the log rails-background-jobs
tail rails-background-jobs
  • Open the rails console
bundle exec rails c
  • Run the following command
Elastic::DataMigrationService[20231019223356].send(:migration).migrate
  • Ensure in the rails-background-jobs logs there are log entries for ElasticWikiIndexerWorker

MR acceptance checklist

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

Runtime

~29 hours

[1] pry(main)> number_of_containers = 16809
=> 16809
[2] pry(main)> throttle_delay = 5.minute
=> 5 minutes
[3] pry(main)> batch_size = 50
=> 50
[4] pry(main)> ((number_of_containers / batch_size) * throttle_delay) / 1.hour
=> 28

Related to #422693 (closed)

#422917 (closed)

Edited by Ravi Kumar

Merge request reports