Reindex wikis to fix routing and backfill archived
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.
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[20231009223356].send(:migration).migrate
- Ensure in the
rails-background-jobs
logs there are log entries forElasticWikiIndexerWorker
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.
Run time
~ 24 hours
[1] pry(main)> number_of_containers = 57198
=> 57198
[2] pry(main)> throttle_delay = 5.minute
=> 5 minutes
[3] pry(main)> batch_size = 200
=> 200
[4] pry(main)> ((number_of_containers / batch_size) * throttle_delay) / 1.hour
=> 23
Related to #422693 (closed)
Edited by Ravi Kumar