Skip to content

Adjust reindexing strategy

Andreas Brandl requested to merge ab/reindexing-strategy into master

What does this MR do?

This is a strategy change for how we select indexes for reindexing. This is currently enabled on GitLab.com and aims to reduce index bloat levels. For a summary of the current state and how reindexing helped with that, please see:

The strategy changes here are:

  1. Consider relative bloat levels instead of absolute bloat
  2. Exclude GIN indexes (risk for GitLab.com)
  3. Exclude indexes with relative bloat level < 20%
  4. Exclude indexes < 1 GB ondisk size (not worth it for now)
  5. Exclude indexes > 100 GB ondisk size (risk for GitLab.com)
  6. Don't reindex an index twice within 10 days

Together with adding support for unique indexes in!64695, this aims to distribute reindexing actions better across indexes and exclude the risky ones.

Relates to:

Related discussion in :

Does this MR meet the acceptance criteria?

Conformity

Edited by Andreas Brandl

Merge request reports

Loading