Uploaded image for project: 'MusicBrainz Search Server'
  1. MusicBrainz Search Server
  2. SEARCH-674

Support zero-downtime reindex with SolrCloud

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Indexer
    • None

      Currently, rebuilding a search index requires to:

      1. Hold off from processing message queues (for all search indexes)
      2. Delete the content of the search index
      3. Rebuild the search index
      4. Catch up with processing message queues

      During that time, the search server will not return any result for this search index, and return outdated results for all other search indexes, which is an issue for editors.


      To avoid any downtime, an alternative Solr collection could be used instead.

      For example, to rebuild the "recording" search index:

      1. Create a new "recording_1" Solr collection using the "recording" config
      2. Configure the live indexer to update "recording_1" too
      3. Index all recordings in "recording_1" Solr collection
      4. Add "recording" as an alias to the "recording_1" Solr collection
      5. Drop the old Solr collection after no issue occurred for some time.

      Note: Since collection aliases are supported by Solr in SolrCloud mode only, it will not work for MusicBrainz Docker Compose mirrors which use Solr in standalone mode.

       

       

            Unassigned Unassigned
            yvanzo yvanzo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                Version Package