Skip to content

Add rake tasks to pause or resume indexing

John Mason requested to merge john-mason-feature-329667 into master

What does this MR do and why?

Closes #329667 (closed)

In some cases Elasticsearch indexing may make an instance unstable, bringing down Puma. This in turn prevents admins from accessing the UI to pause indexing, leading to extended downtime.

Adds:

  • bundle exec rake gitlab:elastic:pause_indexing
  • bundle exec rake gitlab:elastic:resume_indexing

Note: I'm waiting on an ultimate license for my local gdk environment, so I'm going to leave this in a draft status until I'm able to test locally. 👍

TODO:

  • Update documentation
  • Test locally
  • Update changelog for EE change

Screenshots or screen recordings

Screen_Shot_2021-10-01_at_1.22.35_PM

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

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

Edited by John Mason

Merge request reports