Skip to content

Resolve "Exempt some tables from sharding key requirements"

What does this MR do and why?

Some tables we have today can be exempted from having a sharding key.

For example:

  • JiHu specific tables have no data on the gitlab.com database, and hence can be exempted from the requirement of having a sharding key or desired sharding key set.

Implementation plan:

  • Introduce a keyword in the yml like exempted_from_sharding: true, to identify such tables are exempted. --> This MR accomplishes this
  • Such exempted tables should be avoided from being counted in our dashboards. --> This will be accomplished in a follow-up MR in the dashboard repo.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

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

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

Related to #443427 (closed)

Edited by Manoj M J

Merge request reports