Page MenuHomePhabricator

Create a tool to list indices that have analysis settings and mapping not in line with what CirrusSearch maintenance script generates
Open, HighPublic

Description

As a maintainer of the search cluster I want to easily know what is the state of the various indices on all the clusters in regard to analysis settings/mappings so that I can more confidently enable/deprecate features without breaking existing usecases.

Changing the analysis settings and mappings in CirrusSearch requires reindexing the affected wikis, this process is generally slow and is often delayed so that more chances are packed together. The drawback is that it's prone to mistakes as the maintainer has to remember what was done and what left to be done.

AC:

  • verify that UpdateSearchIndexConfig is still able to properly detect discrepancies between the actual and expected settings
  • a small tool is available in CirrusSearch/scripts that produces a list of wiki-cluster pairs to verify