`shards` table - Mark as exempt_from_sharding.
Background
The shards table holds the name of a shard / aka Gitaly storage.
In !152809 (merged), the table was declared gitlab_main_clusterwide.
This shards table is referenced by 4 other tables, all of which are gitlab_main_cell:
group_wiki_repositoriespool_repositoriesproject_repositoriessnippet_repositories
Problem
When the dependent tables are moved by Org Mover, how should we handle the shards table ?
-- source
Each Cell will have its own unique Gitaly storages. By definition, the shards table will need to reflect these unique Gitaly storages.
After Org Mover moves a particular Gitaly repository from Cell A to Cell B, it will need to update the shard_id column
Action items
-
Mark shardstable asexempt_from_sharding: true
Follow-ups
Edited by Thong Kuah
